Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Toutiao Profile User ID

APIドキュメント
https://api.sandbase.ai/v1/api/toutiao/app/user-id

Resolves a Toutiao user profile URL into numeric and secure user identifiers. Returns the user ID and sec_user_id associated with the provided profile link.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
User profile URL
出力例
レスポンスoutputs · 168 B · 8 行
[
  {
    "data": {
      "sec_user_id": "MS4wLjABAAAAwK6echNksY69R8l2vcZudupfhTItbGSGt-8ineO5UaB4L-djqkYDgB6TkAdMvrmW",
      "user_id": "1352838578180211"
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

Toutiao Profile User ID API

This API takes a Toutiao user profile URL and returns the numeric user_id and the sec_user_id for that account. It needs one input, user_profile_url.

Use cases

  • Convert a shared Toutiao profile link into a user_id before you look up the account.
  • Extract the sec_user_id from a profile link to use in other Toutiao requests.
  • Match profile links collected from different sources to the same account by comparing user_id values.

Request

curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"user_profile_url": "https://www.toutiao.com/c/user/token/MS4wLjABAAAAwK6echNksY69R8l2vcZudupfhTItbGSGt-8ineO5UaB4L-djqkYDgB6TkAdMvrmW/"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
user_profile_urlstringYesUser profile URL

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "sec_user_id": "MS4wLjABAAAAwK6echNksY69R8l2vcZudupfhTItbGSGt-8ineO5UaB4L-djqkYDgB6TkAdMvrmW",
  "user_id": "1352838578180211"
}

Response fields

FieldMeaning
user_idNumeric ID of the Toutiao account. It is returned as a string.
sec_user_idSecure user ID for the same account. In the example, it matches the token segment at the end of the profile URL.

Notes

  • Pass the full profile link in user_profile_url. The example uses the form https://www.toutiao.com/c/user/token/<token>/.
  • To get profile details such as name, bio and follower counts, send the returned user_id to Toutiao User Profile.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Toutiao$0.001 / 回JSON
Toutiao$0.001 / 回JSON
Toutiao$0.001 / 回JSON
Toutiao$0.001 / 回JSON
Toutiao$0.001 / 回JSON
Toutiao$0.071429 / 回JSON

質問

FAQ

Toutiao Profile User ID API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/toutiao/app/user-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Toutiao Profile User ID API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Toutiao Profile User ID API はどのパラメータを受け付けますか?

必須: user_profile_url (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Toutiao Profile User ID API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Toutiao の開発者アカウントまたは API key は必要ですか?

いいえ。Toutiao Profile User ID は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Toutiao の API アクセスを別途申請する必要はありません。