Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Polymarket Get related tags (relationships) by tag slug

Documentación de la API
https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags

Get related tags (relationships) by tag slug from Polymarket. Returns the official Polymarket API response unchanged.

Precio
$0.00044USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 2 opcionales

Entorno de pruebas

Entrada
slug
omit_empty
status
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Polymarket Get related tags (relationships) by tag slug API

Returns the tag relationships for a Polymarket tag, looked up by its tag slug. Each row links the tag to one related tag and gives its rank. The only required input is slug, such as politics.

Use cases

  • Build a "related topics" list for a Polymarket category page, ordered by rank.
  • Map how tags connect to each other to build a topic graph of Polymarket markets.
  • Find the related tag IDs of a topic, then fetch each tag's details to show names and labels.
  • Filter the relationships by status to see only tags that have active or closed markets.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug": "politics"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
slugstringYesslug
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 record, returned as a string.
rankPosition of the related tag in the list for this tag. Rank 1 comes first.
tagIDNumeric ID of the tag you asked for, found from the slug. It has the same value in every row.
relatedTagIDNumeric ID of the tag that is related to tagID.

Notes

Pricing

$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Polymarket$0.00044 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Polymarket Get related tags (relationships) by tag slug?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Polymarket Get related tags (relationships) by tag slug?

$0.00044 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Polymarket Get related tags (relationships) by tag slug?

Requeridos: slug (string). Opcionales: omit_empty (boolean) y status (una de active, closed, all). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Polymarket Get related tags (relationships) by tag slug?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Polymarket?

No. Polymarket Get related tags (relationships) by tag slug funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Polymarket por separado.