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": []
}
}
}
]Selecione um exemplo para carregar as entradas e o resultado no playground.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
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)
Padrão: 1
queryanySearch keyword (optional)
regionanyRegion code from /fetch_city_list (optional)
schoolanySchool filter (optional)
taganyTag filter (optional)
workanyCompany filter (optional)
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
[
{
"data": {
"parsed_data": {
"count": 0,
"users": []
}
}
}
]Explorar mais
| API | Preço | Resposta |
|---|---|---|
Weibo User SearchEsta API Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Weibo | $0.001 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/weibo/web-v2/user-search com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Nenhum parâmetro é obrigatório. Opcionais: age (any), auth (any), gender (any), nickname (any), page (integer) e query (any) e mais 4. A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Weibo User Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Weibo separadamente.