Skip to content

Betfair: Exchange Streaming API API

by betfair.com

No authHTTPSEntertainment
Open documentation ↗

Overview

API to receive streamed updates. This is an ssl socket connection of CRLF delimited json messages (see RequestMessage & ResponseMessage)

Betfair: Exchange Streaming API is an entertainment API from betfair.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 1 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Base URL
http://stream-api.betfair.com:443/api
Version
1.0.1423
Endpoints
1
Spec updated
2021-06-21

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X POST "http://stream-api.betfair.com:443/api/request" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("http://stream-api.betfair.com:443/api/request", {
  method: "POST",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "POST",
    "http://stream-api.betfair.com:443/api/request",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
POST/requestThis is a socket protocol delimited by CRLF (not http)

Questions

Does the Betfair: Exchange Streaming API API need an API key?

No. The Betfair: Exchange Streaming API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

Does the Betfair: Exchange Streaming API API support HTTPS?

Yes, the Betfair: Exchange Streaming API API is served over HTTPS.

How many endpoints does the Betfair: Exchange Streaming API API have?

Its OpenAPI description lists 1 endpoint in version 1.0.1423. All of them are shown on this page.

What are alternatives to the Betfair: Exchange Streaming API API?

Other Entertainment APIs include Techy, Imgflip, Official Joke, Listen API: Podcast Search, Directory, and Insights API, TasteDive.

Compare alternatives →

Listed from APIs.guru (CC0).