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

Polymarket Get tags related to a tag slug

เอกสาร API
https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags-tags

Get tags related to a tag slug from Polymarket. Returns the official Polymarket API response unchanged.

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

Playground

อินพุต
slug
omit_empty
status
เอาต์พุตพร้อมใช้งาน

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

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

API README

Polymarket Get tags related to a tag slug API

Returns a list of Polymarket tags that are related to a given tag slug. Each tag includes its label, slug, id, and a count of active events. The only required input is slug, such as politics.

Use cases

  • Build a topic navigation menu that suggests tags next to politics.
  • Rank related topics by activeEventsCount to find the busiest areas of Polymarket.
  • Expand a tag filter so a market browser also shows events from related tags.
  • Track when related tags were created or last changed using createdAt and updatedAt.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags-tags" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug": "politics"}'

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

Parameters

NameTypeRequiredDescription
slugstringYesslug
omit_emptybooleanNoomit_empty
statusstringNostatus

Example response

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

[
  {
    "activeEventsCount": 334,
    "createdAt": "2023-11-02T21:23:16.39Z",
    "forceShow": false,
    "id": "126",
    "label": "Trump",
    "publishedAt": "2023-11-02 21:23:16.384+00",
    "slug": "trump",
    "updatedAt": "2026-04-17T20:39:14.206724Z",
    "updatedBy": 15
  }
]

Response fields

FieldMeaning
[].labelDisplay name of the related tag, for example Trump or Midterms.
[].slugURL-style identifier of the related tag. Use it as the slug input in other tag calls.
[].idTag id as a string. Use it to look up the tag by id.
[].activeEventsCountNumber of active events that carry this tag.
[].createdAt / [].updatedAtISO 8601 timestamps for when the tag was created and last changed.
[].publishedAtPublish time of the tag. It appears only on some tags and uses a different format from createdAt.
[].forceShowBoolean flag on the tag. It is missing on some tags.
[].updatedByNumeric id of the user who last updated the tag. It appears only on some tags.

Notes

  • Use the slug of a tag from Polymarket List tags as the input.
  • omit_empty is a boolean and status accepts active, closed or all.
  • To look up related tags by numeric id instead, call Polymarket Get tags related to a tag id.
  • Some fields, such as forceShow, publishedAt and updatedBy, are missing on some items, so check for them before reading.

Pricing

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

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

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

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

คำถาม

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

ฉันจะใช้ Polymarket Get tags related to a tag slug API ได้อย่างไร?

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

Polymarket Get tags related to a tag slug API ราคาเท่าไร?

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

Polymarket Get tags related to a tag slug API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: slug (string). ตัวเลือก: omit_empty (boolean) และ status (หนึ่งใน active, closed, all). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Polymarket Get tags related to a tag slug API ส่งคืนอะไร?

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

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

ไม่จำเป็น Polymarket Get tags related to a tag slug ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Polymarket API แยกต่างหาก