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.

Endpoint ID
GET /v1/toutiao/get_user_id_v1
Endpoint ID
toutiao.get_user_id_v1
Price
$0.02 per successful call · failed calls are free

Parameters

Name Required Type Description Example Allowed values
user_profile_url Required string The Toutiao user profile URL used to resolve the user ID. 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/'

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.

Sign in to try

Example response

Captured 2026-11-07, took 1344 ms · Request parameters {"user_profile_url": "https://www.toutiao.com/c/user/token/MS4wLjABAAAAt8SwvrFR9DtRuKnJXUMvrQ7AR6CXH2xE9sCHnJyDMH8/"}

JSON
{
  "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/"
      }
    }
  }
}