Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Polymarket Get related tags (relationships) by tag id

API dokümanları
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.

Fiyat
$0.00044USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 2 isteğe bağlı

Oynatma Alanı

Girdi
id
omit_empty
status
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Polymarket$0.00044 çağrı başınaJSON
Polymarket$0.012 çağrı başınaJSON
Polymarket$0.012 çağrı başınaJSON
Polymarket$0.012 çağrı başınaJSON
Polymarket$0.012 çağrı başınaJSON
Polymarket$0.012 çağrı başınaJSON

Sorular

SSS

Polymarket Get related tags (relationships) by tag id API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/polymarket/tags-related-tags adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Polymarket Get related tags (relationships) by tag id API'sinin fiyatı nedir?

çağrı başına $0.00044, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Polymarket Get related tags (relationships) by tag id API'si hangi parametreleri kabul eder?

Gerekli: id (integer). İsteğe bağlı: omit_empty (boolean) ve status (active, closed, all arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Polymarket Get related tags (relationships) by tag id API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Polymarket geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Polymarket Get related tags (relationships) by tag id, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Polymarket API erişimi için ayrıca başvuru yapmanız gerekmez.