TikTok Generate
TikTok Generate helps users create video ideas, scripts, captions, and hashtags for TikTok, making it easier to produce engaging content tailored to their audience.
- Selected price
- $0.005 / callPublished pricing
- Sellers / APIs
- 1 / 9
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
TikTok Generate
Prepare your request, then continue with your agent.
Selected price
$0.005 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
cache_messagestringcache_message_zhstringcache_urlstringcodeintegerdatanulldocsstringmessagestringmessage_zhstringparamsobjectrequest_idstringrouterstringsupportstringtimestringtime_stampintegertime_zonestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cache_message?: string;
cache_message_zh?: string;
cache_url?: string;
code?: number;
data?: null;
docs?: string;
message?: string;
message_zh?: string;
params?: Record<string, unknown>;
request_id?: string;
router?: string;
support?: string;
time?: string;
time_stamp?: number;
time_zone?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Generate real msToken · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Generate X-Mssdk-Info · POST · View API reference | $0.002 / call | —Select to load statistics | —successP50— | |
| Generate XGnarly · POST · View API reference | $0.002 / call | —Select to load statistics | —successP50— | |
| Generate hashed ID · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Generate ttwid · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Generate web_id · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
| Generate XBogus · POST · View API reference | $0.001 / call | —Select to load statistics | —successP50— | |
Current Generate XGnarly and XBogus · POST · View API reference | $0.005 / call | — | —successP50— | |
| Generate browser fingerprint · GET · View API reference | $0.001 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.005
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: 4. Price update time: not supplied.
Total $0.5
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/tikhub/api/v1/tiktok/web/generate_xgnarly_and_xbogus- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/tikhub/api/v1/tiktok/web/generate_xgnarly_and_xbogus' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"url": "https://www.tiktok.com/api/search/user/full/?WebIdLastTime=1756087650&aid=1988&app_language=zh-Hans&app_name=tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=MacIntel&browser_version=5.0%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_7%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F139.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true&cursor=10&data_collection_enabled=false&device_id=7542339104672111234&device_platform=web_pc&focus_state=true&from_page=search&history_len=3&is_fullscreen=true&is_page_visible=true&keyword=musk&odinId=7542338997269211234&os=mac&priority_region&referer®ion=US&screen_height=967&screen_width=1496&search_id&tz_name=America%2FLos_Angeles&user_is_login=false&web_search_code=%7B%22tiktok%22%3A%7B%22client_params_x%22%3A%7B%22search_engine%22%3A%7B%22ies_mt_user_live_video_card_use_libra%22%3A1%2C%22mt_search_general_user_live_card%22%3A1%7D%7D%2C%22search_server%22%3A%7B%7D%7D%7D&webcast_language=zh-Hans"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
url | JSON request bodybody | string | Yes | 包含域名和参数的请求的API URL,不需要进行URL编码 | The requested API URL, no need to URL encode |
body | JSON request bodybody | string | null | No | 请求的API参数,适用于POST请求 | The API parameters of the request, applicable for POST requests |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Response template · not a real response · Configured HTTP 200; actual status is unverified. Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
{
"cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.",
"cache_message_zh": "本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。",
"cache_url": "<cache_url>",
"code": 200,
"data": null,
"docs": "<docs>",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {},
"request_id": "<request_id>",
"router": "",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "<time>",
"time_stamp": 0,
"time_zone": "America/Los_Angeles"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# TikTok Generate
TikTok Generate helps users create video ideas, scripts, captions, and hashtags for TikTok, making it easier to produce engaging content tailored to their audience.
## Available implementations
tikhub · Generate real msToken: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=16f5319b-974f-4aa3-9ea5-721767084c96 · $0.001 / call
tikhub · Generate X-Mssdk-Info: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=3e972990-1f70-4a6c-9541-0560d1f7685b · $0.002 / call
tikhub · Generate XGnarly: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=658359a5-4b46-4d0b-a9db-142cfd8474df · $0.002 / call
tikhub · Generate hashed ID: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=85c1a4c5-555e-4210-aec4-ad0b3bffe5d2 · $0.001 / call
tikhub · Generate ttwid: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=ce571ce7-24d1-453e-94d0-45726e229a60 · $0.001 / call
tikhub · Generate web_id: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=e08588bd-facd-4196-afb8-315d319f20bd · $0.001 / call
tikhub · Generate XBogus: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=e851e54e-c6cd-4d21-a2c9-eac0d6716c74 · $0.001 / call
tikhub · Generate XGnarly and XBogus: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=ed03abdf-ab85-4b8a-a001-e8b3fd6d61cc · $0.005 / call
tikhub · Generate browser fingerprint: https://openany.si/markets/apis/capabilities/tiktok-generate?offering=f65d3cec-1a7c-4f2c-b400-7d20a88d41ac · $0.001 / call
## Selected API contract
Documentation: https://openany.si/apis/ed03abdf-ab85-4b8a-a001-e8b3fd6d61cc
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/tikhub/api/v1/tiktok/web/generate_xgnarly_and_xbogus
Price: $0.005 / call
Provider: tikhub
Contract revision: 4
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/tikhub/api/v1/tiktok/web/generate_xgnarly_and_xbogus' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"url": "https://www.tiktok.com/api/search/user/full/?WebIdLastTime=1756087650&aid=1988&app_language=zh-Hans&app_name=tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=MacIntel&browser_version=5.0%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_7%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F139.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true&cursor=10&data_collection_enabled=false&device_id=7542339104672111234&device_platform=web_pc&focus_state=true&from_page=search&history_len=3&is_fullscreen=true&is_page_visible=true&keyword=musk&odinId=7542338997269211234&os=mac&priority_region&referer®ion=US&screen_height=967&screen_width=1496&search_id&tz_name=America%2FLos_Angeles&user_is_login=false&web_search_code=%7B%22tiktok%22%3A%7B%22client_params_x%22%3A%7B%22search_engine%22%3A%7B%22ies_mt_user_live_video_card_use_libra%22%3A1%2C%22mt_search_general_user_live_card%22%3A1%7D%7D%2C%22search_server%22%3A%7B%7D%7D%7D&webcast_language=zh-Hans"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Generate XGnarly and XBogus",
"endpoint": "https://api.openany.si/v1/agent-apis/tikhub/api/v1/tiktok/web/generate_xgnarly_and_xbogus",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "包含域名和参数的请求的API URL,不需要进行URL编码 | The requested API URL, no need to URL encode",
"location": "body",
"name": "url",
"nullable": false,
"pointer": "/url",
"required": true,
"type": "string"
},
{
"description": "请求的API参数,适用于POST请求 | The API parameters of the request, applicable for POST requests",
"location": "body",
"name": "body",
"nullable": true,
"pointer": "/body",
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "5000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Schema template (HTTP assumed)",
"request": {
"body": {
"url": "https://www.tiktok.com/api/search/user/full/?WebIdLastTime=1756087650&aid=1988&app_language=zh-Hans&app_name=tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=MacIntel&browser_version=5.0%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_7%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F139.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true&cursor=10&data_collection_enabled=false&device_id=7542339104672111234&device_platform=web_pc&focus_state=true&from_page=search&history_len=3&is_fullscreen=true&is_page_visible=true&keyword=musk&odinId=7542338997269211234&os=mac&priority_region&referer®ion=US&screen_height=967&screen_width=1496&search_id&tz_name=America%2FLos_Angeles&user_is_login=false&web_search_code=%7B%22tiktok%22%3A%7B%22client_params_x%22%3A%7B%22search_engine%22%3A%7B%22ies_mt_user_live_video_card_use_libra%22%3A1%2C%22mt_search_general_user_live_card%22%3A1%7D%7D%2C%22search_server%22%3A%7B%7D%7D%7D&webcast_language=zh-Hans"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.",
"cache_message_zh": "本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。",
"cache_url": "<cache_url>",
"code": 200,
"data": null,
"docs": "<docs>",
"message": "Request successful. This request will incur a charge.",
"message_zh": "请求成功,本次请求将被计费。",
"params": {},
"request_id": "<request_id>",
"router": "",
"support": "Discord: https://discord.gg/aMEAS8Xsvz",
"time": "<time>",
"time_stamp": 0,
"time_zone": "America/Los_Angeles"
}
}
]
}
```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
Schema template (HTTP assumed)
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
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 2
Review these request fields before running. Keep the published provider and request method unchanged.
url- 包含域名和参数的请求的API URL,不需要进行URL编码 | The requested API URL, no need to URL encode
body- 请求的API参数,适用于POST请求 | The API parameters of the request, applicable for POST requests
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/tikhub/api/v1/tiktok/web/generate_xgnarly_and_xbogus' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "url": "https://www.tiktok.com/api/search/user/full/?WebIdLastTime=1756087650&aid=1988&app_language=zh-Hans&app_name=tiktok_web&browser_language=zh-CN&browser_name=Mozilla&browser_online=true&browser_platform=MacIntel&browser_version=5.0%20%28Macintosh%3B%20Intel%20Mac%20OS%20X%2010_15_7%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F139.0.0.0%20Safari%2F537.36&channel=tiktok_web&cookie_enabled=true&cursor=10&data_collection_enabled=false&device_id=7542339104672111234&device_platform=web_pc&focus_state=true&from_page=search&history_len=3&is_fullscreen=true&is_page_visible=true&keyword=musk&odinId=7542338997269211234&os=mac&priority_region&referer®ion=US&screen_height=967&screen_width=1496&search_id&tz_name=America%2FLos_Angeles&user_is_login=false&web_search_code=%7B%22tiktok%22%3A%7B%22client_params_x%22%3A%7B%22search_engine%22%3A%7B%22ies_mt_user_live_video_card_use_libra%22%3A1%2C%22mt_search_general_user_live_card%22%3A1%7D%7D%2C%22search_server%22%3A%7B%7D%7D%7D&webcast_language=zh-Hans" }'Check the response
Response template · not a real response · Configured HTTP 200; actual status is unverified.
Response template · not a real response{ "cache_message": "This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again.", "cache_message_zh": "本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。", "cache_url": "<cache_url>", "code": 200, "data": null, "docs": "<docs>", "message": "Request successful. This request will incur a charge.", "message_zh": "请求成功,本次请求将被计费。", "params": {}, "request_id": "<request_id>", "router": "", "support": "Discord: https://discord.gg/aMEAS8Xsvz", "time": "<time>", "time_stamp": 0, "time_zone": "America/Los_Angeles" }