Predict
PREDICTION
LAUNCHPAD

Get market by id

Fetch a single prediction market by its unique ID. Use the same base URL and endpoint with the id=eq.<uuid> filter.

HTTP request

Send a GET request with the required headers and filter by id to return at most one market.

Endpoint

GET https://nqyocjuqubsdrguazcjz.supabase.co/rest/v1/combined_markets_x_posts?id=eq.<market-uuid>

Replace <market-uuid> with the market's id (e.g. from a previous list response or from a URL like /markets/{id}).

Required headers

apikey: <your-api-key>
Accept: application/json

Use the same API key as for other market requests. Include the apikey header on every request.

Example

GET https://nqyocjuqubsdrguazcjz.supabase.co/rest/v1/combined_markets_x_posts?id=eq.550e8400-e29b-41d4-a716-446655440000

Response

The API returns a JSON array with zero or one market object. The object has the same structure as in Get all markets:

[
  {
    "id": "uuid",
    "market_title": "string",
    "market_outcome_yes_representation": "string",
    "market_outcome_no_representation": "string",
    "market_r_yes": number,
    "market_r_no": number,
    "market_k": number,
    "market_status": "open" | "closed" | "resolved" | "under_review" | "pending" | "dispute",
    "market_trending": boolean,
    "market_resolution_outcome": string | null,
    "market_opened_at": string | null,
    "market_closure_at": "ISO8601 string",
    "market_resolved_at": string | null,
    "market_updated_at": "string",
    "market_volume": number,
    "latest_p_yes": number | null,
    "market_collected_fee": number | null,
    "original_post_url": string | null,
    "original_post_text": string | null,
    "original_post_author_username": string | null,
    "original_post_author_avatar_url": string | null,
    "reply_post_url": string | null,
    "reply_post_author_username": string | null,
    "reply_post_author_avatar_url": string | null
  }
]

If the id does not exist, the response is an empty array [].