uidstringobrigatório
User ID (required)
https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-postsReturns posts from a specified Weibo user matching optional search keywords. Supports filtering by post types such as images, videos, and retweets, as well as date ranges.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
Returns posts from one Weibo user's timeline that match optional keywords. It needs the user's uid and accepts filters for post type and a Unix timestamp date range.
starttime and endtime.data.total is above zero.curl -X POST "https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uid": "8431518763"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User ID (required) |
endtime | string | No | End timestamp (optional, Unix timestamp format) |
hasmusic | integer | No | Include music posts (default 1 include) |
hasori | integer | No | Include original posts (default 1 include) |
haspic | integer | No | Include image posts (default 1 include) |
hasret | integer | No | Include retweets (default 1 include) |
hastext | integer | No | Include text posts (default 1 include) |
hasvideo | integer | No | Include video posts (default 1 include) |
page | integer | No | Page number, starts from 1 (default 1) |
q | string | No | Search keyword (optional, empty string means search all content) |
starttime | string | No | Start timestamp (optional, Unix timestamp format) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"list": [],
"total": 0
},
"ok": 1
}
| Field | Meaning |
|---|---|
ok | Status flag for the call. A value of 1 means the request went through. |
data.list | List of matching posts for the requested page. It is an empty list when nothing matches, as in the sample call. |
data.total | Count of posts that match the query and filters. It is 0 in the sample response, which has no matches. |
uid from a user lookup such as Weibo User Search or Weibo User Basic Information.page to move through results. It starts at 1.data.list with data.total of 0 means no posts matched the current q, type flags and time range.$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/search-user-posts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"uid": "8431518763"
}'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.
uidstringobrigatórioUser ID (required)
endtimeanyEnd timestamp (optional, Unix timestamp format)
hasmusicintegerInclude music posts (default 1 include)
hasoriintegerInclude original posts (default 1 include)
haspicintegerInclude image posts (default 1 include)
hasretintegerInclude retweets (default 1 include)
hastextintegerInclude text posts (default 1 include)
hasvideointegerInclude video posts (default 1 include)
pageintegerPage number, starts from 1 (default 1)
qstringSearch keyword (optional, empty string means search all content)
starttimeanyStart timestamp (optional, Unix timestamp format)
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Weibo User Post 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/search-user-posts 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. Cada organização recebe 100 chamadas grátis por dia UTC, compartilhadas entre as APIs elegíveis da SandBase, incluindo esta; depois disso, cada chamada é cobrada nesse valor do seu saldo SandBase. Não há assinatura.
Obrigatórios: uid (string). Opcionais: endtime (any), hasmusic (integer), hasori (integer), haspic (integer), hasret (integer) e hastext (integer) 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 Post 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.