keywordstringzorunlu
Search keyword for WeChat Channels video results.
https://api.sandbase.ai/v1/api/wechat-channels/search-videoSearch WeChat Channels videos by keyword with publish-time, sort, page, offset, and continuation-state controls. Use it to find recent or ordered video results and continue web-search pages.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
Returns WeChat Channels video search results for a keyword. Each result has a thumbnail, duration, relative post time, and IDs. The only required input is keyword. You can also filter by publish time, change the sort order, and page through results.
sortType to LATEST.exportId values for videos on a keyword to pass to other WeChat Channels APIs.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/search-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "人工智能"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword for WeChat Channels video results. |
currentPage | integer | No | Current page number starting from 1 for WeChat Channels web search pagination. |
offset | integer | No | Search result offset returned by the previous WeChat Channels search response. Use 0 for the first page. |
publishTimeType | string | No | Publish time filter for WeChat Channels video web search. |
sortType | string | No | Sort order for WeChat Channels video search results. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"category": [
{
"selected": 1,
"type": 0,
"word": "全部"
}
],
"continueFlag": 1,
"cookies": "{\"box_of…",
"data": [
{
"subBoxes": [
{
"boxID": "0x80000000000-1-7530317014626261982",
"boxMergeTag": 0,
"boxMergeType": 107,
"boxMergeValue": 1,
"boxPos": 1,
"boxPosMerge": 1,
"count": 1,
"items": [
{
"dateTime": "24分钟前",
"docID": "finderobjv0UP6MxTQvwWPRuGhk22QE9GBai7N8Taj+Z0zTJE2Z3o0=",
"duration": "00:16",
"exportId": "export/UzFfBgAAxNuCbEAoaFONk8zT4DCKQA_XKca_aXvLDm97NtOzoQ",
"hashDocID": "7530317014626261982",
"image": "https://findermp.video.qq.com/251/20304/stodownload?encfilekey=KGDRibp2wkicLzqUk…",
"isHot": true,
"jumpInfo": {
"extInfo": "{\"behavior\":[\"report_feed_read\"],\"encryptedObjectId\":\"export/UzFfBgAAxNuCbEAoaFO…",
"jumpType": 9
}
}
]
}
],
"type": 107
}
],
"direction": 2,
"enableQuestionClosely": false,
"experiment": [
{
"key": "mmsearch_live_double_auto_play_exp",
"value": "1"
}
],
"isAutoPlayVideo": 1,
"isDivide": 1,
"isHomePage": 1,
"lang": "zh_CN",
"offset": 12
}
| Field | Meaning |
|---|---|
data[].subBoxes[].items[].docID / hashDocID | Identifiers for the result video. hashDocID is a numeric string that also appears in the matching boxID. |
data[].subBoxes[].items[].exportId | Export ID for the video, in the form export/.... Use it to look up the video in other WeChat Channels APIs. |
data[].subBoxes[].items[].duration | Video length as text, for example 00:16. |
data[].subBoxes[].items[].dateTime | Relative post time as shown in the app, for example 24分钟前 (24 minutes ago). |
data[].subBoxes[].items[].pubTime | Publish time as a Unix timestamp in seconds. Not every item has it. |
data[].subBoxes[].items[].image | URL of the video thumbnail. |
data[].subBoxes[].items[].isHot | true when the platform marks the video as hot. Most items omit it. |
data[].subBoxes[].items[].jumpInfo.extInfo | JSON string with the data the app uses to open the video, including encryptedObjectId. |
continueFlag | 1 in this response, which shows that more results can be fetched. |
offset / pageNumber / cookies | Paging state for the next request. offset was 12 and pageNumber was 2 in this response. |
offset as 0 and currentPage as 1. For the next page, send the offset value from the previous response and increase currentPage.cookies string in the response carries continuation state, including box_offset.searchID and query fields to match a response to the search that produced it.exportId to WeChat Channels Video Detail or WeChat Channels Video Metrics.$0.114286 per successful call. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/search-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"offset": 0,
"keyword": "人工智能",
"sortType": "COMPREHENSIVE",
"currentPage": 1,
"publishTimeType": "ALL"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
keywordstringzorunluSearch keyword for WeChat Channels video results.
publishTimeTypestringPublish time filter for WeChat Channels video web search.
Varsayılan: "ALL"
Olası değerler: ALL, ONE_DAY, SEVEN_DAYS, HALF_YEAR
sortTypestringSort order for WeChat Channels video search results.
Varsayılan: "COMPREHENSIVE"
Olası değerler: COMPREHENSIVE, LATEST, HOT
currentPageintegerCurrent page number starting from 1 for WeChat Channels web search pagination.
Varsayılan: 1
offsetintegerSearch result offset returned by the previous WeChat Channels search response. Use 0 for the first page.
Varsayılan: 0
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
WeChat Channels | $0.114286 çağrı başına | JSON |
WeChat Channels | $0.071429 çağrı başına | JSON |
WeChat Channels | $0.021429 çağrı başına | JSON |
WeChat Channels | $0.071429 çağrı başına | JSON |
WeChat Channels | $0.01 çağrı başına | JSON |
WeChat Channels | $0.01 çağrı başına | JSON |
Kılavuzlar:Best WeChat Channels API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/wechat-channels/search-video adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.114286, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: keyword (string). İsteğe bağlı: publishTimeType (ALL, ONE_DAY, SEVEN_DAYS, HALF_YEAR arasından biri), sortType (COMPREHENSIVE, LATEST, HOT arasından biri), currentPage (integer) ve offset (integer). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. WeChat Channels Video Search, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. WeChat Channels API erişimi için ayrıca başvuru yapmanız gerekmez.