Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Polymarket Search markets, events, and profiles

เอกสาร API
https://api.sandbase.ai/v1/api/polymarket/public-search

Search markets, events, and profiles from Polymarket. Returns the official Polymarket API response unchanged.

ราคา
$0.012USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 13 ไม่บังคับ

Playground

อินพุต
q
ascending
cache
events_status
events_tag
exclude_tag_id
keep_closed_markets
limit_per_type
optimized
page
recurrence
search_profiles
search_tags
sort
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Polymarket Search markets, events, and profiles API

Searches Polymarket for events that match a text query. Each event includes its markets, tags, and status. The only required input is q, a search string such as election.

Use cases

  • Find every Polymarket event about a topic, such as an election, to track related betting markets.
  • Build a search box that lists matching events with their title, image, and slug.
  • Collect the tag labels on matching events to see how Polymarket groups a topic.
  • Check how many events match a keyword by reading the total result count.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/public-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"q": "election"}'

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

Parameters

NameTypeRequiredDescription
qstringYesq
ascendingbooleanNoascending
cachebooleanNocache
events_statusstringNoevents_status
events_tagarrayNoevents_tag
exclude_tag_idarrayNoexclude_tag_id
keep_closed_marketsintegerNokeep_closed_markets
limit_per_typeintegerNolimit_per_type
optimizedbooleanNooptimized
pageintegerNopage
recurrencestringNorecurrence
search_profilesbooleanNosearch_profiles
search_tagsbooleanNosearch_tags
sortstringNosort

Example response

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

{
  "events": [
    {
      "active": true,
      "archived": false,
      "closed": true,
      "closedTime": "2023-11-08T07:31:57Z",
      "commentCount": 17,
      "commentsEnabled": false,
      "competitive": 0,
      "createdAt": "2023-11-06T15:52:14.553Z",
      "creationDate": "2023-11-06T16:29:08.874Z",
      "cyom": false,
      "deploying": false,
      "description": "This market will resolve to \"Presley\" if Brandon Presley (D) wins the 2023 Missi…"
    }
  ],
  "pagination": {
    "hasMore": true,
    "totalResults": 4713
  }
}

Response fields

FieldMeaning
events[].titleDisplay name of the event, for example the election being bet on.
events[].slug / events[].tickerText identifier for the event. Use the slug to look up the event on its own.
events[].idEvent ID as a string.
events[].active / events[].closed / events[].archivedStatus flags for the event. A closed event has ended trading, and closedTime shows when it closed.
events[].startDate / events[].endDateStart and end dates of the event in ISO 8601 format.
events[].descriptionResolution rules and background text for the event. Long text may be cut.
events[].markets[]The markets inside the event. Each one has fields such as bestBid, bestAsk, acceptingOrders, and clobTokenIds.
events[].markets[].bestBid / events[].markets[].bestAskBest bid and best ask price for the market.
events[].tags[].label / events[].tags[].slugName and slug of each tag on the event, such as Politics or election.
pagination.hasMore / pagination.totalResultshasMore tells you if more results exist. totalResults is the total number of matches.

Notes

  • Use page to move through results. Check pagination.hasMore to see if another page exists.
  • clobTokenIds is a JSON string that holds a list of token IDs. Parse it before use.
  • Pass an event slug to Polymarket Get event by slug to fetch a single event.
  • Pass an event id to Polymarket Get event by id for the same purpose.

Pricing

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

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

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

APIs ทั้งหมด
APIราคาการตอบกลับ
Polymarket$0.012 ต่อการเรียกJSON
Polymarket$0.012 ต่อการเรียกJSON
Polymarket$0.012 ต่อการเรียกJSON
Polymarket$0.012 ต่อการเรียกJSON
Polymarket$0.012 ต่อการเรียกJSON
Polymarket$0.012 ต่อการเรียกJSON

คำถาม

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

ฉันจะใช้ Polymarket Search markets, events, and profiles API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/polymarket/public-search โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Polymarket Search markets, events, and profiles API ราคาเท่าไร?

$0.012 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Polymarket Search markets, events, and profiles API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: q (string). ตัวเลือก: ascending (boolean), cache (boolean), events_status (string), events_tag (array), exclude_tag_id (array) และ keep_closed_markets (integer) และอีก 7 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Polymarket Search markets, events, and profiles API ส่งคืนอะไร?

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

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

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