Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ WeChat Mini Program Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/wechat-search/search-miniprogram โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน 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 ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ WeChat Search ไหม?

ไม่จำเป็น WeChat Mini Program Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง WeChat Search API แยกต่างหาก