Turn a TikTok place ID into the location record behind it. The response describes the point of interest itself, including its address, city, country and the category TikTok files it under, along with how many videos have been tagged there. That video count is a quick measure of how much attention a venue or district is drawing before you pull the posts.
curl -X GET "https://api.primeapi.co/place-info?placeId=22535796481538024" \
-H "X-PrimeAPI-Key: YOUR_API_KEY"
import requests
url = "https://api.primeapi.co/place-info?placeId=22535796481538024"
headers = {"X-PrimeAPI-Key": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
print("Credits left:", response.headers.get("X-PrimeAPI-Balance"))
{
"extra": {
"fatal_item_ids": [],
"logid": "202501180029112900DD32BF27D642E532",
"now": 1737160152000
},
"log_pb": {
"impr_id": "202501180029112900DD32BF27D642E532"
},
"poiInfo": {
"poi": {
"address": "Ho Chi Minh City, Vietnam",
"allLevelGeoPoiInfo": [],
"category": "District",
"city": "Ho Chi Minh City",
"cityCode": "1580578",
"country": "",
"countryCode": "1562822",
"fatherPoiId": "",
"fatherPoiName": "",
"id": "22535796481538024",
"indexEnabled": true,
"isClaimed": false,
"isCollected": false,
"name": "District 12",
"province": "",
"ttTypeCode": "19a3a2",
"ttTypeNameMedium": "Places",
"ttTypeNameSuper": "Place and Address",
"ttTypeNameTiny": "District",
"type": 1,
"typeCode": ""
},
"stats": {
"videoCount": 636501
}
},
"shareMeta": {
"desc": "Ho Chi Minh City, Vietnam",
"title": "District 12"
},
"statusCode": 0,
"status_code": 0,
"status_msg": ""
}