APICrypto & DeFi

Polymarket — List markets

List markets with the Polymarket API. The sample response includes descriptions. Request fields include result limit (limit), result offset (offset). Use it for on-chain or crypto market research. The GET request schema also lists order. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Polymarket — List markets

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Optional parameters (26)
limit
offset
Comma-separated list of fields to order by
ascending
id
slug
clob_token_ids
condition_ids
liquidity_num_min
liquidity_num_max
volume_num_min
volume_num_max
start_date_min
start_date_max
end_date_min
end_date_max
tag_id
related_tags
cyom
uma_resolution_status
game_id
sports_market_types
rewards_min_size
question_ids
include_tag
Filter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed.

Sample response

[0] {}
"conditionId": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37"
descriptionString · text preview
[0].description
Legislative elections are schedule to be held in Israel on October 27, 2026. 

This market will resolve to the next individual who is officially appointed and sworn in as Prime Minister of Israel following the 2026 parliamentary election. If an election is called early, this market will immediately resolve to the individual who is officially appointed and sworn in after that election.

To count for resolution, the individual must be formally sworn in. Any interim or caretaker Prime Minister will not count toward the resolution of this market.

If no such Prime Minister is sworn in by December 
"endDate": "2026-10-28T03:59:00Z"
"icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg"
"id": "682705"
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg"
"liquidity": "725670.3591"
outcomesJSON string · parsed preview
[0].outcomes
[
  "Yes",
  "No"
]
"question": "Will Benjamin Netanyahu be the next Prime Minister of Israel?"
"resolutionSource": ""
"slug": "will-benjamin-netanyahu-be-the-next-prime-minister-of-israel"
"startDate": "2025-11-15T00:27:02.243822Z"
[1] {}
"conditionId": "0xd5d9fc47718bd553592d126b1fa5e87183d27f3936975b0c04cc0f2dec1f1bb4"
descriptionString · text preview
[1].description
This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.

A party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.

The following rules govern the counting of seats for determining which party wins control of the ch
"endDate": "2026-11-04T04:59:00Z"
"icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png"
"id": "562802"
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png"
"liquidity": "7187014.4642"
outcomesJSON string · parsed preview
[1].outcomes
[
  "Yes",
  "No"
]
"question": "Will the Democratic Party control the House after the 2026 Midterm elections?"
"resolutionSource": ""
"slug": "will-the-democratic-party-control-the-house-after-the-2026-midterm-elections"
"startDate": "2025-07-11T19:50:44.885Z"
[2] {}
"conditionId": "0x4e4f77e7dbf4cab666e9a1943674d7ae66348e862df03ea6f44b11eb95731928"
descriptionString · text preview
[2].description
This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.

A party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.

The following rules govern the counting of seats for determining which party wins control of the ch
"endDate": "2026-11-04T04:59:00Z"
"icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png"
"id": "562803"
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png"
"liquidity": "5233251.0006"
outcomesJSON string · parsed preview
[2].outcomes
[
  "Yes",
  "No"
]
"question": "Will the Republican Party control the House after the 2026 Midterm elections?"
"resolutionSource": ""
"slug": "will-the-republican-party-control-the-house-after-the-2026-midterm-elections"
"startDate": "2025-07-11T19:50:45.943Z"

Response result

Response structure

Inferred from examples
responseobject[]
  • conditionIdstring
  • descriptionstring
  • endDatestring
  • iconstring
  • idstring
  • imagestring
  • liquiditystring
  • outcomesstring
  • questionstring
  • resolutionSourcestring
  • slugstring
  • startDatestring

Sellers

SellerPricingRequests · 30dPerformanceAccess
PolymarketCurrent
Polymarket — List markets · GET · View API reference
$0 / call—
—successP50—
Loading...
Selected pricing · PolymarketUSD / call
Unit price
$0

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/polymarket/markets
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/markets?ascending=false&closed=false&limit=3&order=volume24hr' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
limitURL query parametersqueryintegerNolimit

minimum: 0

offsetURL query parametersqueryintegerNooffset

minimum: 0

orderURL query parametersquerystringNoComma-separated list of fields to order by
ascendingURL query parametersquerybooleanNoascending
idURL query parametersqueryarrayNoid
Nested fields and variants

query.id[] · Array item · integer

slugURL query parametersqueryarrayNoslug
Nested fields and variants

query.slug[] · Array item · string

clob_token_idsURL query parametersqueryarrayNoclob_token_ids
Nested fields and variants

query.clob_token_ids[] · Array item · string

condition_idsURL query parametersqueryarrayNocondition_ids
Nested fields and variants

query.condition_ids[] · Array item · string

liquidity_num_minURL query parametersquerynumberNoliquidity_num_min
liquidity_num_maxURL query parametersquerynumberNoliquidity_num_max
volume_num_minURL query parametersquerynumberNovolume_num_min
volume_num_maxURL query parametersquerynumberNovolume_num_max
start_date_minURL query parametersquerystringNostart_date_min

format: date-time

start_date_maxURL query parametersquerystringNostart_date_max

format: date-time

end_date_minURL query parametersquerystringNoend_date_min

format: date-time

end_date_maxURL query parametersquerystringNoend_date_max

format: date-time

tag_idURL query parametersqueryintegerNotag_id
related_tagsURL query parametersquerybooleanNorelated_tags
cyomURL query parametersquerybooleanNocyom
uma_resolution_statusURL query parametersquerystringNouma_resolution_status
game_idURL query parametersquerystringNogame_id
sports_market_typesURL query parametersqueryarrayNosports_market_types
Nested fields and variants

query.sports_market_types[] · Array item · string

rewards_min_sizeURL query parametersquerynumberNorewards_min_size
question_idsURL query parametersqueryarrayNoquestion_ids
Nested fields and variants

query.question_ids[] · Array item · string

include_tagURL query parametersquerybooleanNoinclude_tag
closedURL query parametersquerybooleanNoFilter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed.

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.

Documentation example (source abbreviated)
[
  {
    "conditionId": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
    "description": "Legislative elections are schedule to be held in Israel on October 27, 2026. \n\nThis market will resolve to the next individual who is officially appointed and sworn in as Prime Minister of Israel following the 2026 parliamentary election. If an election is called early, this market will immediately resolve to the individual who is officially appointed and sworn in after that election.\n\nTo count for resolution, the individual must be formally sworn in. Any interim or caretaker Prime Minister will not count toward the resolution of this market.\n\nIf no such Prime Minister is sworn in by December ",
    "endDate": "2026-10-28T03:59:00Z",
    "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
    "id": "682705",
    "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
    "liquidity": "725670.3591",
    "outcomes": "[\"Yes\", \"No\"]",
    "question": "Will Benjamin Netanyahu be the next Prime Minister of Israel?",
    "resolutionSource": "",
    "slug": "will-benjamin-netanyahu-be-the-next-prime-minister-of-israel",
    "startDate": "2025-11-15T00:27:02.243822Z"
  },
  {
    "conditionId": "0xd5d9fc47718bd553592d126b1fa5e87183d27f3936975b0c04cc0f2dec1f1bb4",
    "description": "This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.\n\nA party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.\n\nThe following rules govern the counting of seats for determining which party wins control of the ch",
    "endDate": "2026-11-04T04:59:00Z",
    "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png",
    "id": "562802",
    "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png",
    "liquidity": "7187014.4642",
    "outcomes": "[\"Yes\", \"No\"]",
    "question": "Will the Democratic Party control the House after the 2026 Midterm elections?",
    "resolutionSource": "",
    "slug": "will-the-democratic-party-control-the-house-after-the-2026-midterm-elections",
    "startDate": "2025-07-11T19:50:44.885Z"
  },
  {
    "conditionId": "0x4e4f77e7dbf4cab666e9a1943674d7ae66348e862df03ea6f44b11eb95731928",
    "description": "This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.\n\nA party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.\n\nThe following rules govern the counting of seats for determining which party wins control of the ch",
    "endDate": "2026-11-04T04:59:00Z",
    "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png",
    "id": "562803",
    "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png",
    "liquidity": "5233251.0006",
    "outcomes": "[\"Yes\", \"No\"]",
    "question": "Will the Republican Party control the House after the 2026 Midterm elections?",
    "resolutionSource": "",
    "slug": "will-the-republican-party-control-the-house-after-the-2026-midterm-elections",
    "startDate": "2025-07-11T19:50:45.943Z"
  }
]

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Polymarket — List markets

List markets with the Polymarket API. The sample response includes descriptions. Request fields include result limit (limit), result offset (offset). Use it for on-chain or crypto market research. The GET request schema also lists order. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
Polymarket · Polymarket — List markets: https://openany.si/markets/apis/capabilities/polymarket-list-markets?offering=b148085c-d731-4438-957d-bf5e3a351fbf · $0 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/polymarket-list-markets
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/markets
Price: $0 / call
Provider: Polymarket
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/markets?ascending=false&closed=false&limit=3&order=volume24hr' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Polymarket — List markets",
  "endpoint": "https://api.openany.si/v1/agent-apis/polymarket/markets",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "limit",
      "location": "query",
      "minimum": "0",
      "name": "limit",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "offset",
      "location": "query",
      "minimum": "0",
      "name": "offset",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "Comma-separated list of fields to order by",
      "location": "query",
      "name": "order",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "ascending",
      "location": "query",
      "name": "ascending",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "id",
      "item_type": "integer",
      "location": "query",
      "name": "id",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "slug",
      "item_type": "string",
      "location": "query",
      "name": "slug",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "clob_token_ids",
      "item_type": "string",
      "location": "query",
      "name": "clob_token_ids",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "condition_ids",
      "item_type": "string",
      "location": "query",
      "name": "condition_ids",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "liquidity_num_min",
      "location": "query",
      "name": "liquidity_num_min",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "liquidity_num_max",
      "location": "query",
      "name": "liquidity_num_max",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "volume_num_min",
      "location": "query",
      "name": "volume_num_min",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "volume_num_max",
      "location": "query",
      "name": "volume_num_max",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "start_date_min",
      "format": "date-time",
      "location": "query",
      "name": "start_date_min",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "start_date_max",
      "format": "date-time",
      "location": "query",
      "name": "start_date_max",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "end_date_min",
      "format": "date-time",
      "location": "query",
      "name": "end_date_min",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "end_date_max",
      "format": "date-time",
      "location": "query",
      "name": "end_date_max",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "tag_id",
      "location": "query",
      "name": "tag_id",
      "nullable": false,
      "required": false,
      "type": "integer"
    },
    {
      "description": "related_tags",
      "location": "query",
      "name": "related_tags",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "cyom",
      "location": "query",
      "name": "cyom",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "uma_resolution_status",
      "location": "query",
      "name": "uma_resolution_status",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "game_id",
      "location": "query",
      "name": "game_id",
      "nullable": false,
      "required": false,
      "type": "string"
    },
    {
      "description": "sports_market_types",
      "item_type": "string",
      "location": "query",
      "name": "sports_market_types",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "rewards_min_size",
      "location": "query",
      "name": "rewards_min_size",
      "nullable": false,
      "required": false,
      "type": "number"
    },
    {
      "description": "question_ids",
      "item_type": "string",
      "location": "query",
      "name": "question_ids",
      "nullable": false,
      "required": false,
      "type": "array"
    },
    {
      "description": "include_tag",
      "location": "query",
      "name": "include_tag",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "Filter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed.",
      "location": "query",
      "name": "closed",
      "nullable": false,
      "required": false,
      "type": "boolean"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "0",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Documentation example (source abbreviated)",
      "request": {
        "body": null,
        "headers": {},
        "path": {},
        "query": {
          "ascending": false,
          "closed": false,
          "limit": 3,
          "order": "volume24hr"
        }
      },
      "response_body": [
        {
          "conditionId": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
          "description": "Legislative elections are schedule to be held in Israel on October 27, 2026. \n\nThis market will resolve to the next individual who is officially appointed and sworn in as Prime Minister of Israel following the 2026 parliamentary election. If an election is called early, this market will immediately resolve to the individual who is officially appointed and sworn in after that election.\n\nTo count for resolution, the individual must be formally sworn in. Any interim or caretaker Prime Minister will not count toward the resolution of this market.\n\nIf no such Prime Minister is sworn in by December ",
          "endDate": "2026-10-28T03:59:00Z",
          "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
          "id": "682705",
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
          "liquidity": "725670.3591",
          "outcomes": "[\"Yes\", \"No\"]",
          "question": "Will Benjamin Netanyahu be the next Prime Minister of Israel?",
          "resolutionSource": "",
          "slug": "will-benjamin-netanyahu-be-the-next-prime-minister-of-israel",
          "startDate": "2025-11-15T00:27:02.243822Z"
        },
        {
          "conditionId": "0xd5d9fc47718bd553592d126b1fa5e87183d27f3936975b0c04cc0f2dec1f1bb4",
          "description": "This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.\n\nA party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.\n\nThe following rules govern the counting of seats for determining which party wins control of the ch",
          "endDate": "2026-11-04T04:59:00Z",
          "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png",
          "id": "562802",
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png",
          "liquidity": "7187014.4642",
          "outcomes": "[\"Yes\", \"No\"]",
          "question": "Will the Democratic Party control the House after the 2026 Midterm elections?",
          "resolutionSource": "",
          "slug": "will-the-democratic-party-control-the-house-after-the-2026-midterm-elections",
          "startDate": "2025-07-11T19:50:44.885Z"
        },
        {
          "conditionId": "0x4e4f77e7dbf4cab666e9a1943674d7ae66348e862df03ea6f44b11eb95731928",
          "description": "This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.\n\nA party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.\n\nThe following rules govern the counting of seats for determining which party wins control of the ch",
          "endDate": "2026-11-04T04:59:00Z",
          "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png",
          "id": "562803",
          "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png",
          "liquidity": "5233251.0006",
          "outcomes": "[\"Yes\", \"No\"]",
          "question": "Will the Republican Party control the House after the 2026 Midterm elections?",
          "resolutionSource": "",
          "slug": "will-the-republican-party-control-the-house-after-the-2026-midterm-elections",
          "startDate": "2025-07-11T19:50:45.943Z"
        }
      ]
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example (source abbreviated)

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 26

    Review these request fields before running. Keep the published provider and request method unchanged.

    limit
    limit
    offset
    offset
    order
    Comma-separated list of fields to order by
    ascending
    ascending
    id
    id
    slug
    slug
    clob_token_ids
    clob_token_ids
    condition_ids
    condition_ids
    liquidity_num_min
    liquidity_num_min
    liquidity_num_max
    liquidity_num_max
    volume_num_min
    volume_num_min
    volume_num_max
    volume_num_max
    start_date_min
    start_date_min
    start_date_max
    start_date_max
    end_date_min
    end_date_min
    end_date_max
    end_date_max
    tag_id
    tag_id
    related_tags
    related_tags
    cyom
    cyom
    uma_resolution_status
    uma_resolution_status
    game_id
    game_id
    sports_market_types
    sports_market_types
    rewards_min_size
    rewards_min_size
    question_ids
    question_ids
    include_tag
    include_tag
    closed
    Filter by closed state. Omitted or false returns open markets; true returns closed markets. Use any (case-insensitive) to include both states in an identifier lookup. Requires at least one of id, slug, clob_token_ids, position_ids, condition_ids, request_ids, onchain_event_ids, or question_ids when any is used. Each identifier filter accepts at most 100 values. Missing an identifier with any, or an invalid closed value, returns 422. Import profile accepts the boolean branch only; other union branches are not exposed.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/polymarket/markets?ascending=false&closed=false&limit=3&order=volume24hr' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    [
      {
        "conditionId": "0x7586a96520578acaaaa4ea84a2582f197f84255da1f3392a7aa300386c187b37",
        "description": "Legislative elections are schedule to be held in Israel on October 27, 2026. \n\nThis market will resolve to the next individual who is officially appointed and sworn in as Prime Minister of Israel following the 2026 parliamentary election. If an election is called early, this market will immediately resolve to the individual who is officially appointed and sworn in after that election.\n\nTo count for resolution, the individual must be formally sworn in. Any interim or caretaker Prime Minister will not count toward the resolution of this market.\n\nIf no such Prime Minister is sworn in by December ",
        "endDate": "2026-10-28T03:59:00Z",
        "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
        "id": "682705",
        "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/israel-benjamin-netanyahu-9221e795d7.jpg",
        "liquidity": "725670.3591",
        "outcomes": "[\"Yes\", \"No\"]",
        "question": "Will Benjamin Netanyahu be the next Prime Minister of Israel?",
        "resolutionSource": "",
        "slug": "will-benjamin-netanyahu-be-the-next-prime-minister-of-israel",
        "startDate": "2025-11-15T00:27:02.243822Z"
      },
      {
        "conditionId": "0xd5d9fc47718bd553592d126b1fa5e87183d27f3936975b0c04cc0f2dec1f1bb4",
        "description": "This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.\n\nA party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.\n\nThe following rules govern the counting of seats for determining which party wins control of the ch",
        "endDate": "2026-11-04T04:59:00Z",
        "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png",
        "id": "562802",
        "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-democratic-party-control-the-senate-after-the-2026-midterm-elections-JJ9h02JGR09z.png",
        "liquidity": "7187014.4642",
        "outcomes": "[\"Yes\", \"No\"]",
        "question": "Will the Democratic Party control the House after the 2026 Midterm elections?",
        "resolutionSource": "",
        "slug": "will-the-democratic-party-control-the-house-after-the-2026-midterm-elections",
        "startDate": "2025-07-11T19:50:44.885Z"
      },
      {
        "conditionId": "0x4e4f77e7dbf4cab666e9a1943674d7ae66348e862df03ea6f44b11eb95731928",
        "description": "This market will resolve according to the party that wins control of the United States House of Representatives in the 2026 United States midterm election.\n\nA party wins control of the United States House of Representatives if it wins a majority of the chamber’s voting seats. If no party wins a majority of voting seats, the chamber will be deemed controlled by the party with which the first elected Speaker of the House of the Congress that convenes after the 2026 midterm election is affiliated.\n\nThe following rules govern the counting of seats for determining which party wins control of the ch",
        "endDate": "2026-11-04T04:59:00Z",
        "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png",
        "id": "562803",
        "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/will-the-republican-party-control-the-senate-after-the-2026-midterm-elections-JSsqogfn0U0u.png",
        "liquidity": "5233251.0006",
        "outcomes": "[\"Yes\", \"No\"]",
        "question": "Will the Republican Party control the House after the 2026 Midterm elections?",
        "resolutionSource": "",
        "slug": "will-the-republican-party-control-the-house-after-the-2026-midterm-elections",
        "startDate": "2025-07-11T19:50:45.943Z"
      }
    ]

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Polymarket — List markets with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.