POST/desearch/people/search/tiktok

    TikTok Creator Search

    Find TikTok creators by what their videos are about. Describe the creators you want; the search looks for TikTok videos on the topic and for accounts whose name or bio matches, groups them by creator, reads each profile (bio, followers, likes, latest videos, public email in the bio) and scores each creator's fit. You get **creators, not videos**: followers, links, a public email when the bio lists one, a fit score and the videos that matched. Public data only. **How it runs.** The search runs in the background. This call returns a `task_id` at once. Poll `GET /desearch/people/tasks/{task_id}` every few seconds, read profiles with `GET /desearch/people/tasks/{task_id}/results` (they arrive while the search is still running), or download everything with `GET /desearch/people/tasks/{task_id}/export?format=csv`. You can pause, resume or cancel a search at any time. Results stay available for 30 days. When it ends, `completion_reason` says why, `coverage_limited` whether a budget stopped it before it found `count` profiles, and `warnings` what made part of it less reliable (e.g. LinkedIn profiles that could not be read). **Billing.** `count` profiles are reserved at the route price when the task is created (`cost_usd` on this response). When the search ends you pay only for the qualified profiles it delivered (prices, including any minimum, are at https://desearch.ai/pricing), unless it has a budget (below); the rest of the reservation is returned automatically. Without a `max_cost_usd` budget, a search that delivers no profiles costs nothing. A search stops once it costs more than the profiles it found pay for (`completion_reason` `cost_limit`). To search further, set a budget (`max_cost_usd`): the whole budget is reserved, the search goes on until it delivers `count` or spends it, and its search effort is billed where the profiles delivered do not cover it, up to the budget, even when it finds few or none. Prices: https://desearch.ai/pricing. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.

    Base URL

    https://api.desearch.ai

    Implementation guidance

    Use TikTok Creator Search when your application needs scored public profiles of people and creators without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. Use this route to identify TikTok creators through the subjects of their videos and the names or bios on their accounts; YouTube creator search covers channels and videos on YouTube instead. Discovery groups matching TikTok videos by their creator, then reads that profile's bio, follower and like counts, recent videos and any email publicly listed in the bio to assess fit. The delivered matches are creator profiles with links, followers, fit scores and supporting videos, using public data; the People Search API overview describes the product. Write the required query as a plain-language description of the people sought, between 3 and 1000 characters, rather than treating the returned records as a video feed. The optional count asks for qualified profiles: its default is 25 and its permitted integer range is 5 through 200. If a minimum fit matters, min_score accepts an integer from 0 to 100 and restricts delivery to profiles meeting at least that score. To leave out people already contacted, exclude accepts up to 1000 handles; this list is separate from the words used to reject unsuitable creators. Inside filters, min_followers and max_followers set lower and upper TikTok audience bounds, each as a nonnegative integer. Enable require_contact when a public email or phone in the creator's bio is required; the flag defaults to false and does not promise a contact address for every otherwise matching creator. Use keywords for words that should occur in TikTok videos or bios, while exclude_keywords leaves out creators mentioning the supplied unwanted words. Geographic constraints go in countries as country names or ISO codes, and a place written into the query is checked by the same evidence rule. The profile must show that place through location information, a headline, bio or flag; for creators, predominantly writing in a script used only by that country also counts. A profile pointing elsewhere, or providing no place evidence, is excluded by this country check, so an absent location is not treated as a confirmed match. For engagement, min_engagement_rate is a number between 0 and 1, calculated from average likes, comments and shares on recent posts divided by followers. Express a two-percent threshold as 0.02, and account for missing metrics: an unknown engagement rate does not satisfy that filter. TikTok's filter object supports these seven named filters and rejects additional properties; verification and recent-activity flags are not among its accepted keys. Creation is asynchronous: HTTP 202 carries a PeopleTask and its task_id, so the initial response identifies the work rather than containing the finished creator list. Follow that identifier with GET /desearch/people/tasks/{task_id} every few seconds for progress, and send GET to the same task's /results route for profiles as they become available during the search. For a complete download, use the task's export route with format=csv; searches can also be paused, resumed or cancelled, and results remain available for 30 days. When interpreting progress, interpreted records how the criteria were understood and the search queries used, while result_count reports the number of results on the task. Once the run ends, inspect completion_reason to distinguish reaching the requested count from exhausting planned searches, finding no candidates, or finding candidates that did not qualify. Read coverage_limited alongside status: it becomes true when a cost, candidate or time budget stops the run before count, and a budget-stopped run can still have status completed. A warnings array describes reliability limitations without itself meaning the whole task failed, and is empty when no such issue occurred. For instance, partial_enrichment means some profile lookups failed and those candidates were assessed from search information; affected results carry attributes.enrichment set to failed. For TikTok, a warning's by_reason can separate a profile that was private, removed or unavailable to logged-out visitors from rate limiting, timeouts and other upstream or request errors. Creation ordinarily reserves the price of count profiles, but final billing without an explicit budget covers only qualified profiles delivered, with any applicable minimum listed on the pricing page and the unused reservation returned automatically. A run without max_cost_usd that delivers zero profiles costs nothing; it stops with cost_limit when searching costs reach what the results would bill. Setting max_cost_usd changes that tradeoff: the budget must be positive, at most 100 USD, and at least the amount reserved for the requested profile count. The whole budget is reserved and the search can continue until it supplies count profiles or spends that budget; search effort is chargeable when delivered profiles do not cover it, including when few or none are found. Unused budget is returned, and the task separates reserved_cost_usd from the final amount in final_cost_usd, which is populated once the search ends. For retries, an optional Idempotency-Key header lets a company retrieve its original search with HTTP 200 instead of starting another chargeable task. The service trims surrounding whitespace and cuts this key to 200 characters rather than rejecting a longer value; a new key starts a search with HTTP 202, while reuse returns the original task and refunds this call's reservation. Attach campaign or workspace labels through metadata: up to 10 entries, with keys of 1 to 40 lowercase letters, digits, underscores, dots or hyphens, and string values no longer than 200 characters. These labels come back on the task and can filter GET /desearch/people/tasks through metadata.<key>=<value>; they are never used to decide who matches the TikTok search. If creation cannot proceed, HTTP 402 means insufficient credits for its reservation, while HTTP 429 means too many searches are already queued, running or paused. HTTP 400 can identify an unsupported platform filter, and HTTP 422 denotes a validation error, so the creation status distinguishes these failures from a successfully queued task. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.

    Send requests to POST /desearch/people/search/tiktok with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.

    Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.

    Header Parameters

    Idempotency-Keystringoptional

    Optional. Any unique string, for example a UUID. Surrounding whitespace is removed and the value is cut to 200 characters; a longer key is not rejected. The same key again for this company returns the original search with HTTP 200 and refunds this call's reservation, so it is not charged. A new key starts a search and returns HTTP 202.

    maxLength: 200

    Body Parameters

    querystringrequired

    Who you are looking for, in plain language.

    countinteger

    How many qualified profiles to find. The search reserves this many at the route price and bills only the profiles it delivers; a search that finds none is free (unless it has a budget, `max_cost_usd`).

    Default: 25

    min_scoreinteger

    Only return profiles with at least this fit score (0-100).

    excludearray of strings

    Handles to leave out, for example people you already contacted. Up to 1,000 handles.

    One item per line, or a JSON array. Sent as an array.

    max_cost_usdnumber

    Your search budget, in USD: the most the search may charge, at least what `count` reserves at the route price. Without it, the search stops once it costs more than the people it found pay for (`completion_reason` `cost_limit`). With it, the search keeps looking until it delivers `count` or spends the budget, and its search effort (what the search cost, with a margin) is billed when the people delivered do not cover it, also when it finds fewer people, or none. The whole budget is reserved and the unused part returned.

    metadataobject (JSON)

    Your own labels for this search, e.g. the workspace or campaign it belongs to. At most 10 keys; keys are 1-40 characters of a-z, 0-9, '_', '.' or '-'; values are strings of at most 200 characters. Returned as `metadata` on the task and usable as a filter on `GET /desearch/people/tasks` (`metadata.<key>=<value>`). Never used by the search itself.

    A JSON object, sent as JSON. Leave it empty to omit the field.

    filtersobject (JSON)

    A JSON object, sent as JSON. Leave it empty to omit the field. Keys: min_followers, max_followers, require_contact, countries, min_engagement_rate, keywords, exclude_keywords.

    Responses

    200Same Idempotency-Key as an earlier search: that task, not charged again.
    202The created search task.
    400Bad request: an unknown platform, sort, status, cursor or `has` channel, a filter the platform does not support, or an invalid `metadata.<key>` filter
    401Unauthorized
    402Not enough credits for the reservation.
    422Validation Error
    429Too many searches are already queued, running or paused.
    500Internal Server Error
    Authorization

    Your API key is sent in the Authorization header.

    Request
    curl -X POST "https://api.desearch.ai/desearch/people/search/tiktok" \
      -H "Authorization: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "count": 25,
      "filters": {
        "min_followers": 10000,
        "require_contact": true
      },
      "query": "Skincare creators who review sunscreen"
    }'
    POST /desearch/people/search/tiktok
    ResponseSchema
    {
      "task_id": "Task Id",
      "search_type": "x_profile_search",
      "platform": "x",
      "status": "queued",
      "stage": "planning",
      "query": "Query",
      "count": 0,
      "result_count": 0,
      "metadata": {},
      "interpreted": {},
      "progress": {},
      "errors": [],
      "completion_reason": "count_reached",
      "coverage_limited": false,
      "warnings": [
        {
          "code": "Code",
          "platform": "x",
          "attempted": 0,
          "enriched": 0,
          "failed": 0,
          "by_reason": {},
          "roles": [
            "string"
          ],
          "countries": [
            "string"
          ],
          "places": [
            "string"
          ],
          "message": "string"
        }
      ],
      "reserved_cost_usd": 0,
      "final_cost_usd": 0,
      "refunded_usd": 0,
      "created_by": {
        "user_id": "string",
        "api_key_id": "string",
        "via": "string"
      },
      "created_at": "2024-01-15T10:30:00Z",
      "started_at": "2024-01-15T10:30:00Z",
      "paused_at": "2024-01-15T10:30:00Z",
      "finished_at": "2024-01-15T10:30:00Z",
      "results_expire_at": "2024-01-15T10:30:00Z",
      "links": {
        "self": "Self",
        "results": "Results",
        "export": "Export"
      }
    }
    Status codes200202400401402422429500