slugstringobrigatório
slug
https://api.sandbase.ai/v1/api/polymarket/tags-slug-related-tagsGet related tags (relationships) by tag slug from Polymarket. Returns the official Polymarket API response unchanged.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
rank.status to see only tags that have active or closed markets.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.
| 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.
[
{
"id": "49569",
"rank": 1,
"relatedTagID": 126,
"tagID": 2
}
]
| Field | Meaning |
|---|---|
id | ID of the relationship record, returned as a string. |
rank | Position of the related tag in the list for this tag. Rank 1 comes first. |
tagID | Numeric ID of the tag you asked for, found from the slug. It has the same value in every row. |
relatedTagID | Numeric ID of the tag that is related to tagID. |
relatedTagID, call Polymarket Get tag by id.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
slugstringobrigatórioslug
omit_emptybooleanomit_empty
statusstringstatus
Valores possíveis: active, closed, all
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Polymarket | $0.00044 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Polymarket | $0.012 por chamada | JSON |
Perguntas
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.
$0.00044 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
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.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
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.