Kuaishou User ID Lookup
https://api.sandbase.ai/v1/api/kuaishou/web/get-user-idResolves a Kuaishou user ID from a provided user share link. Useful for extracting internal profile identifiers from public sharing URLs.
- 料金
- $0.001USD / 回
- メソッド
- POST
- レスポンス
- JSON
- パラメータ
- 必須 1 件 · 任意 0 件
プレイグラウンド
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
API README
Kuaishou User ID Lookup API
Returns the Kuaishou user ID found in a user share link. It needs one input, share_link, which is a Kuaishou user share URL such as https://c.kuaishou.com/fw/user/3xcuu5habgc8z29.
Use cases
- Turn a copied Kuaishou profile share link into a user ID you can store.
- Normalize a list of user share URLs into IDs before you run profile lookups.
- Match a creator's shared link to the same creator in your own database.
Request
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/get-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"share_link": "https://c.kuaishou.com/fw/user/3xcuu5habgc8z29"}'
The result is returned in outputs[0].data.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
share_link | string | Yes |
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"user_id": "3xcuu5habgc8z29"
}
Response fields
| Field | Meaning |
|---|---|
user_id | The Kuaishou user ID, returned as a string. |
user_id | In the sample, the value equals the last segment of the share link path (/fw/user/3xcuu5habgc8z29). |
user_id | The only field in the response. Pass it to other Kuaishou APIs that take a user identifier. |
Notes
- Pass the full user share URL in
share_link. The sample uses the formhttps://c.kuaishou.com/fw/user/<id>. - The response holds only
user_id. Use it as input to a profile API such as Kuaishou Web User Info or Kuaishou Single User Data (V2). - To list a creator's posts after the lookup, try Kuaishou User Video List (V2).
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
最初のリクエストを送信
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/web/get-user-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"share_link": "https://c.kuaishou.com/fw/user/3xcuu5habgc8z29"
}'2. 認証
SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
3. パラメータ
4. レスポンス
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
関連 APIs
| API | 価格 | レスポンス |
|---|---|---|
Kuaishou User ID Lookupこの API Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.001 / 回 | JSON |
Kuaishou | $0.002 / 回 | JSON |
Kuaishou | $0.002 / 回 | JSON |
質問
FAQ
Kuaishou User ID Lookup API はどのように使いますか?
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/kuaishou/web/get-user-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
Kuaishou User ID Lookup API の料金はいくらですか?
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
Kuaishou User ID Lookup API はどのパラメータを受け付けますか?
必須: share_link (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
Kuaishou User ID Lookup API は何を返しますか?
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
Kuaishou の開発者アカウントまたは API key は必要ですか?
いいえ。Kuaishou User ID Lookup は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Kuaishou の API アクセスを別途申請する必要はありません。
