Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Toutiao Profile User ID

API dokümanları
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.

Fiyat
$0.001USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 0 isteğe bağlı

Oynatma Alanı

Girdi
User profile URL
ÇıktıÖrnek
Yanıtoutputs · 168 B · 8 satır
[
  {
    "data": {
      "sec_user_id": "MS4wLjABAAAAwK6echNksY69R8l2vcZudupfhTItbGSGt-8ineO5UaB4L-djqkYDgB6TkAdMvrmW",
      "user_id": "1352838578180211"
    }
  }
]

Örnekler

Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Toutiao$0.001 çağrı başınaJSON
Toutiao$0.001 çağrı başınaJSON
Toutiao$0.001 çağrı başınaJSON
Toutiao$0.001 çağrı başınaJSON
Toutiao$0.001 çağrı başınaJSON
Toutiao$0.071429 çağrı başınaJSON

Sorular

SSS

Toutiao Profile User ID API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/toutiao/app/user-id adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Toutiao Profile User ID API'sinin fiyatı nedir?

çağrı başına $0.001, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Toutiao Profile User ID API'si hangi parametreleri kabul eder?

Gerekli: user_profile_url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Toutiao Profile User ID API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Toutiao geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Toutiao Profile User ID, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Toutiao API erişimi için ayrıca başvuru yapmanız gerekmez.