{
  "openapi": "3.0.1",
  "info": {
    "title": "Bilibili Creator Discovery Intelligence",
    "description": "Find Bilibili creators (UP主) by keyword: one row per creator with matched keywords, evidence videos, observed views, a transparent topic-fit score and a run report.",
    "version": "0.1",
    "x-build-id": "KG8jxdLIka6dvwFuq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/coregent~bilibili-creator-discovery-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-coregent-bilibili-creator-discovery-intelligence",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/coregent~bilibili-creator-discovery-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-coregent-bilibili-creator-discovery-intelligence",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/coregent~bilibili-creator-discovery-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-coregent-bilibili-creator-discovery-intelligence",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "1–10 topics to find creators for (2–80 characters each). Chinese keywords work best on Bilibili; keywords are searched exactly as written, with no automatic translation. Duplicates are merged.",
            "default": [
              "原神"
            ],
            "items": {
              "type": "string"
            }
          },
          "campaignDescription": {
            "title": "Campaign description (optional)",
            "maxLength": 500,
            "type": "string",
            "description": "A note about your campaign, kept in your run for reference. It is not sent to any AI model and doesn't change the score in this version.",
            "default": ""
          },
          "sortPreference": {
            "title": "Sort results by",
            "enum": [
              "topic_fit",
              "evidence_count",
              "observed_views"
            ],
            "type": "string",
            "description": "How delivered creators are ordered. Sorting happens after collection, so it can differ from Bilibili's own search order.",
            "default": "topic_fit"
          },
          "maxCreators": {
            "title": "Max creators",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The most creators to deliver. You're charged one qualified-creator event per creator delivered.",
            "default": 10
          },
          "maxSearchPagesPerKeyword": {
            "title": "Search pages per keyword",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many search result pages to read for each keyword. Each valid page is charged once, including a valid page that returns no videos. More pages find more creators and more evidence.",
            "default": 2
          },
          "searchPageSize": {
            "title": "Videos per search page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Results requested per search page (hard cap).",
            "default": 20
          },
          "minRelevantVideos": {
            "title": "Minimum evidence videos per creator",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "A creator qualifies only with at least this many distinct matching videos. 1 finds more creators but gives lower-confidence scores; 2–3 filters out one-off mentions.",
            "default": 1
          },
          "sampleVideosPerCreator": {
            "title": "Evidence videos shown per creator",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "The most evidence videos listed per creator, and the number of recent uploads checked for topic consistency.",
            "default": 5
          },
          "publishedAfter": {
            "title": "Only videos published after (optional)",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "YYYY-MM-DD. Applied after search, on the publish dates the results show, so it can lower the number of creators found. Search pages are still charged."
          },
          "excludeCreatorIds": {
            "title": "Exclude creator UIDs (optional)",
            "type": "array",
            "description": "Numeric Bilibili UIDs to leave out, e.g. creators you already work with.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxCreatorProfileLookups": {
            "title": "Profile lookups",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many of the top creators get a profile lookup (follower count, level, verification). 0 turns profile lookups off.",
            "default": 10
          },
          "checkRecentUploads": {
            "title": "Check recent uploads for topic consistency",
            "type": "boolean",
            "description": "For creators with a profile lookup, also read their most recent uploads to measure how much of their content matches your keywords. Without it, the score leaves out the consistency component and says so.",
            "default": true
          },
          "maxProviderSpendUsd": {
            "title": "Data-provider spend limit (USD)",
            "minimum": 0.1,
            "maximum": 20,
            "type": "number",
            "description": "A safety ceiling on upstream data requests for this run. The run stops before any request that would go over it and delivers what it has.",
            "default": 1
          },
          "maxEstimatedCustomerChargeUsd": {
            "title": "Max charge for this run (USD)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "The run stops before any charge that would take this run above this amount, using the Actor's event prices. Your Apify account's own spending limit also applies.",
            "default": 3
          },
          "allowPartialResults": {
            "title": "Allow partial results",
            "type": "boolean",
            "description": "If on, a run that reaches a budget limit delivers what it found and says why it stopped. If off, a plan that could exceed a limit is rejected before it starts.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}