# Polymarket Search markets, events, and profiles API

> Search markets, events, and profiles from Polymarket. Returns the official Polymarket API response unchanged.

Source: https://www.sandbase.ai/model/polymarket/public-search
API reference: https://www.sandbase.ai/model/polymarket/public-search/docs

## Facts

- Provider: Polymarket
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/polymarket/public-search`
- Price: $0.02 per call
- Capabilities: api, polymarket, prediction markets
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/polymarket/public-search` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `q` | string | yes |  |
| `ascending` | boolean | no |  |
| `cache` | boolean | no |  |
| `events_status` | string | no |  |
| `events_tag` | array | no |  |
| `exclude_tag_id` | array | no |  |
| `keep_closed_markets` | integer | no |  |
| `limit_per_type` | integer | no |  |
| `optimized` | boolean | no |  |
| `page` | integer | no |  |
| `recurrence` | string | no |  |
| `search_profiles` | boolean | no |  |
| `search_tags` | boolean | no |  |
| `sort` | string | no |  |

## FAQ

### How do I use the Polymarket Search markets, events, and profiles API?

Send a POST request to https://api.sandbase.ai/v1/api/polymarket/public-search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Polymarket Search markets, events, and profiles API cost?

$0.02 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Polymarket Search markets, events, and profiles API accept?

Required: q (string). Optional: ascending (boolean), cache (boolean), events_status (string), events_tag (array), exclude_tag_id (array) and keep_closed_markets (integer) and 7 more. The Parameters table and the Playground on this page list every field.

### What does the Polymarket Search markets, events, and profiles API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Polymarket developer account or API key?

No. Polymarket Search markets, events, and profiles runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Polymarket API access separately.

## README

### Polymarket Search markets, events, and profiles API

Search markets, events, and profiles from Polymarket. Returns the official Polymarket API response unchanged.

The response is the official Polymarket API response, unchanged.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "polymarket/public-search", "q": "<q>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `ascending` | boolean | No | ascending |
| `cache` | boolean | No | cache |
| `events_status` | string | No | events_status |
| `events_tag` | array | No | events_tag |
| `exclude_tag_id` | array | No | exclude_tag_id |
| `keep_closed_markets` | integer | No | keep_closed_markets |
| `limit_per_type` | integer | No | limit_per_type |
| `optimized` | boolean | No | optimized |
| `page` | integer | No | page |
| `q` | string | Yes | q |
| `recurrence` | string | No | recurrence |
| `search_profiles` | boolean | No | search_profiles |
| `search_tags` | boolean | No | search_tags |
| `sort` | string | No | sort |

#### Pricing

Flat price per call. Failed calls are not charged.
