idintegerzorunlu
id
https://api.sandbase.ai/v1/api/polymarket/tags-related-tagsGet related tags (relationships) by tag id from Polymarket. Returns the official Polymarket API response unchanged.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
rank.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.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | id |
omit_empty | boolean | No | omit_empty |
status | string | No | status |
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
}
]
| Field | Meaning |
|---|---|
id | ID of the relationship row itself, returned as a string. It is not a tag id. |
rank | Position of the related tag in the list for this tag. 1 is the first entry. |
relatedTagID | Tag id of the related tag. Use it to look up that tag's details. |
tagID | Tag id the relationship belongs to. It matches the id you sent in the request. |
omit_empty and status are optional. status accepts active, closed or all. The example response was requested with only id.relatedTagID value to get the name of that tag.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
idintegerzorunluid
omit_emptybooleanomit_empty
statusstringstatus
Olası değerler: active, closed, all
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Polymarket | $0.00044 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Polymarket | $0.012 çağrı başına | JSON |
Sorular
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.
çağrı başına $0.00044, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
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.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
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.