idintegerwymagane
id
https://api.sandbase.ai/v1/api/polymarket/tags-related-tags-tagsGet tags related to a tag id from Polymarket. Returns the official Polymarket API response unchanged.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Midterms or Senate Elections.activeEventsCount to see which linked topics have the most open events.id values to use when searching for events.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.
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | id |
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": 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
}
]
| Field | Meaning |
|---|---|
[].id | ID of the related tag, returned as a string. |
[].label | Display name of the related tag, such as Trump or Midterms. |
[].slug | URL-style name of the related tag. Use it to look up the tag by slug. |
[].activeEventsCount | Number of active events that carry this tag. |
[].createdAt / updatedAt | Timestamps for when the tag was created and last changed, in ISO 8601 format. |
[].publishedAt | Time the tag was published. It appears only on some tags and uses a different date 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. |
forceShow, publishedAt and updatedBy, are missing on some items.id from Polymarket List tags or Polymarket Get tag by slug.status accepts active, closed or all. omit_empty is a boolean filter.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
idintegerwymaganeid
omit_emptybooleanomit_empty
statusstringstatus
Możliwe wartości: active, closed, all
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Polymarket | $0.00044 za wywołanie | JSON |
Polymarket | $0.012 za wywołanie | JSON |
Polymarket | $0.012 za wywołanie | JSON |
Polymarket | $0.012 za wywołanie | JSON |
Polymarket | $0.012 za wywołanie | JSON |
Polymarket | $0.012 za wywołanie | JSON |
Pytania
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.
$0.00044 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
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.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
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.