slugstringobligatoire
slug
https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags-tagsGet tags related to a tag slug from Polymarket. Returns the official Polymarket API response unchanged.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns a list of Polymarket tags that are related to a given tag slug. Each tag includes its label, slug, id, and a count of active events. The only required input is slug, such as politics.
politics.activeEventsCount to find the busiest areas of Polymarket.createdAt and updatedAt.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags-tags" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"slug": "politics"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | slug |
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.
[
{
"activeEventsCount": 334,
"createdAt": "2023-11-02T21:23:16.39Z",
"forceShow": false,
"id": "126",
"label": "Trump",
"publishedAt": "2023-11-02 21:23:16.384+00",
"slug": "trump",
"updatedAt": "2026-04-17T20:39:14.206724Z",
"updatedBy": 15
}
]
| Field | Meaning |
|---|---|
[].label | Display name of the related tag, for example Trump or Midterms. |
[].slug | URL-style identifier of the related tag. Use it as the slug input in other tag calls. |
[].id | Tag id as a string. Use it to look up the tag by id. |
[].activeEventsCount | Number of active events that carry this tag. |
[].createdAt / [].updatedAt | ISO 8601 timestamps for when the tag was created and last changed. |
[].publishedAt | Publish time of the tag. It appears only on some tags and uses a different format from createdAt. |
[].forceShow | Boolean flag on the tag. It is missing on some tags. |
[].updatedBy | Numeric id of the user who last updated the tag. It appears only on some tags. |
slug of a tag from Polymarket List tags as the input.omit_empty is a boolean and status accepts active, closed or all.forceShow, publishedAt and updatedBy, are missing on some items, so check for them before reading.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags-tags" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"slug": "politics"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
slugstringobligatoireslug
omit_emptybooleanomit_empty
statusstringstatus
Valeurs possibles : active, closed, all
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Polymarket | $0.00044 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Polymarket | $0.012 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags-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.
$0.00044 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : slug (string). 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.
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.
Non. Polymarket Get tags related to a tag slug 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.