Skip to main content
POST
/
v1
/
events
/
batch
Batch Events — Full market depth for up to 20 events in one request
curl --request POST \
  --url https://api.fieldfunded.com/v1/events/batch \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "ids": [
    "<string>"
  ]
}
'
import requests

url = "https://api.fieldfunded.com/v1/events/batch"

payload = { "ids": ["<string>"] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['<string>']})
};

fetch('https://api.fieldfunded.com/v1/events/batch', 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.fieldfunded.com/v1/events/batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.fieldfunded.com/v1/events/batch"

payload := strings.NewReader("{\n \"ids\": [\n \"<string>\"\n ]\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.fieldfunded.com/v1/events/batch")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"<string>\"\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.fieldfunded.com/v1/events/batch")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"<string>\"\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "events": {
    "87654321": {
      "id": "87654321",
      "sport": {
        "key": "soccer",
        "name": "Soccer"
      },
      "league": {
        "slug": "premier-league",
        "name": "Premier League",
        "country": "England"
      },
      "home_team": "Arsenal",
      "away_team": "Chelsea",
      "home_logo": "https://api.fieldfunded.com/api/logo/t-38",
      "away_logo": "https://api.fieldfunded.com/api/logo/t-42",
      "status": "live",
      "start_time": "2026-04-12T15:00:00Z",
      "score": {
        "home": 2,
        "away": 1
      },
      "clock": "67:10",
      "period": "2nd Half",
      "odds": {
        "home": 1.45,
        "draw": 4.5,
        "away": 6
      },
      "odds_format": "decimal",
      "markets_count": 72,
      "markets": [
        {
          "key": "1x2",
          "name": "Match Winner",
          "outcomes": [
            {
              "label": "Home",
              "odds": 1.45
            }
          ]
        }
      ],
      "updated_at": "2026-04-12T15:45:30.000Z"
    },
    "87654322": {
      "id": "87654322",
      "sport": {
        "key": "soccer",
        "name": "Soccer"
      },
      "league": {
        "slug": "la-liga",
        "name": "La Liga",
        "country": "Spain"
      },
      "home_team": "Real Madrid",
      "away_team": "Barcelona",
      "home_logo": "https://api.fieldfunded.com/api/logo/t-2829",
      "away_logo": "https://api.fieldfunded.com/api/logo/t-2817",
      "status": "prematch",
      "start_time": "2026-04-14T20:00:00Z",
      "score": {
        "home": 0,
        "away": 0
      },
      "clock": null,
      "period": "",
      "odds": {
        "home": 2.1,
        "draw": 3.4,
        "away": 3.5
      },
      "odds_format": "decimal",
      "markets_count": 350,
      "markets": [
        {
          "key": "1x2",
          "name": "Match Winner",
          "outcomes": [
            {
              "label": "Home",
              "odds": 2.1
            }
          ]
        }
      ],
      "updated_at": "2026-04-12T18:00:00.000Z"
    }
  },
  "found": 2,
  "requested": 3
}
{
"error": "not_found",
"message": "Event not found. For historical results, use /v1/settlements."
}
{
"error": "unauthorized",
"message": "Invalid or missing API key. Visit docs.fieldfunded.com for access."
}
{
"error": "rate_limited",
"message": "Rate limit exceeded. Upgrade your plan for higher limits."
}
{
"error": "server_error",
"message": "Internal server error"
}
{
"error": "service_unavailable",
"message": "Data store temporarily unavailable",
"component": "realtime_data"
}

Authorizations

X-API-Key
string
header
required

Your FieldFunded API Key

Query Parameters

odds_format
enum<string>
default:decimal

Odds format for all values in response. Default: decimal

Available options:
decimal,
american,
fractional

Body

application/json
ids
string[]
required

Array of event IDs (max 20). Use GET /v1/events to discover active IDs.

Maximum array length: 20

Response

A dictionary of comprehensive event details mapped by their respective event IDs.

events
object
found
integer
requested
integer