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

Polymarket Get related tags (relationships) by tag slug

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

Get related tags (relationships) by 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 related tags (relationships) by tag slug API

Returns the tag relationships for a Polymarket tag, looked up by its tag slug. Each row links the tag to one related tag and gives its rank. The only required input is slug, such as politics.

Use cases

  • Build a "related topics" list for a Polymarket category page, ordered by rank.
  • Map how tags connect to each other to build a topic graph of Polymarket markets.
  • Find the related tag IDs of a topic, then fetch each tag's details to show names and labels.
  • Filter the relationships by status to see only tags that have active or closed markets.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-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.

[
  {
    "id": "49569",
    "rank": 1,
    "relatedTagID": 126,
    "tagID": 2
  }
]

Response fields

FieldMeaning
idID of the relationship record, returned as a string.
rankPosition of the related tag in the list for this tag. Rank 1 comes first.
tagIDNumeric ID of the tag you asked for, found from the slug. It has the same value in every row.
relatedTagIDNumeric ID of the tag that is related to tagID.

Notes

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 related tags (relationships) by tag slug API ได้อย่างไร?

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

Polymarket Get related tags (relationships) by tag slug API ราคาเท่าไร?

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

Polymarket Get related tags (relationships) by tag slug API รับพารามิเตอร์อะไรบ้าง?

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

Polymarket Get related tags (relationships) by tag slug API ส่งคืนอะไร?

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

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

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