Definition
TikTok API endpoints on Scavio use Bearer token authentication (Authorization: Bearer YOUR_API_KEY header), which differs from the x-api-key header used by Google, YouTube, Amazon, Reddit, and Walmart search endpoints. Both use the same API key value.
In Depth
Scavio uses two authentication header patterns. Search endpoints (Google, YouTube, Amazon, Reddit, Walmart) use x-api-key: YOUR_API_KEY. TikTok endpoints use Authorization: Bearer YOUR_API_KEY. The API key value is the same in both cases, only the header format differs. This distinction matters for developers building multi-platform pipelines: the same key works everywhere, but the header must match the endpoint type. TikTok endpoints are all POST requests to paths under /api/v1/tiktok/. Each request costs 1 credit ($0.005) regardless of endpoint. The Bearer token pattern aligns with OAuth-style authentication common in social media APIs.
Example Usage
A developer builds a cross-platform search tool. For Google queries, the code sends x-api-key header. When switching to TikTok endpoints, the code switches to Authorization: Bearer header with the same key value. Both cost 1 credit per request.
Platforms
TikTok Bearer Token Auth is relevant across the following platforms, all accessible through Scavio's unified API:
- TikTok