Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

Polymarket Get related tags (relationships) by tag slug

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

Preço
$0.00044USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 2 opcionais

Playground

Entrada
slug
omit_empty
status
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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 mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Polymarket$0.00044 por chamadaJSON
Polymarket$0.012 por chamadaJSON
Polymarket$0.012 por chamadaJSON
Polymarket$0.012 por chamadaJSON
Polymarket$0.012 por chamadaJSON
Polymarket$0.012 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Polymarket Get related tags (relationships) by tag slug?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tags com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API Polymarket Get related tags (relationships) by tag slug?

$0.00044 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API Polymarket Get related tags (relationships) by tag slug aceita?

Obrigatórios: slug (string). Opcionais: omit_empty (boolean) e status (um de active, closed, all). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Polymarket Get related tags (relationships) by tag slug retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor Polymarket ou de uma chave de API?

Não. Polymarket Get related tags (relationships) by tag slug funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Polymarket separadamente.