Skip to main content
GET
/
markets
Search Markets
curl --request GET \
  --url https://www.aionmarket.com/bvapi/markets \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "title": "<string>",
      "slug": "<string>",
      "status": "<string>",
      "yesPrice": 123,
      "noPrice": 123,
      "volume": 123,
      "endDate": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123
}
Search for markets on Polymarket using keywords and various filters.

Overview

Use this endpoint for discovery before context checks and execution.

Query parameters

ParameterTypeRequiredDefaultDescription
qstringYes-Search keywords
limitintegerNo20Results per page
pageintegerNo11-indexed page number
orderstringNo-Sorting field
ascendingbooleanNofalseSort direction
eventsStatusstringNoactiveactive, resolved, closed
closedbooleanNofalseClosed market filter

Examples

curl -X GET "https://www.aionmarket.com/bvapi/markets?q=election&limit=20&order=volume24hr&ascending=false" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

[
  {
    "id": "0x123abc...",
    "title": "Will Biden win the 2024 election?",
    "question": "Will Joe Biden win the 2024 US Presidential election?",
    "conditionId": "0xabc123...",
    "category": "Politics",
    "endDate": "2024-11-05T00:00:00Z",
    "createdAt": "2024-01-01T00:00:00Z",
    "lastUpdatedAt": "2024-04-15T10:30:00Z",
    "volume24hr": "1500000",
    "liquidity": "500000",
    "bestBid": "0.65",
    "bestAsk": "0.68",
    "active": true,
    "resolved": false,
    "outcomes": ["Yes", "No"]
  }
]

Search Tips

  • By Category: Search for category names like “Politics”, “Sports”, “Crypto”
  • By Question: Search for specific questions about events
  • By Keyword: Use broader terms to find related markets
  • Sort by Volume: Discover most active markets with order=volume24hr
  • Active Only: Use eventsStatus=active to find ongoing trading opportunities

Response Fields

FieldTypeDescription
idstringMarket identifier
titlestringMarket title
questionstringFull market question
conditionIdstringCondition ID
categorystringMarket category
endDatestringResolution time
volume24hrstring24h volume
liquiditystringLiquidity
bestBidstringBest bid
bestAskstringBest ask
activebooleanActive flag
resolvedbooleanResolved flag
outcomesarrayOutcome names

Common errors

CodeMeaning
400Invalid query parameters
401Invalid or missing API key
429Rate limited

Use Cases

  • Market Discovery: Find relevant markets for your trading strategy
  • Opportunity Scanning: Identify high-volume or liquid markets
  • Category Filtering: Browse markets within specific domains
  • Heartbeat Data: Include in periodic market refreshes

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

query
string
status
enum<string>
Available options:
active,
closed,
resolved
limit
integer
default:20
offset
integer
default:0

Response

200 - application/json

Matching markets

items
object[]
total
integer