Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
獲取市場標籤和分類
GET https://gamma-api.polymarket.com/tags
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']}")
[ { "slug": "politics", "label": "Politics", "market_count": 500, "description": "政治相關市場" }, { "slug": "crypto", "label": "Crypto", "market_count": 200, "description": "加密貨幣市場" } ]
tag = "politics" response = requests.get( 'https://gamma-api.polymarket.com/markets', params={'tag': tag} ) markets = response.json()