Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Weibo User Post Search

Dokumentacja API
https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts

Returns 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.

Cena
$0.001USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 10 opcjonalnych
100 darmowych wywołań / dzieńPierwsze 100 wywołań dziennie za darmo (współdzielone w ramach organizacji) · Reset o 00:00 UTC. Później płatność za każde wywołanie.

Playground

Wejście
User ID (required)
End timestamp (optional, Unix timestamp format)
Include music posts (default 1 include)
Include original posts (default 1 include)
Include image posts (default 1 include)
Include retweets (default 1 include)
Include text posts (default 1 include)
Include video posts (default 1 include)
Page number, starts from 1 (default 1)
Search keyword (optional, empty string means search all content)
Start timestamp (optional, Unix timestamp format)
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Weibo User Post Search API

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.

Use cases

  • Find every post where a Weibo creator mentions a brand or product name.
  • Pull only the video or image posts from one account for content review.
  • Collect an account's posts for a set time window by passing starttime and endtime.
  • Check whether a user has posted about a topic by testing if data.total is above zero.

Request

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.

Parameters

NameTypeRequiredDescription
uidstringYesUser ID (required)
endtimestringNoEnd timestamp (optional, Unix timestamp format)
hasmusicintegerNoInclude music posts (default 1 include)
hasoriintegerNoInclude original posts (default 1 include)
haspicintegerNoInclude image posts (default 1 include)
hasretintegerNoInclude retweets (default 1 include)
hastextintegerNoInclude text posts (default 1 include)
hasvideointegerNoInclude video posts (default 1 include)
pageintegerNoPage number, starts from 1 (default 1)
qstringNoSearch keyword (optional, empty string means search all content)
starttimestringNoStart timestamp (optional, Unix timestamp format)

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "list": [],
    "total": 0
  },
  "ok": 1
}

Response fields

FieldMeaning
okStatus flag for the call. A value of 1 means the request went through.
data.listList of matching posts for the requested page. It is an empty list when nothing matches, as in the sample call.
data.totalCount of posts that match the query and filters. It is 0 in the sample response, which has no matches.

Notes

  • Get the uid from a user lookup such as Weibo User Search or Weibo User Basic Information.
  • Use page to move through results. It starts at 1.
  • An empty data.list with data.total of 0 means no posts matched the current q, type flags and time range.
  • To list an account's posts without a keyword search, use Weibo User Posts.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON
Weibo$0.001 za wywołanieJSON

Przewodniki:Best Weibo API in 2026: Pricing Compared

Pytania

FAQ

Jak używać API Weibo User Post Search?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/weibo/web-v2/search-user-posts z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Weibo User Post Search?

$0.001 za wywołanie. Każda organizacja otrzymuje 100 bezpłatnych wywołań na dzień UTC, współdzielonych między kwalifikującymi się API SandBase, w tym to; potem każde wywołanie jest rozliczane według tej stawki z salda SandBase. Nie ma subskrypcji.

Jakie parametry przyjmuje API Weibo User Post Search?

Wymagane: uid (string). Opcjonalne: endtime (any), hasmusic (integer), hasori (integer), haspic (integer), hasret (integer) i hastext (integer) i jeszcze 4. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Weibo User Post Search?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Weibo lub klucza API?

Nie. Weibo User Post Search działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Weibo.