Get Polymarket Market Date Range
curl --request GET \
--url https://api.entityml.com/api/v1/polymarket/market/date-range \
--header 'Authorization: <authorization>'import requests
url = "https://api.entityml.com/api/v1/polymarket/market/date-range"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.entityml.com/api/v1/polymarket/market/date-range', 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.entityml.com/api/v1/polymarket/market/date-range",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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.entityml.com/api/v1/polymarket/market/date-range"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.entityml.com/api/v1/polymarket/market/date-range")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.entityml.com/api/v1/polymarket/market/date-range")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"market_condition_id": "<string>",
"has_data": true,
"start_date": "<string>",
"end_date": "<string>",
"available_date_count": 123
}Polymarket
Get Polymarket Market Date Range
Return the stored date range for a Polymarket market condition ID.
GET
/
api
/
v1
/
polymarket
/
market
/
date-range
Get Polymarket Market Date Range
curl --request GET \
--url https://api.entityml.com/api/v1/polymarket/market/date-range \
--header 'Authorization: <authorization>'import requests
url = "https://api.entityml.com/api/v1/polymarket/market/date-range"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.entityml.com/api/v1/polymarket/market/date-range', 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.entityml.com/api/v1/polymarket/market/date-range",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$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.entityml.com/api/v1/polymarket/market/date-range"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.entityml.com/api/v1/polymarket/market/date-range")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.entityml.com/api/v1/polymarket/market/date-range")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"market_condition_id": "<string>",
"has_data": true,
"start_date": "<string>",
"end_date": "<string>",
"available_date_count": 123
}Request
Headers
string
required
Bearer token. Example:
Bearer YOUR_API_KEYQuery Parameters
string
required
The Polymarket market condition ID. Values are accepted with or without the
0x prefix.Response
string
The normalized Polymarket market condition ID.
boolean
Whether any stored data was found for the market.
string
Earliest stored date for this market, or
null if none exists.string
Latest stored date for this market, or
null if none exists.integer
Number of distinct stored dates found for the market.
Use this endpoint as the authoritative per-market availability check before requesting raw Polymarket data. Orderbook data exists for a subset of Polymarket markets from
2025-09-01, but coverage is not continuous. Continuous Polymarket crypto-related market coverage begins on 2026-02-04, and continuous coverage for all Polymarket markets begins on 2026-04-02.GET /api/v1/polymarket/market/date-range reflects stored dates in S3. It does not prove every second in that day is complete. GET /api/v1/polymarket/market/data still rejects dates earlier than 2026-02-08.Example
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.entityml.com/api/v1/polymarket/market/date-range?condition_id=8213d395e079614d6c4d7f4cbb9be9337ab51648a21cc2a334ae8f1966d164b4"
import os
import requests
response = requests.get(
"https://api.entityml.com/api/v1/polymarket/market/date-range",
headers={"Authorization": f"Bearer {os.environ['ENTITY_API_KEY']}"},
params={
"condition_id": "8213d395e079614d6c4d7f4cbb9be9337ab51648a21cc2a334ae8f1966d164b4"
},
)
print(response.json())
Example response
{
"market_condition_id": "0x8213d395e079614d6c4d7f4cbb9be9337ab51648a21cc2a334ae8f1966d164b4",
"has_data": true,
"start_date": "2026-02-04",
"end_date": "2026-02-14",
"available_date_count": 8
}