Migrating from another API
Same paths, parameters and body keys. Change the base URL and the key.
Our TikTok endpoints use the same paths, query parameters and response keys as the TikTok data APIs most teams already call. If your code uses those paths today, you switch by changing two settings.
| before | after | |
|---|---|---|
| base URL | your current provider | https://scraper.riken.me |
| auth header | x-api-key: <key> | x-api-key: <key> (or Authorization: Bearer <key>) |
| paths | /v1/tiktok/profile and the rest | the same |
| body keys | success, credits_charged, credits_remaining, route keys | the same |
curl -s "https://scraper.riken.me/v1/tiktok/profile?handle=example_creator" \
-H "x-api-key: $RIKEN_API_KEY"What behaves differently
- No cache. Every answer is fetched live.
cache_max_ageis accepted if it is one of1d,3d,7d,14d,30d, and ignored. There are nocachedorcached_atkeys. trimis accepted and ignored.regionis ignored on the profile endpoints. On keyword search,CAsearches from Canada only; any other two letters keep the default order, US then Canada. A value that is not two letters is a free400.- No silent fallbacks. A parameter we cannot honour gets
400 unsupported_parameter, free. We never return unfiltered results for a filter we ignore. user_idworks only for accounts in our index. Otherwise passhandle.- Stable error codes. Every error has an
errorcode you can branch on. See Errors. - We send
429and503withRetry-After. See Capacity and Retry-After. - Profile videos returns page 1 only during the beta.