A host game with its store ids and known builds
curl --request GET \
--url https://patch.gg/api/v1/host-games/{slug}const options = {method: 'GET'};
fetch('https://patch.gg/api/v1/host-games/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/host-games/{slug}"
response = requests.get(url)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"cover_url": "<string>",
"engine": "<string>",
"stores": [
{
"store": "steam",
"ref": "<string>"
}
],
"builds": [
{
"store": "steam",
"build_ref": "<string>",
"version_label": "<string>"
}
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Host games
A host game with its store ids and known builds
GET
/
host-games
/
{slug}
A host game with its store ids and known builds
curl --request GET \
--url https://patch.gg/api/v1/host-games/{slug}const options = {method: 'GET'};
fetch('https://patch.gg/api/v1/host-games/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/host-games/{slug}"
response = requests.get(url)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"cover_url": "<string>",
"engine": "<string>",
"stores": [
{
"store": "steam",
"ref": "<string>"
}
],
"builds": [
{
"store": "steam",
"build_ref": "<string>",
"version_label": "<string>"
}
]
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}