Markets
List markets
Returns a paginated list of prediction markets from the specified provider. Supports filtering by status and full-text search.
GET
/
v1
/
api
/
markets
List markets
curl --request GET \
--url https://api.dotprediction.io/v1/api/markets \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dotprediction.io/v1/api/markets"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.dotprediction.io/v1/api/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dotprediction.io/v1/api/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dotprediction.io/v1/api/markets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dotprediction.io/v1/api/markets")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dotprediction.io/v1/api/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pagination": {
"total": 123,
"limit": 123,
"has_more": true,
"next_cursor": "<string>"
},
"markets": [
{
"id": "<string>",
"platform": "<string>",
"platform_id": "<string>",
"title": "<string>",
"status": "<string>",
"market_type": "<string>",
"outcomes": [
{
"id": "<string>",
"name": "<string>"
}
],
"current_prices": {},
"last_synced_at": "<string>",
"event_id": "<string>",
"event_name": "<string>",
"series_id": "<string>",
"slug": "<string>",
"description": "<string>",
"category": "<string>",
"subcategory": "<string>",
"tags": [
"<string>"
],
"volume_24h": 123,
"volume_7d": 123,
"volume_total": 123,
"liquidity": 123,
"liquidity_score": 123,
"open_interest": 123,
"unique_traders": 123,
"source_url": "<string>",
"image_url": "<string>",
"created_at": "<string>",
"trading_start_at": "<string>",
"trading_end_at": "<string>",
"resolution_date": "<string>",
"resolved_at": "<string>",
"resolution_criteria": "<string>",
"resolution_source": "<string>",
"price_24h_changes": {},
"price_7d_changes": {},
"metadata": {}
}
],
"meta": {
"platforms_queried": [
"<string>"
],
"request_time": 123,
"cache_hit": true,
"data_freshness": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}Authorizations
API key for authentication. Generate one via the dashboard or the /v1/api/auth/api-keys endpoint.
Query Parameters
The prediction market platform to query.
Available options:
kalshi, polymarket, limitless Maximum number of markets to return.
Pagination cursor from a previous response's next_cursor field.
Filter markets by status (e.g., open, closed, settled).
Full-text search query to filter markets by title or description.
Include the raw provider response in the output. Set to true to enable.
Available options:
true, false ⌘I
List markets
curl --request GET \
--url https://api.dotprediction.io/v1/api/markets \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dotprediction.io/v1/api/markets"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.dotprediction.io/v1/api/markets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dotprediction.io/v1/api/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dotprediction.io/v1/api/markets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dotprediction.io/v1/api/markets")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dotprediction.io/v1/api/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"pagination": {
"total": 123,
"limit": 123,
"has_more": true,
"next_cursor": "<string>"
},
"markets": [
{
"id": "<string>",
"platform": "<string>",
"platform_id": "<string>",
"title": "<string>",
"status": "<string>",
"market_type": "<string>",
"outcomes": [
{
"id": "<string>",
"name": "<string>"
}
],
"current_prices": {},
"last_synced_at": "<string>",
"event_id": "<string>",
"event_name": "<string>",
"series_id": "<string>",
"slug": "<string>",
"description": "<string>",
"category": "<string>",
"subcategory": "<string>",
"tags": [
"<string>"
],
"volume_24h": 123,
"volume_7d": 123,
"volume_total": 123,
"liquidity": 123,
"liquidity_score": 123,
"open_interest": 123,
"unique_traders": 123,
"source_url": "<string>",
"image_url": "<string>",
"created_at": "<string>",
"trading_start_at": "<string>",
"trading_end_at": "<string>",
"resolution_date": "<string>",
"resolved_at": "<string>",
"resolution_criteria": "<string>",
"resolution_source": "<string>",
"price_24h_changes": {},
"price_7d_changes": {},
"metadata": {}
}
],
"meta": {
"platforms_queried": [
"<string>"
],
"request_time": 123,
"cache_hit": true,
"data_freshness": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}{
"error": {
"status": 123,
"message": "<string>",
"resolution": "<string>",
"error_text": "<string>"
}
}