Documentation
Identifiers
Name an account, a post or anything else by its handle, its link or its id.
Every endpoint names what it reads with the same parameters. Give one of them.
Accounts
An account is named by its handle or its profile link.
| Parameter | Example |
|---|---|
handle | nike or @nike |
url | https://www.tiktok.com/@nike |
An account's lists take the same parameters as its profile. Some platforms take more, such as TikTok's secUid or YouTube's channelId, and say so on their page. A Reddit community is named by name (AskReddit, with or without r/) or its url.
Posts and Other Things
Anything else is named by its link, its id, a name or a query, as its endpoint asks.
| Parameter | Example |
|---|---|
url | https://www.instagram.com/p/Df147tCiAyB/ |
id | 7711465226318728461 |
name | fyp |
query | coffee |
- A link is the one the app's share button gives.
- An id is the platform's, as
idcomes in our answers. - A name is a hashtag's, without
#. - Short links work too:
vm.tiktok.com/…,pin.it/…,youtu.be/…,redd.it/….
Every List
Every list also takes two parameters of its own.
| Parameter | Takes |
|---|---|
cursor | Where the next page starts |
maxAge | The oldest cached answer to accept |
See Pagination and Caching.
Wrong Kind of Link
A link to the wrong kind of thing returns 400 INVALID_REQUEST, and says what it is to.
{
"error": "This link is to an account, not a post.",
"code": "INVALID_REQUEST",
"param": "url"
}