Toutiao User ID
Resolves the user ID associated with a Toutiao profile URL. Use it to convert a known profile link into the identifier required for subsequent user-profile lookups.
/v1/toutiao/get_user_id_v1
$0.02
- Price
- $0.02 per successful call, Failed calls are free
- Endpoint ID
toutiao.get_user_id_v1
Parameters
-
user_profile_urlstring RequiredThe Toutiao user profile URL used to resolve the user ID.
Example
https://www.toutiao.com/c/user/token/MS4wLjABAAAAt8SwvrFR9DtRuKnJXUMvrQ7AR6CXH2xE9sCHnJyDMH8/
Code samples
curl -G "https://api.mofa-ai.com/v1/toutiao/get_user_id_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'user_profile_url=https://www.toutiao.com/c/user/token/MS4wLjABAAAAt8SwvrFR9DtRuKnJXUMvrQ7AR6CXH2xE9sCHnJyDMH8/'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/toutiao/get_user_id_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"user_profile_url": "https://www.toutiao.com/c/user/token/MS4wLjABAAAAt8SwvrFR9DtRuKnJXUMvrQ7AR6CXH2xE9sCHnJyDMH8/",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/toutiao/get_user_id_v1");
url.search = new URLSearchParams({
user_profile_url: "https://www.toutiao.com/c/user/token/MS4wLjABAAAAt8SwvrFR9DtRuKnJXUMvrQ7AR6CXH2xE9sCHnJyDMH8/",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
Example response
Request parameters {"user_profile_url": "https://www.toutiao.com/c/user/token/MS4wLjABAAAAt8SwvrFR9DtRuKnJXUMvrQ7AR6CXH2xE9sCHnJyDMH8/"}
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "toutiao.get_user_id_v1",
"cost_usd": 0.02,
"data": {
"code": 0,
"data": null,
"message": null,
"requestId": "4e758976330048d290f1ca7009b296ed",
"recordTime": "2026-11-08T07:58:42.612239668",
"requestParams": {
"body": null,
"query": {
"userProfileUrl": "https://www.toutiao.com/c/user/token/MS4wLjABAAAAt8SwvrFR9DtRuKnJXUMvrQ7AR6CXH2xE9sCHnJyDMH8/"
}
}
}
}
Try it
Sign in to call this endpoint from this page. Successful calls are billed to your balance, failed calls are free, and new accounts get $0.50 of trial credit.
More Toutiao endpoints
-
Article Details
$0.02Retrieves details for a Toutiao article identified by its article ID. Use it to look up a known article for content review, archiving, or related media analy…
/v1/toutiao/get_article_detail_v1
-
Video Details
$0.02Retrieves details for a Toutiao video identified by its video ID. Use it to look up a known video for content review, archiving, or related media analysis.
/v1/toutiao/get_video_detail_v1
-
User Profile
$0.02Retrieves a Toutiao user profile identified by user ID. Use it to look up a known account for creator research, profile review, or related article analysis.
/v1/toutiao/get_user_detail_v1
-
Web Keyword Search
$0.10Searches Toutiao web articles by keyword. Use it to discover relevant articles for topic research, media monitoring, or source collection.
/v1/toutiao/search_v2