client.gamma.search.publicSearch powers discovery in the Polymarket app. Query events, tags, and
user profiles with sophisticated filters.
Request
Parameters
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
q | string | ✅ | – | Query string. |
cache | boolean | – | Enable cached responses. | |
events_status | string | – | Filter events by status. | |
limit_per_type | number (≥ 0) | – | Result cap per section. | |
page | number (≥ 0) | – | Pagination control. | |
events_tag | string[] | – | Include events with these tag slugs. | |
keep_closed_markets | number (≥ 0) | – | Retain closed markets. | |
sort | string | – | Sorting expression. | |
ascending | boolean | – | Sort direction. | |
search_tags | boolean | – | Toggle tag section. | |
search_profiles | boolean | – | Toggle profile section. | |
recurrence | string | – | Filter by recurrence (e.g., daily). | |
exclude_tag_id | number[] | – | Tag IDs to exclude. | |
optimized | boolean | – | Request optimised payload. |
Response
null/undefined before iterating.
Usage example
Failure modes
- Missing
q→ validation error. - Negative pagination values → validation error.