idintegerwajib
id
https://api.sandbase.ai/v1/api/polymarket/tags-related-tagsGet related tags (relationships) by tag id from Polymarket. Returns the official Polymarket API response unchanged.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Returns the relationship rows for one Polymarket tag. Each row links the tag you pass in id to a related tag and gives its rank. The only required input is the integer tag id.
rank.curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-related-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.
[
{
"id": "49569",
"rank": 1,
"relatedTagID": 126,
"tagID": 2
}
]
| Field | Meaning |
|---|---|
id | ID of the relationship row itself, returned as a string. It is not a tag id. |
rank | Position of the related tag in the list for this tag. 1 is the first entry. |
relatedTagID | Tag id of the related tag. Use it to look up that tag's details. |
tagID | Tag id the relationship belongs to. It matches the id you sent in the request. |
omit_empty and status are optional. status accepts active, closed or all. The example response was requested with only id.relatedTagID value to get the name of that tag.$0.00044 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/polymarket/tags-related-tags" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": 2
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
idintegerwajibid
omit_emptybooleanomit_empty
statusstringstatus
Nilai yang mungkin: active, closed, all
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Polymarket | $0.00044 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Polymarket | $0.012 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/polymarket/tags-related-tags dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.00044 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: id (integer). Opsional: omit_empty (boolean) dan status (salah satu dari active, closed, all). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Polymarket Get related tags (relationships) by tag id berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Polymarket secara terpisah.