Skip to main content
GET
/
v1
/
market
/
id
/
{id}
Get market by ID
curl --request GET \
  --url https://api.polymarket.us/v1/market/id/{id}
import requests

url = "https://api.polymarket.us/v1/market/id/{id}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.polymarket.us/v1/market/id/{id}', 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/market/id/{id}",
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/market/id/{id}"

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/market/id/{id}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.polymarket.us/v1/market/id/{id}")

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
{
  "market": {
    "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>"
      }
    ]
  }
}

Path Parameters

id
integer<int32>
required

Market ID

Response

Market details

market
object

Market information and configuration