APIDataE-commerce

TikTok Search

Search TikTok via API. Input fields and response shapes depend on the selected implementation. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.

Selected price
$0.018 / callPublished pricing
Sellers / APIs
5 / 63
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

TikTok Search

Prepare your request, then continue with your agent.

Pricing

$0.018 / call

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Provider
API
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
TikTok username without the leading @ (e.g. "shakira").
Optional parameters (10)
Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
ignoreSources array
Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
source array
Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.

Sample response

{
  "output": {
    "data": {
      "audienceLocations": [
        {
          "count": 842000,
          "country": "United States",
          "countryCode": "US",
          "percentage": "18.4%"
        },
        {
          "count": 611000,
          "country": "Colombia",
          "countryCode": "CO",
          "percentage": "13.3%"
        },
        {
          "count": 498000,
          "country": "Mexico",
          "countryCode": "MX",
          "percentage": "10.9%"
        }
      ]
    },
    "found": true
  }
}

Response result

Response structure

Inferred from examples
  • outputobject
    • dataobject
      • audienceLocationsobject[]
        • countinteger
        • countrystring
        • countryCodestring
        • percentagestring
    • foundboolean

Sellers

SellerPricingRequests · 30dPerformanceAccess
TikTok User Search · POST · View API reference
$0.0006 / call—Select to load statistics
—successP50—
TikTok Photo Search · POST · View API reference
$0.0012 / call—Select to load statistics
—successP50—
TikTok Top Search · POST · View API reference
$0.0006 / call—Select to load statistics
—successP50—
TikTok Comment Replies · POST · View API reference
$0.0006 / call—Select to load statistics
—successP50—
TikTok Hashtag Search · POST · View API reference
$0.0012 / call—Select to load statistics
—successP50—
TikTok Photos · POST · View API reference
$0.0012 / call—Select to load statistics
—successP50—
TikTok Search Suggestions · POST · View API reference
$0.0008 / call—Select to load statistics
—successP50—
Current
TikTok Audience Demographics · POST · View API reference
$0.018 / call—
—successP50—
TikTok Post Details API (V1) · GET · View API reference
$0.015385 / call—Select to load statistics
—successP50—
TikTok Post Comments API (V1) · GET · View API reference
$0.015385 / call—Select to load statistics
—successP50—
TikTok Post Search API (V1) · GET · View API reference
$0.015385 / call—Select to load statistics
—successP50—
TikTok User Published Posts API (V1) · GET · View API reference
$0.015385 / call—Select to load statistics
—successP50—
TikTok Comment Replies API (V1) · GET · View API reference
$0.015385 / call—Select to load statistics
—successP50—
TikTok Search Top · POST · View API reference
$0.00015 / call—Select to load statistics
—successP50—
TikTok Collection Videos · POST · View API reference
$0.00015 / call—Select to load statistics
—successP50—
TikTok Search Hashtag · POST · View API reference
$0.00015 / call—Select to load statistics
—successP50—
TikTok Search Suggestions · POST · View API reference
$0.00015 / call—Select to load statistics
—successP50—
TikTok Search Keyword · POST · View API reference
$0.00015 / call—Select to load statistics
—successP50—
TikTok — Search by Keyword · GET · View API reference
$0.00188 / call—Select to load statistics
—successP50—
TikTok — Top Search · GET · View API reference
$0.00188 / call—Select to load statistics
—successP50—
TikTok — Search Suggestions · GET · View API reference
$0.00188 / call—Select to load statistics
—successP50—
TikTok — Search Users · GET · View API reference
$0.00188 / call—Select to load statistics
—successP50—
TikTok — Search by Hashtag · GET · View API reference
$0.00188 / call—Select to load statistics
—successP50—
Get user unique_id · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get list unique_id · POST · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get share short link · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get general search list · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Creator Search Insights Trend · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get single video comments data · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user repost video data · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Creator Search Insights Detail · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user homepage video data V1 · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get location search results · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Extract list user sec_user_id · POST · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get live search results of specified keywords · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Search user · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user search results of specified keywords · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get comprehensive search results of specified keywords · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Search products list V1 · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get search modules config · POST · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user likes · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user reposts · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user like video data · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get video comment replies · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Search following list · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get the guest Cookie · GET · View API reference
$0.002 / call—Select to load statistics
—successP50—
Get user homepage video data V3 (simplified data - faster) · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Generate TikTok share link, call TikTok APP, and jump to the specified keyword search result · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Generate TikTok share link, call TikTok APP, and send private messages to specified users · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Generate TikTok share link, call TikTok APP, and jump to the specified video details page · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user mix list · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Extract user sec_user_id · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Search keyword suggest · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get user homepage video data V2 · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Creator Search Insights · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get video search results of specified keywords · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get hashtag search results of specified keywords · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Search follower list · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Get comment replies data of specified video · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Search products list V2 (Mobile, US only) · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Extract user user_id · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Search photo · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Creator Search Insights Videos · GET · View API reference
$0.001 / call—Select to load statistics
—successP50—
Loading...
Selected pricing · anyapiUSD / call
Pricing
$0.018

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 7. Price update time: not supplied.

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.audience_demographics
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.audience_demographics' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "handle": "shakira"
}'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
fieldsURL query parametersquerystringNoOptional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
max_itemsURL query parametersqueryintegerNoOptional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.

minimum: 0

summaryURL query parametersquerybooleanNoOptional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
jqURL query parametersquerystringNoOptional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
max_cost_usdURL query parametersquerystringNoOptional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Idempotency-KeyRequest headersheadersstringNoOptional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.

minLength: 1 · maxLength: 255

allowFallbacksJSON request bodybodybooleanNoOptional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
handleJSON request bodybodystringYesTikTok username without the leading @ (e.g. "shakira").
ignoreSourcesJSON request bodybodyarrayNoOptional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
Nested fields and variants

body.ignoreSources[] · Array item · string

preferLatencyUnderMsJSON request bodybodyintegerNoOptional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.

minimum: 1

sourceJSON request bodybodyarrayNoOptional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
Nested fields and variants

body.source[] · Array item · string

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Configured HTTP 200; actual status is unverified. Example from the provider's documentation. Field values in your results will differ.

Official example (output fragment; HTTP assumed)
{
  "output": {
    "data": {
      "audienceLocations": [
        {
          "count": 842000,
          "country": "United States",
          "countryCode": "US",
          "percentage": "18.4%"
        },
        {
          "count": 611000,
          "country": "Colombia",
          "countryCode": "CO",
          "percentage": "13.3%"
        },
        {
          "count": 498000,
          "country": "Mexico",
          "countryCode": "MX",
          "percentage": "10.9%"
        }
      ]
    },
    "found": true
  }
}

Composite rule pricing

Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.

Only requests matching a listed pricing variant are accepted. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.

Fee itemPriceMetering sourceWhenQuantity limit
Variant · 指定来源且关闭回退时的原厂基础费$0.018000Request conditionsselected_source eq ["anonymous-fox"] AND allow_fallbacks eq false—

Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.018000.

Pricing parameters and defaults
[
  {
    "default": [
      "anonymous-fox"
    ],
    "id": "selected_source",
    "location": "body",
    "pointer": "/source",
    "required": false,
    "type": "array"
  },
  {
    "default": false,
    "id": "allow_fallbacks",
    "location": "body",
    "pointer": "/allowFallbacks",
    "required": false,
    "type": "boolean"
  }
]

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# TikTok Search

Search TikTok via API. Input fields and response shapes depend on the selected implementation. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
anyapi · TikTok User Search: https://openany.si/markets/apis/capabilities/tiktok-search?offering=09849d6e-0f9b-49bb-83b9-79d9ceac1257 · $0.0006 / call
anyapi · TikTok Photo Search: https://openany.si/markets/apis/capabilities/tiktok-search?offering=314ecb82-fbb7-45b6-99a4-e8735feb6c64 · $0.0012 / call
anyapi · TikTok Top Search: https://openany.si/markets/apis/capabilities/tiktok-search?offering=44b5beaa-c485-4adc-af6e-7a37f240ac86 · $0.0006 / call
anyapi · TikTok Comment Replies: https://openany.si/markets/apis/capabilities/tiktok-search?offering=4b064cfa-5a1e-4480-b779-e72af6f7ad94 · $0.0006 / call
anyapi · TikTok Hashtag Search: https://openany.si/markets/apis/capabilities/tiktok-search?offering=4d62c670-b10c-443b-bfa9-bdd5dc4b0a00 · $0.0012 / call
anyapi · TikTok Photos: https://openany.si/markets/apis/capabilities/tiktok-search?offering=4e07c047-82a5-417b-b7d2-96ff4ebbba37 · $0.0012 / call
anyapi · TikTok Search Suggestions: https://openany.si/markets/apis/capabilities/tiktok-search?offering=b64a4726-118c-47ed-952c-d941c91079b6 · $0.0008 / call
anyapi · TikTok Audience Demographics: https://openany.si/markets/apis/capabilities/tiktok-search?offering=d4bd30f5-3be0-4584-9d93-eea8271b5049 · $0.018 / call
justoneapi · TikTok Post Details API (V1): https://openany.si/markets/apis/capabilities/tiktok-search?offering=3476a5f9-ddbb-43c3-bab4-c1c462876a07 · $0.015385 / call
justoneapi · TikTok Post Comments API (V1): https://openany.si/markets/apis/capabilities/tiktok-search?offering=9be9c6eb-8d86-4f19-adf1-069c793c2d96 · $0.015385 / call
justoneapi · TikTok Post Search API (V1): https://openany.si/markets/apis/capabilities/tiktok-search?offering=ca0eed43-b955-4d83-863f-b2290304b70f · $0.015385 / call
justoneapi · TikTok User Published Posts API (V1): https://openany.si/markets/apis/capabilities/tiktok-search?offering=ca531be8-a17d-4927-a152-c48cf9a0cb75 · $0.015385 / call
justoneapi · TikTok Comment Replies API (V1): https://openany.si/markets/apis/capabilities/tiktok-search?offering=f5b4f421-e181-4f7b-88ab-2ff3220cc553 · $0.015385 / call
litescrape · TikTok Search Top: https://openany.si/markets/apis/capabilities/tiktok-search?offering=2ae10073-30d0-4e3e-aecf-f31e532a9f95 · $0.00015 / call
litescrape · TikTok Collection Videos: https://openany.si/markets/apis/capabilities/tiktok-search?offering=73dc27ec-96b9-40cc-b0f3-e5e36bda3758 · $0.00015 / call
litescrape · TikTok Search Hashtag: https://openany.si/markets/apis/capabilities/tiktok-search?offering=973b7cab-6133-42f4-803d-0e20f37ac470 · $0.00015 / call
litescrape · TikTok Search Suggestions: https://openany.si/markets/apis/capabilities/tiktok-search?offering=a7b50b06-ebe2-423c-a80e-9249e864d4d5 · $0.00015 / call
litescrape · TikTok Search Keyword: https://openany.si/markets/apis/capabilities/tiktok-search?offering=de91bec0-899e-413e-9ce6-bf2f6e3aa7c4 · $0.00015 / call
scrapecreators · TikTok — Search by Keyword: https://openany.si/markets/apis/capabilities/tiktok-search?offering=003a5e9d-1fbc-4491-90f9-fc392cf7ae19 · $0.00188 / call
scrapecreators · TikTok — Top Search: https://openany.si/markets/apis/capabilities/tiktok-search?offering=19450f52-a85b-45a1-8568-adf96d5866f5 · $0.00188 / call
scrapecreators · TikTok — Search Suggestions: https://openany.si/markets/apis/capabilities/tiktok-search?offering=811985d6-8cac-4e97-83a8-6b4683ff917d · $0.00188 / call
scrapecreators · TikTok — Search Users: https://openany.si/markets/apis/capabilities/tiktok-search?offering=a1e97c7d-53e5-40a9-aea1-bac784bd85d3 · $0.00188 / call
scrapecreators · TikTok — Search by Hashtag: https://openany.si/markets/apis/capabilities/tiktok-search?offering=e81c408f-5bc3-4588-bdc7-726f0dfd2ad7 · $0.00188 / call
tikhub · Get user unique_id: https://openany.si/markets/apis/capabilities/tiktok-search?offering=01ac4d80-4b1c-42ce-a91a-57d89eef8685 · $0.001 / call
tikhub · Get list unique_id: https://openany.si/markets/apis/capabilities/tiktok-search?offering=07463393-8e3e-4ff9-a534-be9d77a06af4 · $0.001 / call
tikhub · Get share short link: https://openany.si/markets/apis/capabilities/tiktok-search?offering=0f9ec769-978c-480c-9b76-0ddb241d31d6 · $0.001 / call
tikhub · Get general search list: https://openany.si/markets/apis/capabilities/tiktok-search?offering=170e3eee-fd83-4aff-bbdd-2055455112ac · $0.001 / call
tikhub · Creator Search Insights Trend: https://openany.si/markets/apis/capabilities/tiktok-search?offering=2544c7e4-0749-4414-a327-9dee5867414c · $0.001 / call
tikhub · Get single video comments data: https://openany.si/markets/apis/capabilities/tiktok-search?offering=28c32e02-0cb3-4d43-b954-c45a192777e3 · $0.001 / call
tikhub · Get user repost video data: https://openany.si/markets/apis/capabilities/tiktok-search?offering=2d13749a-2eaf-4ad4-8c27-4ee44545aa52 · $0.001 / call
tikhub · Creator Search Insights Detail: https://openany.si/markets/apis/capabilities/tiktok-search?offering=2f4c1049-e2e2-4afa-96d6-8d25938133fa · $0.001 / call
tikhub · Get user homepage video data V1: https://openany.si/markets/apis/capabilities/tiktok-search?offering=344ae0be-79b5-4540-95e8-883dd2723533 · $0.001 / call
tikhub · Get location search results: https://openany.si/markets/apis/capabilities/tiktok-search?offering=36bca67f-ecb6-45f2-867c-08ad1307e3ec · $0.001 / call
tikhub · Extract list user sec_user_id: https://openany.si/markets/apis/capabilities/tiktok-search?offering=3c6c571e-e3ac-49fc-8a87-4c5e23fb92b4 · $0.001 / call
tikhub · Get live search results of specified keywords: https://openany.si/markets/apis/capabilities/tiktok-search?offering=3ded2a50-c076-404e-8732-7ca968aa4acb · $0.001 / call
tikhub · Search user: https://openany.si/markets/apis/capabilities/tiktok-search?offering=3f95da7d-d53f-4918-b5c9-4f0ce08476c7 · $0.001 / call
tikhub · Get user search results of specified keywords: https://openany.si/markets/apis/capabilities/tiktok-search?offering=4075ae84-c0b7-46d4-8b43-d732346df5df · $0.001 / call
tikhub · Get comprehensive search results of specified keywords: https://openany.si/markets/apis/capabilities/tiktok-search?offering=40e7fce9-e4ac-4507-8209-4dd4f1a6d817 · $0.001 / call
tikhub · Search products list V1: https://openany.si/markets/apis/capabilities/tiktok-search?offering=43573270-96c7-4520-9092-55fb91cc9a76 · $0.001 / call
tikhub · Get search modules config: https://openany.si/markets/apis/capabilities/tiktok-search?offering=4862e3ed-e4f1-4865-a0b5-bbc0c82f7026 · $0.001 / call
tikhub · Get user likes: https://openany.si/markets/apis/capabilities/tiktok-search?offering=4970c8a9-33e0-4c70-a37f-1a8122c0a5b4 · $0.001 / call
tikhub · Get user reposts: https://openany.si/markets/apis/capabilities/tiktok-search?offering=50b28a14-3275-4ec9-b0b6-8dd2e257da98 · $0.001 / call
tikhub · Get user like video data: https://openany.si/markets/apis/capabilities/tiktok-search?offering=5483ae18-11a3-4ef6-ad76-16866c0864d6 · $0.001 / call
tikhub · Get video comment replies: https://openany.si/markets/apis/capabilities/tiktok-search?offering=55c0d595-7a0b-4b4d-acf1-60b9908a2cc4 · $0.001 / call
tikhub · Search following list: https://openany.si/markets/apis/capabilities/tiktok-search?offering=6000cdad-869c-43c0-82e0-1a18d44a47b9 · $0.001 / call
tikhub · Get the guest Cookie: https://openany.si/markets/apis/capabilities/tiktok-search?offering=61f46987-0bf9-4adf-8778-683dffcdd0a1 · $0.002 / call
tikhub · Get user homepage video data V3 (simplified data - faster): https://openany.si/markets/apis/capabilities/tiktok-search?offering=676f8bc6-ea2b-43f9-86ac-281b46b1560f · $0.001 / call
tikhub · Generate TikTok share link, call TikTok APP, and jump to the specified keyword search result: https://openany.si/markets/apis/capabilities/tiktok-search?offering=719f68dd-deb6-45c3-9421-1fa283ef5ca3 · $0.001 / call
tikhub · Generate TikTok share link, call TikTok APP, and send private messages to specified users: https://openany.si/markets/apis/capabilities/tiktok-search?offering=74719cd0-db28-41a6-b89e-88af5f61ba21 · $0.001 / call
tikhub · Generate TikTok share link, call TikTok APP, and jump to the specified video details page: https://openany.si/markets/apis/capabilities/tiktok-search?offering=90154693-7441-4902-abbc-e970765104f5 · $0.001 / call
tikhub · Get user mix list: https://openany.si/markets/apis/capabilities/tiktok-search?offering=97da9b33-0174-4d3f-a5df-ede4ee814aff · $0.001 / call
tikhub · Extract user sec_user_id: https://openany.si/markets/apis/capabilities/tiktok-search?offering=a1c73301-ceab-486f-8ef0-5e3be868dad5 · $0.001 / call
tikhub · Search keyword suggest: https://openany.si/markets/apis/capabilities/tiktok-search?offering=b3cb4aba-9401-4d20-b653-113b1e362c31 · $0.001 / call
tikhub · Get user homepage video data V2: https://openany.si/markets/apis/capabilities/tiktok-search?offering=baf4bc97-1659-42bb-ac1d-aea27edcd920 · $0.001 / call
tikhub · Creator Search Insights: https://openany.si/markets/apis/capabilities/tiktok-search?offering=c019089f-ab98-4fd6-ba7b-de0794a0e963 · $0.001 / call
tikhub · Get video search results of specified keywords: https://openany.si/markets/apis/capabilities/tiktok-search?offering=c6cddb23-1c91-4643-99ae-22eaf0fcfa0a · $0.001 / call
tikhub · Get hashtag search results of specified keywords: https://openany.si/markets/apis/capabilities/tiktok-search?offering=ca491ab7-2cf2-4315-a97b-35b297551cf1 · $0.001 / call
tikhub · Search follower list: https://openany.si/markets/apis/capabilities/tiktok-search?offering=cc12b504-8ed3-46ab-b073-5c1f5dd33868 · $0.001 / call
tikhub · Get comment replies data of specified video: https://openany.si/markets/apis/capabilities/tiktok-search?offering=df603b35-a5a0-496e-bb61-74cdd56d6301 · $0.001 / call
tikhub · Search products list V2 (Mobile, US only): https://openany.si/markets/apis/capabilities/tiktok-search?offering=e70ec597-41be-492f-acfe-f5522d360df8 · $0.001 / call
tikhub · Extract user user_id: https://openany.si/markets/apis/capabilities/tiktok-search?offering=e9e7e45e-ac04-4753-846a-a72cc273e966 · $0.001 / call
tikhub · Search photo: https://openany.si/markets/apis/capabilities/tiktok-search?offering=f4528a63-d49c-46f4-abce-7fb8ed1652db · $0.001 / call
tikhub · Creator Search Insights Videos: https://openany.si/markets/apis/capabilities/tiktok-search?offering=fa1d0605-5a75-4051-82ea-0555a0c67911 · $0.001 / call

## Selected API contract
Documentation: https://openany.si/apis/d4bd30f5-3be0-4584-9d93-eea8271b5049
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.audience_demographics
Price: $0.018 / call
Provider: anyapi
Contract revision: 7
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.audience_demographics' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "handle": "shakira"
}'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "TikTok Audience Demographics",
  "endpoint": "https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.audience_demographics",
  "method": "POST",
  "content_type": "application/json",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.",
      "location": "query",
      "name": "fields",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.",
      "location": "query",
      "minimum": "0",
      "name": "max_items",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.",
      "location": "query",
      "name": "summary",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.",
      "location": "query",
      "name": "jq",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.",
      "location": "query",
      "name": "max_cost_usd",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.",
      "location": "header",
      "max_length": 255,
      "min_length": 1,
      "name": "Idempotency-Key",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.",
      "location": "body",
      "name": "allowFallbacks",
      "nullable": false,
      "pointer": "/allowFallbacks",
      "required": false,
      "type": "boolean"
    },
    {
      "description": "TikTok username without the leading @ (e.g. \"shakira\").",
      "location": "body",
      "name": "handle",
      "nullable": false,
      "pointer": "/handle",
      "required": true,
      "type": "string"
    },
    {
      "description": "Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.",
      "item_type": "string",
      "location": "body",
      "name": "ignoreSources",
      "nullable": false,
      "pointer": "/ignoreSources",
      "required": false,
      "type": "array"
    },
    {
      "description": "Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.",
      "location": "body",
      "minimum": "1",
      "name": "preferLatencyUnderMs",
      "nullable": false,
      "pointer": "/preferLatencyUnderMs",
      "required": false,
      "type": "integer"
    },
    {
      "description": "Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.",
      "item_type": "string",
      "location": "body",
      "name": "source",
      "nullable": false,
      "pointer": "/source",
      "required": false,
      "type": "array"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "rules",
    "parameters": [
      {
        "default": [
          "anonymous-fox"
        ],
        "id": "selected_source",
        "location": "body",
        "pointer": "/source",
        "required": false,
        "type": "array"
      },
      {
        "default": false,
        "id": "allow_fallbacks",
        "location": "body",
        "pointer": "/allowFallbacks",
        "required": false,
        "type": "boolean"
      }
    ],
    "policy_version": 2,
    "sale": {
      "addons": [],
      "base_price_micro_usd": "18001",
      "max_cost_micro_usd": "18000",
      "quantities": [],
      "rounding": "ceil",
      "variants": [
        {
          "id": "selected_source_only",
          "label": "指定来源且关闭回退时的原厂基础费",
          "price_micro_usd": "18000",
          "when": [
            {
              "op": "eq",
              "parameter": "selected_source",
              "value": [
                "anonymous-fox"
              ]
            },
            {
              "op": "eq",
              "parameter": "allow_fallbacks",
              "value": false
            }
          ]
        }
      ]
    }
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Official example (output fragment; HTTP assumed)",
      "request": {
        "body": {
          "handle": "shakira"
        },
        "headers": {},
        "path": {},
        "query": {}
      },
      "response_body": {
        "output": {
          "data": {
            "audienceLocations": [
              {
                "count": 842000,
                "country": "United States",
                "countryCode": "US",
                "percentage": "18.4%"
              },
              {
                "count": 611000,
                "country": "Colombia",
                "countryCode": "CO",
                "percentage": "13.3%"
              },
              {
                "count": 498000,
                "country": "Mexico",
                "countryCode": "MX",
                "percentage": "10.9%"
              }
            ]
          },
          "found": true
        }
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example (output fragment; HTTP assumed)

Example from the provider's documentation. Field values in your results will differ.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 11

    Review these request fields before running. Keep the published provider and request method unchanged.

    fields
    Optional. Comma-separated keys (dotted paths like `author.name` descend into nested objects) to keep on each result item: each row of the API's result list, or the `data` object itself for an API that returns one record. Keys are matched relative to that item, not against the top-level response envelope, so use `jq` to reshape the whole envelope. Shrinks the response without changing cost.
    max_items
    Optional. Cap the number of result rows returned; a `_truncated` note reports how many were withheld so you can page via the API's own `limit`. An API that returns one record is not trimmed. Does not change cost.
    summary
    Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
    jq
    Optional. A jq expression applied to the result envelope; its output replaces `output` (multiple outputs collect into an array). Reshape freely, e.g. `jq=.data | {title, description, md: .markdown[:3500]}`. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a `jqError`. Does not change cost.
    max_cost_usd
    Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
    Idempotency-Key
    Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
    allowFallbacks
    Optional, default true. When false, only the sources listed in `source` may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
    handle
    TikTok username without the leading @ (e.g. "shakira").
    ignoreSources
    Optional. Source ids to skip for this request, taken from this endpoint's `lanes[].source.id`. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in `source`, is rejected as invalid input with no charge; skipping every source is rejected the same way.
    preferLatencyUnderMs
    Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
    source
    Optional. Source ids to prefer, in order, taken from this endpoint's `lanes[].source.id` in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless `allowFallbacks` is false. A single source with `allowFallbacks` false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit `source` to be served by another. On a paginated walk, later pages must include the source that served page one, or omit `source`.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.audience_demographics' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "handle": "shakira"
    }'
  3. Check the response

    Sample response · Configured HTTP 200; actual status is unverified.

    Sample response
    {
      "output": {
        "data": {
          "audienceLocations": [
            {
              "count": 842000,
              "country": "United States",
              "countryCode": "US",
              "percentage": "18.4%"
            },
            {
              "count": 611000,
              "country": "Colombia",
              "countryCode": "CO",
              "percentage": "13.3%"
            },
            {
              "count": 498000,
              "country": "Mexico",
              "countryCode": "MX",
              "percentage": "10.9%"
            }
          ]
        },
        "found": true
      }
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use TikTok Search with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.