ageany
Age bucket 18y/22y/29y/39y/40y (optional)
https://api.sandbase.ai/v1/api/weibo/web-v2/user-searchSearch Weibo users using keywords or profile attributes such as company, school, tags, gender, age range, and verification type.
[
{
"data": {
"parsed_data": {
"count": 0,
"users": []
}
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns Weibo users that match a keyword or profile filters such as company, school, tag, gender, age bucket, region, and verification type. You must send at least one of query, region, auth, gender, age, nickname, tag, school, or work.
auth as org_vip together with a tag or query.work.school.age and gender.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/user-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
age | string | No | Age bucket 18y/22y/29y/39y/40y (optional) |
auth | string | No | Auth type org_vip/per_vip/ord (optional) |
gender | string | No | Gender man/women (optional) |
nickname | string | No | Nickname filter (optional) |
page | integer | No | Page number (default 1) |
query | string | No | Search keyword (optional) |
region | string | No | Region code from /fetch_city_list (optional) |
school | string | No | School filter (optional) |
tag | string | No | Tag filter (optional) |
work | string | No | Company filter (optional) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"message": "Invalid query. Pass at least one of: query, region, auth, gender, age, nickname,…",
"message_zh": "query 非法。请至少传入以下一项:query, region, auth, gender, age, nickname, tag, school, work…",
"ok": 0,
"param": "query"
}
| Field | Meaning |
|---|---|
ok | Status flag. 0 means the request failed, as in the response to an empty request. |
message | English error text. It says the query is invalid and lists the parameters you can send; at least one is required. |
message_zh | The same error text in Chinese. |
param | Name of the parameter the error refers to. An empty request returns query, even though any one of the listed filters is enough. |
ok as 0 with the error message. Send at least one search or filter parameter.page to move through results. It starts at 1.region code from Weibo Region City List.$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/weibo/web-v2/user-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
ageanyAge bucket 18y/22y/29y/39y/40y (optional)
authanyAuth type org_vip/per_vip/ord (optional)
genderanyGender man/women (optional)
nicknameanyNickname filter (optional)
pageintegerPage number (default 1)
デフォルト: 1
queryanySearch keyword (optional)
regionanyRegion code from /fetch_city_list (optional)
schoolanySchool filter (optional)
taganyTag filter (optional)
workanyCompany filter (optional)
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"parsed_data": {
"count": 0,
"users": []
}
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Weibo User Searchこの API Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
Weibo | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/weibo/web-v2/user-search に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: age (any), auth (any), gender (any), nickname (any), page (integer) と query (any) と他 4 件。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Weibo User Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Weibo の API アクセスを別途申請する必要はありません。