Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

WeChat Mini Program Search

API 문서
https://api.sandbase.ai/v1/api/wechat-search/search-miniprogram

Search WeChat Mini Programs by keyword with page, offset, and continuation-state pagination. Use it to discover mini programs related to a brand, service, topic, or product.

가격
$0.114286USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 2개

Playground

입력
Search keyword for WeChat mini program web search.
Current page number starting from 1 for WeChat web search pagination.
Search result offset returned by the previous response. Use 0 for the first page.
출력준비됨

출력이 여기에 표시됩니다

입력을 완료한 다음 Run을 클릭하세요.

API README

WeChat Mini Program Search API

This API returns WeChat Mini Programs that match a search keyword. Each result has a short description, an icon URL, and the app ID and original ID needed to open the mini program. Send a keyword, and optionally currentPage and offset for paging.

Use cases

  • Find mini programs that match a brand name or service keyword.
  • Collect mini program app IDs for a topic such as AI assistants to build a competitor list.
  • Read result descriptions to see how mini programs describe their features for a given keyword.
  • Check which mini programs appear for a term and in what order.

Request

curl -X POST "https://api.sandbase.ai/v1/api/wechat-search/search-miniprogram" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "人工智能"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword for WeChat mini program web search.
currentPageintegerNoCurrent page number starting from 1 for WeChat web search pagination.
offsetintegerNoSearch result offset returned by the previous response. Use 0 for the first page.

Example response

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

{
  "category": [
    {
      "type": 0,
      "word": "全部"
    }
  ],
  "continueFlag": 1,
  "cookies": "{\"box_of…",
  "data": [
    {
      "boxExtraInfo": {
        "real_type": 262208,
        "resultType": 0,
        "subType": 0,
        "title": "小程序"
      },
      "subBoxes": [
        {
          "boxExtraInfo": null,
          "boxID": "split-0x40-0-3978567686",
          "boxMergeTag": 0,
          "boxMergeType": 109,
          "boxMergeValue": 3,
          "boxPos": 1,
          "boxPosMerge": 1,
          "count": 1
        }
      ],
      "type": 109
    }
  ],
  "direction": 2,
  "enableQuestionClosely": false,
  "experiment": [
    {
      "key": "mmsearch_shopping_cart_entry",
      "value": "1"
    }
  ],
  "isAutoPlayVideo": 1,
  "isDivide": 0,
  "isHomePage": 0,
  "lang": "zh_CN",
  "offset": 20
}

Response fields

FieldMeaning
data[].subBoxes[].items[].jumpInfo.appIDThe mini program app ID, for example wxdb0efd7c7855e881.
data[].subBoxes[].items[].jumpInfo.userNameThe mini program original ID, ending in @app.
data[].subBoxes[].items[].descThe mini program description. Matched keywords are wrapped in <em class="highlight"> tags.
data[].subBoxes[].items[].iconUrlURL of the mini program icon image.
data[].subBoxes[].items[].docIDThe result document ID. It matches the number at the end of the parent boxID.
data[].subBoxes[].boxPosThe position of the result box in the list, starting at 1.
offsetThe offset to send in the next request to get the following page.
continueFlagA value of 1 appears in this response. Its key name suggests more results can be fetched.
cookiesA JSON string with the continuation state for the search, including box_offset and cookies_buffer.
query / pageNumber / searchIDThe keyword that was searched, the page number of this response, and the ID of this search.

Notes

  • Use any word or phrase as keyword. The example uses 人工智能.
  • For the first page, send currentPage as 1 and offset as 0. For the next page, raise currentPage and send the offset value from the previous response.
  • The first entry in data[].subBoxes[] can be a box with no items. Skip boxes that have no items when you read results.
  • To search other WeChat content, use WeChat Account Search or WeChat Article Search.

Pricing

$0.114286 per successful call. Failed calls are not charged.

더 살펴보기

관련 API

모든 API
API가격응답
WeChat Search$0.114286 / 호출JSON
WeChat Search$0.057143 / 호출JSON
WeChat Search$0.114286 / 호출JSON
WeChat Search$0.01 / 호출JSON
WeChat Search$0.01 / 호출JSON

질문

FAQ

WeChat Mini Program Search API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/wechat-search/search-miniprogram에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

WeChat Mini Program Search API 비용은 얼마인가요?

호출당 $0.114286, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

WeChat Mini Program Search API는 어떤 매개변수를 받나요?

필수: keyword (string). 선택: currentPage (integer) 및 offset (integer). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

WeChat Mini Program Search API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

WeChat Search 개발자 계정이나 API 키가 필요한가요?

아니요. WeChat Mini Program Search은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. WeChat Search API 액세스를 별도로 신청할 필요는 없습니다.