Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Polymarket Get tags related to a tag id

Dokumentacja API
https://api.sandbase.ai/v1/api/polymarket/tags-related-tags-tags

Get tags related to a tag id from Polymarket. Returns the official Polymarket API response unchanged.

Cena
$0.00044USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 2 opcjonalnych

Playground

Wejście
id
omit_empty
status
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

Polymarket Get tags related to a tag id API

Returns a list of Polymarket tags that are related to a given tag. It needs a numeric tag id as input. Each result has the related tag's label, slug, and a count of active events.

Use cases

  • Build a topic explorer that suggests neighboring topics, such as moving from one political tag to Midterms or Senate Elections.
  • Rank related tags by activeEventsCount to see which linked topics have the most open events.
  • Expand a tag filter by collecting related tag id values to use when searching for events.
  • Map how Polymarket groups topics by walking from one tag to its related tags.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-related-tags-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.

[
  {
    "activeEventsCount": 333,
    "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
  }
]

Response fields

FieldMeaning
[].idID of the related tag, returned as a string.
[].labelDisplay name of the related tag, such as Trump or Midterms.
[].slugURL-style name of the related tag. Use it to look up the tag by slug.
[].activeEventsCountNumber of active events that carry this tag.
[].createdAt / updatedAtTimestamps for when the tag was created and last changed, in ISO 8601 format.
[].publishedAtTime the tag was published. It appears only on some tags and uses a different date format from createdAt.
[].forceShowBoolean flag on the tag. It is missing on some tags.
[].updatedByNumeric ID of the user who last updated the tag. It appears only on some tags.

Notes

Pricing

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

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Polymarket$0.00044 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON

Pytania

FAQ

Jak używać API Polymarket Get tags related to a tag id?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/polymarket/tags-related-tags-tags z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Polymarket Get tags related to a tag id?

$0.00044 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Polymarket Get tags related to a tag id?

Wymagane: id (integer). Opcjonalne: omit_empty (boolean) i status (jedna z opcji: active, closed, all). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Polymarket Get tags related to a tag id?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Polymarket lub klucza API?

Nie. Polymarket Get tags related to a tag id działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Polymarket.