Predict API (Beta)
  1. Markets
Predict API (Beta)
  • FAQs
  • Guides
    • Understanding the Orderbook
    • How to authenticate your API requests
    • How to create or cancel orders
  • Authorization
    • Get auth message
      GET
    • Get JWT with valid signature
      POST
  • Accounts
    • Get connected account
      GET
    • Set a referral
      POST
  • Orders
    • Get order by hash
      GET
    • Get orders
      GET
    • Create an order
      POST
    • Remove orders from the orderbook
      POST
  • Categories
    • Get categories
      GET
    • Get category by slug
      GET
  • Markets
    • Get markets
      GET
    • Get market statistics
      GET
    • Get market last sale information
      GET
    • Get the orderbook for a market
      GET
  • Positions
    • Get positions
      GET
  • OAuth
    • Finalize a OAuth connection
      POST
    • Get the orders for a OAuth connection
      POST
    • Create an order for a OAuth connection
      POST
    • Cancel the orders for a OAuth connection
      POST
    • Get the positions for a OAuth connection
      POST
  1. Markets

Get markets

GET
/v1/markets
Get information about markets

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Query Params

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api-testnet.predict.fun/v1/markets?first&after' \
--header 'x-api-key: <api-key>'

Responses

🟢200
application/json
Response 200
Body

Example
{
    "success": true,
    "cursor": "string",
    "data": [
        {
            "id": 0,
            "imageUrl": "string",
            "title": "string",
            "question": "string",
            "description": "string",
            "status": "REGISTERED",
            "isNegRisk": true,
            "isYieldBearing": true,
            "feeRateBps": 0,
            "resolution": {
                "name": "string",
                "indexSet": 0,
                "onChainId": "string",
                "status": "WON"
            },
            "oracleQuestionId": "string",
            "conditionId": "string",
            "resolverAddress": "string",
            "outcomes": [
                {
                    "name": "string",
                    "indexSet": 0,
                    "onChainId": "string",
                    "status": "WON"
                }
            ],
            "questionIndex": 0,
            "spreadThreshold": 0,
            "shareThreshold": 0,
            "polymarketConditionIds": [
                "string"
            ],
            "kalshiMarketTicker": "string",
            "categorySlug": "string",
            "createdAt": "string",
            "decimalPrecision": 2
        }
    ]
}
Modified at 2025-12-11 01:33:41
Previous
Get category by slug
Next
Get market statistics
Built with