> ## Documentation Index
> Fetch the complete documentation index at: https://polymarketcn.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 標籤

> 獲取市場標籤和分類

<Callout type="success">
  還沒有帳號？[點擊這裡註冊 Polymarket](https://polymarket.com/?r=2026VIP) 並完成入金，才能用錢包私鑰為訂單籤名、實際成交。
</Callout>

<Warning>
  **法律合規提醒**：在使用 Polymarket 服務或 API 前，請確認您所在地區的法律規定。Polymarket 目前不支援比利時、法國、新加坡、泰國、中國大陸等地區，政策可能隨時變化。
</Warning>

標籤端點返回用於分類市場的所有標籤。

## 端點

```
GET https://gamma-api.polymarket.com/tags
```

## 請求示例

```python theme={null}
import requests

response = requests.get('https://gamma-api.polymarket.com/tags')
tags = response.json()

for tag in tags:
    print(f"標籤: {tag['label']}")
    print(f"市場數: {tag['market_count']}")
```

## 響應示例

```json theme={null}
[
  {
    "slug": "politics",
    "label": "Politics",
    "market_count": 500,
    "description": "政治相關市場"
  },
  {
    "slug": "crypto",
    "label": "Crypto",
    "market_count": 200,
    "description": "加密貨幣市場"
  }
]
```

## 常見標籤

* **Politics** - 政治
* **Crypto** - 加密貨幣
* **Sports** - 體育
* **Pop Culture** - 流行文化
* **Business** - 商業
* **Science** - 科學
* **Stocks** - 股票

## 按標籤過濾市場

```python theme={null}
tag = "politics"
response = requests.get(
    'https://gamma-api.polymarket.com/markets',
    params={'tag': tag}
)
markets = response.json()
```
