Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Polymarket Get related tags (relationships) by tag id

Tài liệu API
https://api.sandbase.ai/v1/api/polymarket/tags-related-tags

Get related tags (relationships) by tag id from Polymarket. Returns the official Polymarket API response unchanged.

Giá
$0.00044USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 2 tùy chọn

Phòng thử nghiệm

Đầu vào
id
omit_empty
status
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Polymarket Get related tags (relationships) by tag id API

Returns the relationship rows for one Polymarket tag. Each row links the tag you pass in id to a related tag and gives its rank. The only required input is the integer tag id.

Use cases

  • Build a "related topics" list for a Polymarket tag page, ordered by rank.
  • Walk the tag graph from one tag to find neighbouring categories of markets.
  • Collect related tag ids, then look up their names and slugs to label a topic map.

Request

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

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

Parameters

NameTypeRequiredDescription
idintegerYesid
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 row itself, returned as a string. It is not a tag id.
rankPosition of the related tag in the list for this tag. 1 is the first entry.
relatedTagIDTag id of the related tag. Use it to look up that tag's details.
tagIDTag id the relationship belongs to. It matches the id you sent in the request.

Notes

  • omit_empty and status are optional. status accepts active, closed or all. The example response was requested with only id.
  • The response is a plain JSON array. It has no pagination fields in this example.
  • Call Polymarket Get tag by id with a relatedTagID value to get the name of that tag.
  • Polymarket Get tags related to a tag id is a separate API that returns the related tags themselves.

Pricing

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

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Polymarket$0.00044 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON
Polymarket$0.012 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Polymarket Get related tags (relationships) by tag id?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/polymarket/tags-related-tags với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Polymarket Get related tags (relationships) by tag id có giá bao nhiêu?

$0.00044 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Polymarket Get related tags (relationships) by tag id chấp nhận những tham số nào?

Bắt buộc: id (integer). Tùy chọn: omit_empty (boolean) và status (một trong số active, closed, all). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Polymarket Get related tags (relationships) by tag id trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Polymarket không?

Không. Polymarket Get related tags (relationships) by tag id chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Polymarket.