Accounts
Search places to tag
https://api.tiktornado.com/api/v1/accounts/{accountId}/locationsScope: accounts:read
Searches the places TikTok can tag on a video post, best match first, at most 20. Pass a place's id and name as a post's settings.location. Names and addresses come from TikTok. TikTok is asked live.
Path parameters
accountIdstringRequiredThe account, from
GET /accounts.Matches
^[A-Za-z0-9]{1,64}$.
Query parameters
querystringRequiredThe place to look for, 1 to 100 characters after spaces at either end are removed.
1 to 100 characters.
Example request
curl 'https://api.tiktornado.com/api/v1/accounts/j971x2c4ajrq0w8sd5e8fxz3a57v2k8m/locations?query=Barcelona' \
-H "Authorization: Bearer $TIKTORNADO_API_KEY"Response 200
The places.
locationsarray of objectsRequiredAt most 20 items.
3 fields inside
idstringRequiredPass it, with
name, assettings.location.namestringRequiredaddressstring or nullRequiredThe place's address, or
nullwhen TikTok gives none.
{
"locations": [
{
"id": "1234567890",
"name": "Barcelona",
"address": "Catalonia, Spain"
},
{
"id": "1234567891",
"name": "Barceloneta Beach",
"address": null
}
]
}Errors
| Status | Reason | Message |
|---|---|---|
| 400 | invalid_request | Something here isn't valid. Check it and try again. |
account_not_ready | This account isn't ready to post yet. This account is under review by TikTok, so new posts can't be scheduled right now. | |
invalid_state | This can't be done right now. Refresh and try again. | |
account_reconnecting | This account is being reconnected. Your post will go out once it's back. | |
| 401 | api_key_invalid | This API key isn't valid. Check it, or create a new one in the app. |
| 403 | access_locked | Your subscription isn't active, so this can't be changed right now. Visit Billing to fix it. |
api_scope_missing | This API key can't do this. Create a key with the access it needs in the app. | |
| 404 | not_found | We couldn't find this. |
| 429 | slow_down | You're going a bit fast. Wait a moment and try again. |
| 500 | unknown_error | Something went wrong on our side. We're on it. |
| 503 | service_unavailable | Something went wrong on our side. We're on it. |