Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Polymarket Get related tags (relationships) by tag id

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

Prix
$0.00044USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
id
omit_empty
status
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Polymarket$0.00044 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON
Polymarket$0.012 par appelJSON

Questions

FAQ

Comment utiliser l’API Polymarket Get related tags (relationships) by tag id ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/polymarket/tags-related-tags avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Polymarket Get related tags (relationships) by tag id ?

$0.00044 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Polymarket Get related tags (relationships) by tag id accepte-t-elle ?

Obligatoire : id (integer). Facultatif : omit_empty (boolean) et status (l’un de active, closed, all). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Polymarket Get related tags (relationships) by tag id ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Polymarket ?

Non. Polymarket Get related tags (relationships) by tag id fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Polymarket séparément.