List sports teams
curl --request GET \
--url https://relay.bayse.markets/v1/pm/sports/teamsimport requests
url = "https://relay.bayse.markets/v1/pm/sports/teams"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://relay.bayse.markets/v1/pm/sports/teams', 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://relay.bayse.markets/v1/pm/sports/teams",
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://relay.bayse.markets/v1/pm/sports/teams"
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://relay.bayse.markets/v1/pm/sports/teams")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay.bayse.markets/v1/pm/sports/teams")
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{
"teams": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"sport": "soccer",
"name": "Arsenal FC",
"slug": "bm-arsenal-fc",
"shortCode": "ARS",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/arsenal.png",
"isPopular": true
},
{
"id": "223e4567-e89b-12d3-a456-426614174001",
"sport": "soccer",
"name": "Manchester City",
"slug": "bm-manchester-city-fc",
"shortCode": "MCI",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/manchester-city.png",
"isPopular": true
},
{
"id": "323e4567-e89b-12d3-a456-426614174002",
"sport": "soccer",
"name": "Liverpool FC",
"slug": "bm-liverpool-fc",
"shortCode": "LIV",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/liverpool.png",
"isPopular": true
}
],
"pagination": {
"page": 1,
"size": 20,
"totalCount": 120,
"lastPage": 6
}
}
Sports data
List sports teams
Get a paginated list of sports teams, optionally filtered by league or sport
GET
/
v1
/
pm
/
sports
/
teams
List sports teams
curl --request GET \
--url https://relay.bayse.markets/v1/pm/sports/teamsimport requests
url = "https://relay.bayse.markets/v1/pm/sports/teams"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://relay.bayse.markets/v1/pm/sports/teams', 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://relay.bayse.markets/v1/pm/sports/teams",
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://relay.bayse.markets/v1/pm/sports/teams"
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://relay.bayse.markets/v1/pm/sports/teams")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay.bayse.markets/v1/pm/sports/teams")
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{
"teams": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"sport": "soccer",
"name": "Arsenal FC",
"slug": "bm-arsenal-fc",
"shortCode": "ARS",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/arsenal.png",
"isPopular": true
},
{
"id": "223e4567-e89b-12d3-a456-426614174001",
"sport": "soccer",
"name": "Manchester City",
"slug": "bm-manchester-city-fc",
"shortCode": "MCI",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/manchester-city.png",
"isPopular": true
},
{
"id": "323e4567-e89b-12d3-a456-426614174002",
"sport": "soccer",
"name": "Liverpool FC",
"slug": "bm-liverpool-fc",
"shortCode": "LIV",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/liverpool.png",
"isPopular": true
}
],
"pagination": {
"page": 1,
"size": 20,
"totalCount": 120,
"lastPage": 6
}
}
Authentication
Public — no authentication required.Query parameters
string
Filter by league key (e.g., “England - Premier League”, “Spain - La Liga”).
string
Filter by sport (e.g., “soccer”, “basketball”).
integer
default:"1"
Page number.
integer
default:"50"
Results per page (max 100).
Example request
curl "https://relay.bayse.markets/v1/pm/sports/teams?league=epl&page=1&size=20"
const params = new URLSearchParams({
league: 'England - Premier League',
page: 1,
size: 20,
});
const response = await fetch(
`https://relay.bayse.markets/v1/pm/sports/teams?${params}`
);
const data = await response.json();
import requests
resp = requests.get(
'https://relay.bayse.markets/v1/pm/sports/teams',
params={'league': 'epl', 'page': 1, 'size': 20},
)
data = resp.json()
req, _ := http.NewRequest("GET", "https://relay.bayse.markets/v1/pm/sports/teams", nil)
q := req.URL.Query()
q.Add("league", "epl")
q.Add("page", "1")
q.Add("size", "20")
req.URL.RawQuery = q.Encode()
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var data interface{}
json.NewDecoder(resp.Body).Decode(&data)
Response
array[object]
required
Array of teams matching the filter criteria.
Show child attributes
Show child attributes
uuid
required
Unique identifier for the team.
string
required
Sport type (e.g., “soccer”, “basketball”).
string
required
Full team name.
string
required
URL-friendly team identifier.
string
required
Team short code.
string
required
League name.
string
URL to team logo (if available).
boolean
required
Whether this is a popular/featured team.
object
required
{
"teams": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"sport": "soccer",
"name": "Arsenal FC",
"slug": "bm-arsenal-fc",
"shortCode": "ARS",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/arsenal.png",
"isPopular": true
},
{
"id": "223e4567-e89b-12d3-a456-426614174001",
"sport": "soccer",
"name": "Manchester City",
"slug": "bm-manchester-city-fc",
"shortCode": "MCI",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/manchester-city.png",
"isPopular": true
},
{
"id": "323e4567-e89b-12d3-a456-426614174002",
"sport": "soccer",
"name": "Liverpool FC",
"slug": "bm-liverpool-fc",
"shortCode": "LIV",
"league": "England - Premier League",
"imageUrl": "https://assets.bayse.markets/teams/liverpool.png",
"isPopular": true
}
],
"pagination": {
"page": 1,
"size": 20,
"totalCount": 120,
"lastPage": 6
}
}
⌘I