TikTok Profile
Retrieve profile with the TikTok API. Input fields and response shapes depend on the selected implementation. Use it for account discovery and creator research. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
- Selected price
- $0.0012 / callPublished pricing
- Sellers / APIs
- 5 / 33
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
TikTok Profile
Prepare your request, then continue with your agent.
Selected price
$0.0012 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
outputobjectdataobjectnextCursorstringplaylistsobject[]coverUrlstringcreatorHandlestringidstringnamestringvideoCountinteger
foundboolean
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
output?: {
data?: {
nextCursor?: string;
playlists?: Array<{
coverUrl?: string;
creatorHandle?: string;
id?: string;
name?: string;
videoCount?: number;
}>;
};
found?: boolean;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| TikTok Profile Contact Info · POST · View API reference | $0.00116 / call | —Select to load statistics | —successP50— | |
| TikTok Following · POST · View API reference | $0.0008 / call | —Select to load statistics | —successP50— | |
| TikTok Profile · POST · View API reference | $0.0004 / call | —Select to load statistics | —successP50— | |
| TikTok Profile Region · POST · View API reference | $0.0012 / call | —Select to load statistics | —successP50— | |
Current TikTok Profile Playlists · POST · View API reference | $0.0012 / call | — | —successP50— | |
| TikTok Followers · POST · View API reference | $0.0008 / call | —Select to load statistics | —successP50— | |
| TikTok Profile Reposts · POST · View API reference | $0.0012 / call | —Select to load statistics | —successP50— | |
| TikTok User Profile API (V1) · GET · View API reference | $0.015385 / call | —Select to load statistics | —successP50— | |
| TikTok Profile Videos · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| TikTok Profile · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| TikTok Following · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| TikTok Followers · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| TikTok — Profile Region · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| TikTok — Following · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| TikTok — Followers · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| TikTok — Profile · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| TikTok — User's Audience Demographics · GET · View API reference | $0.04888 / call | —Select to load statistics | —successP50— | |
| TikTok — Profile Videos · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| Get user profile · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get information of specified user · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Generate TikTok share link, call TikTok APP, and jump to the specified user profile · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user favorites · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user followings · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get information of specified Webcast user · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user_id and sec_user_id by Username · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Similar User Recommendations · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get following list of specified user · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get follower list of specified user · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user followers · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user posts · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user account country by username · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get user play list · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Get Creator Account Info · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.0012
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: 5. Price update time: not supplied.
Total $0.12
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.profile_playlists- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.profile_playlists' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"secUid": "MS4wLjABAAAABKjQkOz_IIzXXzEAl_9LGsWhvK-gBnlczwRPXK8EmxAp6K3X0qiaP5_OEqmm0XwG"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
fields | URL query parametersquery | string | No | 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 | URL query parametersquery | integer | No | 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. minimum: 0 |
summary | URL query parametersquery | boolean | No | 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 | URL query parametersquery | string | No | 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 | URL query parametersquery | string | No | 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 | Request headersheaders | string | No | 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. minLength: 1 · maxLength: 255 |
allowFallbacks | JSON request bodybody | boolean | No | 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. |
cursor | JSON request bodybody | string | No | Pagination cursor from a previous response's nextCursor. |
ignoreSources | JSON request bodybody | array | No | 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.Nested fields and variants
|
limit | JSON request bodybody | integer | No | Maximum items to return in one page. minimum: 1 · maximum: 30 |
preferLatencyUnderMs | JSON request bodybody | integer | No | 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. minimum: 1 |
secUid | JSON request bodybody | string | Yes | TikTok's opaque sec_uid for the account. TikTok's own endpoint keys on it and will not accept a handle; call tiktok.profile with the handle first and read secUid off its response. |
source | JSON request bodybody | array | No | 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`.Nested fields and variants
|
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.
{
"output": {
"data": {
"nextCursor": "MjA0ODIz",
"playlists": [
{
"coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-beastgames~tplv-obj.jpeg?x-signature=Lb2hP3d",
"creatorHandle": "mrbeast",
"id": "7596415294902389534",
"name": "Beast Games",
"videoCount": 42
},
{
"coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-dollarchallenge~tplv-obj.jpeg?x-signature=Mc3iQ4e",
"creatorHandle": "mrbeast",
"id": "7590112837465012390",
"name": "$1 vs $1,000,000",
"videoCount": 18
},
{
"coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-feastables~tplv-obj.jpeg?x-signature=Nd4jR5f",
"creatorHandle": "mrbeast",
"id": "7581004672938401256",
"name": "Feastables",
"videoCount": 27
}
]
},
"found": true
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# TikTok Profile
Retrieve profile with the TikTok API. Input fields and response shapes depend on the selected implementation. Use it for account discovery and creator research. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
anyapi · TikTok Profile Contact Info: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=052240e3-3d5c-48dc-962f-ae5839587866 · $0.00116 / call
anyapi · TikTok Following: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=17d450cb-005b-4e32-a8c7-deca40fd7443 · $0.0008 / call
anyapi · TikTok Profile: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=8b95f332-ac02-483e-bdd2-f1f340a79214 · $0.0004 / call
anyapi · TikTok Profile Region: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=a05ce052-8016-463c-98da-8033d672bc70 · $0.0012 / call
anyapi · TikTok Profile Playlists: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=b4d2be81-d0f5-46d1-b1b6-41fa1683184f · $0.0012 / call
anyapi · TikTok Followers: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=d7842b37-5469-4224-9dad-8c92f7215332 · $0.0008 / call
anyapi · TikTok Profile Reposts: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=df3b1b81-7e36-4776-8fca-09d603bb6788 · $0.0012 / call
justoneapi · TikTok User Profile API (V1): https://openany.si/markets/apis/capabilities/tiktok-profile?offering=6816ebdf-dd24-4c8a-a514-ebf8a32299cd · $0.015385 / call
litescrape · TikTok Profile Videos: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=0b27aa37-d7af-4c92-911e-a1b5b9d6aa6b · $0.00015 / call
litescrape · TikTok Profile: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=80167787-8072-46dc-8cef-c7d8e083abae · $0.00015 / call
litescrape · TikTok Following: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=a0a4627a-efa9-46e5-a97a-87f1d33275f4 · $0.00015 / call
litescrape · TikTok Followers: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=fe3e2d24-c832-4eae-9d96-b589284e89f3 · $0.00015 / call
scrapecreators · TikTok — Profile Region: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=0b4cc913-9920-465b-91e4-c8661a19ac29 · $0.00188 / call
scrapecreators · TikTok — Following: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=6afce6a8-5611-4fb7-a3e6-af070c10e582 · $0.00188 / call
scrapecreators · TikTok — Followers: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=821f0db4-3850-40ab-9d58-3e7dfd4728dc · $0.00188 / call
scrapecreators · TikTok — Profile: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=9181f624-b132-4952-8b4c-00fbdbc56076 · $0.00188 / call
scrapecreators · TikTok — User's Audience Demographics: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=a3ecb7df-6431-4bdb-91af-e3bd779ca797 · $0.04888 / call
scrapecreators · TikTok — Profile Videos: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=deabeac3-29c1-42f4-9b98-079370f30ed1 · $0.00188 / call
tikhub · Get user profile: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=3f5fd197-5d59-45e5-87ac-eaed87a86d4a · $0.001 / call
tikhub · Get information of specified user: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=5d828121-8097-4157-81f2-097085cb7d73 · $0.001 / call
tikhub · Generate TikTok share link, call TikTok APP, and jump to the specified user profile: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=616436e0-f342-47cb-9d60-651e58a16d05 · $0.001 / call
tikhub · Get user favorites: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=655a0784-91b0-4926-aa4e-acf253c4bfc9 · $0.001 / call
tikhub · Get user followings: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=66f4b13c-a3bd-4f6d-804e-f1c23860896b · $0.001 / call
tikhub · Get information of specified Webcast user: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=6b84d434-e5ba-444d-a78b-968fc4b09954 · $0.001 / call
tikhub · Get user_id and sec_user_id by Username: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=72c8ed4b-350b-4b92-be19-8593b6d65a25 · $0.001 / call
tikhub · Similar User Recommendations: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=9459d433-6e1d-4f06-832d-be6e1e2bf04c · $0.001 / call
tikhub · Get following list of specified user: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=aac6eb45-c59a-4cd6-807a-8b165c80045b · $0.001 / call
tikhub · Get follower list of specified user: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=b06e4703-3f7f-4f52-8a7a-551131292637 · $0.001 / call
tikhub · Get user followers: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=e039be18-3273-42a4-9a52-2e83284756a6 · $0.001 / call
tikhub · Get user posts: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=e0afc70f-3176-4b22-99b5-88bd6d6ebb31 · $0.001 / call
tikhub · Get user account country by username: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=e5b34119-a070-4d5b-bdf8-8e7bc0e4b263 · $0.001 / call
tikhub · Get user play list: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=e9ff83e9-983f-4607-b2db-f815fa5bbf23 · $0.001 / call
tikhub · Get Creator Account Info: https://openany.si/markets/apis/capabilities/tiktok-profile?offering=f5606cc1-a5b3-4dfb-8b3f-2843757353b6 · $0.001 / call
## Selected API contract
Documentation: https://openany.si/apis/b4d2be81-d0f5-46d1-b1b6-41fa1683184f
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.profile_playlists
Price: $0.0012 / call
Provider: anyapi
Contract revision: 5
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.profile_playlists' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"secUid": "MS4wLjABAAAABKjQkOz_IIzXXzEAl_9LGsWhvK-gBnlczwRPXK8EmxAp6K3X0qiaP5_OEqmm0XwG"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "TikTok Profile Playlists",
"endpoint": "https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.profile_playlists",
"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": "Pagination cursor from a previous response's nextCursor.",
"location": "body",
"name": "cursor",
"nullable": false,
"pointer": "/cursor",
"required": false,
"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": "Maximum items to return in one page.",
"location": "body",
"maximum": "30",
"minimum": "1",
"name": "limit",
"nullable": false,
"pointer": "/limit",
"required": false,
"type": "integer"
},
{
"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": "TikTok's opaque sec_uid for the account. TikTok's own endpoint keys on it and will not accept a handle; call tiktok.profile with the handle first and read secUid off its response.",
"location": "body",
"name": "secUid",
"nullable": false,
"pointer": "/secUid",
"required": true,
"type": "string"
},
{
"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": "fixed",
"priceMicroUsd": "1200",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example (output fragment; HTTP assumed)",
"request": {
"body": {
"secUid": "MS4wLjABAAAABKjQkOz_IIzXXzEAl_9LGsWhvK-gBnlczwRPXK8EmxAp6K3X0qiaP5_OEqmm0XwG"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"output": {
"data": {
"nextCursor": "MjA0ODIz",
"playlists": [
{
"coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-beastgames~tplv-obj.jpeg?x-signature=Lb2hP3d",
"creatorHandle": "mrbeast",
"id": "7596415294902389534",
"name": "Beast Games",
"videoCount": 42
},
{
"coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-dollarchallenge~tplv-obj.jpeg?x-signature=Mc3iQ4e",
"creatorHandle": "mrbeast",
"id": "7590112837465012390",
"name": "$1 vs $1,000,000",
"videoCount": 18
},
{
"coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-feastables~tplv-obj.jpeg?x-signature=Nd4jR5f",
"creatorHandle": "mrbeast",
"id": "7581004672938401256",
"name": "Feastables",
"videoCount": 27
}
]
},
"found": true
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 13
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.
cursor- Pagination cursor from a previous response's nextCursor.
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.
limit- Maximum items to return in one page.
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.
secUid- TikTok's opaque sec_uid for the account. TikTok's own endpoint keys on it and will not accept a handle; call tiktok.profile with the handle first and read secUid off its response.
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 · cURLcurl \ 'https://api.openany.si/v1/agent-apis/anyapi/v1/run/tiktok.profile_playlists' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "secUid": "MS4wLjABAAAABKjQkOz_IIzXXzEAl_9LGsWhvK-gBnlczwRPXK8EmxAp6K3X0qiaP5_OEqmm0XwG" }'Check the response
Sample response · Configured HTTP 200; actual status is unverified.
Sample response{ "output": { "data": { "nextCursor": "MjA0ODIz", "playlists": [ { "coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-beastgames~tplv-obj.jpeg?x-signature=Lb2hP3d", "creatorHandle": "mrbeast", "id": "7596415294902389534", "name": "Beast Games", "videoCount": 42 }, { "coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-dollarchallenge~tplv-obj.jpeg?x-signature=Mc3iQ4e", "creatorHandle": "mrbeast", "id": "7590112837465012390", "name": "$1 vs $1,000,000", "videoCount": 18 }, { "coverUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-p-0068/playlist-feastables~tplv-obj.jpeg?x-signature=Nd4jR5f", "creatorHandle": "mrbeast", "id": "7581004672938401256", "name": "Feastables", "videoCount": 27 } ] }, "found": true } }