Country code TikTok associates with an account, looked up by handle.
2 credits/ call
Never more than 3 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/tiktok.profile_region" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle":"stoolpresidente"}'{
"output": {
"found": true,
"data": {
"handle": "stoolpresidente",
"region": "US",
"profileUrl": "https://www.tiktok.com/@stoolpresid…"
}
},
"credits": 2
}Input and output
1 field
stoolpresidente.3 fields
Good to know
The region is the account region TikTok reports, not verified residency.
Unknown handles return found: false. A miss is an answer, not an error.
The same key and credits work for every API.