API Key
Every request to the KeyAPI API must include your API key. You can find it in your dashboard.Bearer Authentication
KeyAPI uses Bearer authentication. Pass your API key in theAuthorization header.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to authenticate requests to the KeyAPI API.
Authorization header.
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.keyapi.ai/v1/tiktok/influencer/detail?unique_id=karladelatorre97"
import requests
response = requests.get(
"https://api.keyapi.ai/v1/tiktok/influencer/detail",
params={"unique_id": "karladelatorre97"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
)
const res = await fetch(
"https://api.keyapi.ai/v1/tiktok/influencer/detail?unique_id=karladelatorre97",
{
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
}
);
{
"code": 0,
"message": "success",
"data": { ... }
}
| Field | Type | Description |
|---|---|---|
code | integer | 0 means success; non-zero indicates an error |
message | string | Human-readable status message |
data | object | array | The response payload |
| HTTP Status | Meaning |
|---|---|
400 | Invalid request parameters |
401 | Missing or invalid API key |
402 | Insufficient credits or payment required |
403 | API key does not have access to this endpoint |
429 | Too many requests |
500 | Internal server error |
