Your TikTok profile — follower and like counts
tiktok.tiktok.user.profileGet your own TikTok profile with follower, following and total-like counts
- Price
- freePelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/tiktok.tiktok.user.profilePreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
trailing slash on the path is required. Requesting a field outside the granted scopes fails the entire request with scope_not_authorized
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
fields | string | Obrigatório | comma-separated. open_id, union_id, avatar_url, display_name, bio_description, profile_deep_link, is_verified need user.info.basic/profile; follower_count, following_count, likes_count, video_count need user.info.stats | open_id,display_name,avatar_url,bio_description,follower_count,following_count,likes_count,video_count |
- Parâmetros de consulta
fieldsstringObrigatóriocomma-separated. open_id, union_id, avatar_url, display_name, bio_description, profile_deep_link, is_verified need user.info.basic/profile; follower_count, following_count, likes_count, video_count need user.info.stats
Exemplo:
open_id,display_name,avatar_url,bio_description,follower_count,following_count,likes_count,video_count
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/tiktok.tiktok.user.profile' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/tiktok.tiktok.user.profile",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tiktok.tiktok.user.profile", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.