Get markets
curl --request GET \
--url https://api.polymarket.us/v1/marketsimport requests
url = "https://api.polymarket.us/v1/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.polymarket.us/v1/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.polymarket.us/v1/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.polymarket.us/v1/markets"
req, _ := http.NewRequest("GET", url, nil)
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.polymarket.us/v1/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polymarket.us/v1/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"markets": [
{
"id": "<string>",
"question": "<string>",
"slug": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"category": "<string>",
"marketType": "<string>",
"active": true,
"closed": true,
"archived": true,
"hidden": true,
"updatedAt": "2023-11-07T05:31:56Z",
"gameStartTime": "2023-11-07T05:31:56Z",
"manualActivation": true,
"sportsMarketType": "<string>",
"line": 123,
"outcomes": "<string>",
"outcomePrices": "<string>",
"ep3Status": "<string>",
"marketSides": [
{
"id": "<string>",
"marketSideType": "<string>",
"identifier": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"marketId": 123,
"long": true,
"teamId": 123,
"team": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>",
"league": "<string>",
"record": "<string>",
"logo": "<string>",
"alias": "<string>",
"safeName": "<string>",
"homeIcon": "<string>",
"awayIcon": "<string>",
"colorPrimary": "<string>",
"providerId": 123,
"ordering": "<string>",
"longIcon": "<string>",
"shortIcon": "<string>",
"displayAbbreviation": "<string>",
"providerIds": [
{
"provider": "<string>",
"providerId": "<string>"
}
]
},
"participantId": "<string>"
}
],
"events": [
{
"id": "<string>",
"ticker": "<string>",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"active": true,
"closed": true,
"archived": true,
"hidden": true,
"category": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startTime": "2023-11-07T05:31:56Z",
"seriesSlug": "<string>",
"period": "<string>",
"gameId": 123,
"sportradarGameId": "<string>",
"participants": [
{
"id": "<string>",
"team": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>",
"league": "<string>",
"record": "<string>",
"logo": "<string>",
"alias": "<string>",
"safeName": "<string>",
"homeIcon": "<string>",
"awayIcon": "<string>",
"colorPrimary": "<string>",
"providerId": 123,
"ordering": "<string>",
"longIcon": "<string>",
"shortIcon": "<string>",
"displayAbbreviation": "<string>",
"providerIds": [
{
"provider": "<string>",
"providerId": "<string>"
}
]
}
}
],
"markets": "<array>"
}
]
}
]
}Markets
Get markets
Retrieve all markets with optional filtering
GET
/
v1
/
markets
Get markets
curl --request GET \
--url https://api.polymarket.us/v1/marketsimport requests
url = "https://api.polymarket.us/v1/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.polymarket.us/v1/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.polymarket.us/v1/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.polymarket.us/v1/markets"
req, _ := http.NewRequest("GET", url, nil)
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.polymarket.us/v1/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polymarket.us/v1/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"markets": [
{
"id": "<string>",
"question": "<string>",
"slug": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"category": "<string>",
"marketType": "<string>",
"active": true,
"closed": true,
"archived": true,
"hidden": true,
"updatedAt": "2023-11-07T05:31:56Z",
"gameStartTime": "2023-11-07T05:31:56Z",
"manualActivation": true,
"sportsMarketType": "<string>",
"line": 123,
"outcomes": "<string>",
"outcomePrices": "<string>",
"ep3Status": "<string>",
"marketSides": [
{
"id": "<string>",
"marketSideType": "<string>",
"identifier": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"marketId": 123,
"long": true,
"teamId": 123,
"team": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>",
"league": "<string>",
"record": "<string>",
"logo": "<string>",
"alias": "<string>",
"safeName": "<string>",
"homeIcon": "<string>",
"awayIcon": "<string>",
"colorPrimary": "<string>",
"providerId": 123,
"ordering": "<string>",
"longIcon": "<string>",
"shortIcon": "<string>",
"displayAbbreviation": "<string>",
"providerIds": [
{
"provider": "<string>",
"providerId": "<string>"
}
]
},
"participantId": "<string>"
}
],
"events": [
{
"id": "<string>",
"ticker": "<string>",
"slug": "<string>",
"title": "<string>",
"description": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"active": true,
"closed": true,
"archived": true,
"hidden": true,
"category": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startTime": "2023-11-07T05:31:56Z",
"seriesSlug": "<string>",
"period": "<string>",
"gameId": 123,
"sportradarGameId": "<string>",
"participants": [
{
"id": "<string>",
"team": {
"id": 123,
"name": "<string>",
"abbreviation": "<string>",
"league": "<string>",
"record": "<string>",
"logo": "<string>",
"alias": "<string>",
"safeName": "<string>",
"homeIcon": "<string>",
"awayIcon": "<string>",
"colorPrimary": "<string>",
"providerId": 123,
"ordering": "<string>",
"longIcon": "<string>",
"shortIcon": "<string>",
"displayAbbreviation": "<string>",
"providerIds": [
{
"provider": "<string>",
"providerId": "<string>"
}
]
}
}
],
"markets": "<array>"
}
]
}
]
}Query Parameters
Page size
Page offset
Order by fields
Order direction (asc or desc)
Filter by market IDs
Filter by market slugs
Filter by archived status
Filter by active status
Filter by closed status
Minimum liquidity
Maximum liquidity
Minimum volume
Maximum volume
Minimum start date
Maximum start date
Minimum end date
Maximum end date
Filter by tag ID
Include related tags in results
Filter by Create Your Own Market status
Filter by game ID
Filter by sports market types
Available options:
UNSPECIFIED, MONEYLINE, SPREAD, TOTAL, PROP Minimum rewards size filter
Filter by question IDs
Include tag information in response
Filter by categories
Filter by market types
Response
List of markets
List of markets
Show child attributes
Show child attributes
⌘I