APICrypto & DeFi

Polymarket — Get event by id

Retrieve event by id with the Polymarket API. Supply an event ID. Sample fields include titles. Use it for on-chain or crypto market research. The GET request schema also lists include_chat, include_template. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Polymarket — Get event by id

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
id
include_chat
include_template

Sample response

"$schema": "https://gamma-api.polymarket.com/schemas/Event.json"
"creationDate": "2026-10-29T01:00:00Z"
descriptionString · text preview
description
In the upcoming NBA game, scheduled for October 28 at 9:00PM ET:
If the Spurs win, the market will resolve to "Spurs".
If the Jazz win, the market will resolve to "Jazz".
If the game is postponed, this market will remain open until the game has been completed.
If the game is canceled entirely, with no make-up game, this market will resolve 50-50.
The result will be determined based on the final score including any overtime periods.
"endDate": "2026-10-29T01:00:00Z"
"icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png"
"id": "1233861"
"image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png"
"resolutionSource": "https://www.nba.com/"
"slug": "nba-sas-uta-2026-10-28"
"startDate": "2026-10-22T06:51:14Z"
"ticker": "nba-sas-uta-2026-10-28"
"title": "Spurs vs. Jazz"

Response result

Response structure

Inferred from examples
  • $schemastring
  • creationDatestring
  • descriptionstring
  • endDatestring
  • iconstring
  • idstring
  • imagestring
  • resolutionSourcestring
  • slugstring
  • startDatestring
  • tickerstring
  • titlestring

Sellers

SellerPricingRequests · 30dPerformanceAccess
PolymarketCurrent
Polymarket — Get event by id · GET · View API reference
$0 / call—
—successP50—
Loading...
Selected pricing · PolymarketUSD / call
Unit price
$0

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-event-by-id-cf500de4/{id}
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-event-by-id-cf500de4/1233861' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
idURL path parameterspathintegerYesid
include_chatURL query parametersquerybooleanNoinclude_chat
include_templateURL query parametersquerybooleanNoinclude_template

Required markers inside a nested object or variant apply when that object or variant is used.

Sample response

Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.

Documentation example (source abbreviated)
{
  "$schema": "https://gamma-api.polymarket.com/schemas/Event.json",
  "creationDate": "2026-10-29T01:00:00Z",
  "description": "In the upcoming NBA game, scheduled for October 28 at 9:00PM ET:\nIf the Spurs win, the market will resolve to \"Spurs\".\nIf the Jazz win, the market will resolve to \"Jazz\".\nIf the game is postponed, this market will remain open until the game has been completed.\nIf the game is canceled entirely, with no make-up game, this market will resolve 50-50.\nThe result will be determined based on the final score including any overtime periods.",
  "endDate": "2026-10-29T01:00:00Z",
  "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png",
  "id": "1233861",
  "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png",
  "resolutionSource": "https://www.nba.com/",
  "slug": "nba-sas-uta-2026-10-28",
  "startDate": "2026-10-22T06:51:14Z",
  "ticker": "nba-sas-uta-2026-10-28",
  "title": "Spurs vs. Jazz"
}

Agent integration

Copy the resource contract without sharing an API key.

View API Markdown
API Markdown
# Polymarket — Get event by id

Retrieve event by id with the Polymarket API. Supply an event ID. Sample fields include titles. Use it for on-chain or crypto market research. The GET request schema also lists include_chat, include_template. Use the data in market research, dashboard views, or scheduled data collection for the relevant markets.
## Available implementations
Polymarket · Polymarket — Get event by id: https://openany.si/markets/apis/capabilities/polymarket-get-event-by-id?offering=10e67cee-8398-464a-9980-0e40f5f65ae0 · $0 / call

## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/polymarket-get-event-by-id
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-event-by-id-cf500de4/{id}
Price: $0 / call
Provider: Polymarket
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.

Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.

## Prepared request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-event-by-id-cf500de4/1233861' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## API contract
```json
{
  "resource_type": "api",
  "name": "Polymarket — Get event by id",
  "endpoint": "https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-event-by-id-cf500de4/{id}",
  "method": "GET",
  "content_type": "none",
  "execution_mode": "sync",
  "authentication": {
    "type": "bearer",
    "environment_variable": "OPENANY_API_KEY"
  },
  "inputs": [
    {
      "description": "id",
      "location": "path",
      "name": "id",
      "nullable": false,
      "required": true,
      "type": "integer"
    },
    {
      "description": "include_chat",
      "location": "query",
      "name": "include_chat",
      "nullable": false,
      "required": false,
      "type": "boolean"
    },
    {
      "description": "include_template",
      "location": "query",
      "name": "include_template",
      "nullable": false,
      "required": false,
      "type": "boolean"
    }
  ],
  "billing": {
    "currency": "USD",
    "mode": "fixed",
    "priceMicroUsd": "0",
    "rounding": null,
    "unit": "call",
    "unitQuantity": null
  },
  "examples": [
    {
      "http_status": 200,
      "name": "Documentation example (source abbreviated)",
      "request": {
        "body": null,
        "headers": {},
        "path": {
          "id": 1233861
        },
        "query": {}
      },
      "response_body": {
        "$schema": "https://gamma-api.polymarket.com/schemas/Event.json",
        "creationDate": "2026-10-29T01:00:00Z",
        "description": "In the upcoming NBA game, scheduled for October 28 at 9:00PM ET:\nIf the Spurs win, the market will resolve to \"Spurs\".\nIf the Jazz win, the market will resolve to \"Jazz\".\nIf the game is postponed, this market will remain open until the game has been completed.\nIf the game is canceled entirely, with no make-up game, this market will resolve 50-50.\nThe result will be determined based on the final score including any overtime periods.",
        "endDate": "2026-10-29T01:00:00Z",
        "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png",
        "id": "1233861",
        "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png",
        "resolutionSource": "https://www.nba.com/",
        "slug": "nba-sas-uta-2026-10-28",
        "startDate": "2026-10-22T06:51:14Z",
        "ticker": "nba-sas-uta-2026-10-28",
        "title": "Spurs vs. Jazz"
      }
    }
  ]
}
```

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Documentation example (source abbreviated)

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 3

    Review these request fields before running. Keep the published provider and request method unchanged.

    id
    id
    include_chat
    include_chat
    include_template
    include_template
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/polymarket/query/market-discovery/get-event-by-id-cf500de4/1233861' \
      -X GET \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "$schema": "https://gamma-api.polymarket.com/schemas/Event.json",
      "creationDate": "2026-10-29T01:00:00Z",
      "description": "In the upcoming NBA game, scheduled for October 28 at 9:00PM ET:\nIf the Spurs win, the market will resolve to \"Spurs\".\nIf the Jazz win, the market will resolve to \"Jazz\".\nIf the game is postponed, this market will remain open until the game has been completed.\nIf the game is canceled entirely, with no make-up game, this market will resolve 50-50.\nThe result will be determined based on the final score including any overtime periods.",
      "endDate": "2026-10-29T01:00:00Z",
      "icon": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png",
      "id": "1233861",
      "image": "https://polymarket-upload.s3.us-east-2.amazonaws.com/super+cool+basketball+in+red+and+blue+wow.png",
      "resolutionSource": "https://www.nba.com/",
      "slug": "nba-sas-uta-2026-10-28",
      "startDate": "2026-10-22T06:51:14Z",
      "ticker": "nba-sas-uta-2026-10-28",
      "title": "Spurs vs. Jazz"
    }

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use Polymarket — Get event by id with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.