Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Polymarket Get related tags (relationships) by tag id

Documentazione 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.

Prezzo
$0.00044USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 2 opzionali

Playground

Input
id
omit_empty
status
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Polymarket$0.00044 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON

Domande

FAQ

Come uso l'API Polymarket Get related tags (relationships) by tag id?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/polymarket/tags-related-tags con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Polymarket Get related tags (relationships) by tag id?

$0.00044 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Polymarket Get related tags (relationships) by tag id?

Richiesti: id (integer). Facoltativi: omit_empty (boolean) e status (uno tra active, closed, all). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Polymarket Get related tags (relationships) by tag id?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Polymarket?

No. Polymarket Get related tags (relationships) by tag id funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Polymarket.