Gamma API
The Gamma API (https://gamma-api.polymarket.com) is Polymarket’s read-only
metadata layer. It serves markets, events, search, tags, series, sports
metadata, comments, and public profiles. No authentication required.
Polygolem wraps Gamma in two places:
internal/gamma— full typed HTTP client, used by every CLI command.pkg/gamma— the public read-only surface that downstream Go consumers can import. Gamma response and query DTOs are exported frompkg/types.
The polygolem discover family is the CLI interface to Gamma:
polygolem discover search --query "btc 5m" --limit 10polygolem discover markets --limit 20 --activepolygolem discover market --id 0xbd31dc8a...polygolem discover market --slug will-btc-be-abovepolygolem discover enrich --id 0xbd31dc8a... # joins Gamma + CLOBpolygolem discover tags --limit 100polygolem discover series --limit 20polygolem discover comments --entity-id 123 --entity-type marketEndpoint categories
| Category | Endpoints |
|---|---|
| Markets | List, by ID, by slug, by token ID |
| Events | List, by ID, by slug, keyset pagination |
| Search | Cross-entity (markets, events, profiles, tags) |
| Tags | List, by ID, by slug, related |
| Series | List, by ID |
| Sports | Teams, market types |
| Comments | List, by ID, by user |
| Profiles | Public profile by wallet |
Upstream
- Polymarket public docs: docs.polymarket.com
- Base URL:
https://gamma-api.polymarket.com
Related
- Market Discovery — task-oriented walkthrough
- Markets, Events & Tokens — data model
- Polymarket API Overview — every API in one place