A game's comments, newest first
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/commentsconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/comments"
response = requests.get(url)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": "<string>",
"author": {
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"created_at": "<string>",
"reply_to": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"likes": 123,
"liked": true,
"replies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": "<string>",
"author": {
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"created_at": "<string>",
"reply_to": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"likes": 123,
"liked": true
}
],
"reply_count": 123
}
],
"next_cursor": "<string>",
"total": 123
}{
"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>"
}
}Comments
A game's comments, newest first
What its players would add to it, in their own words, for anyone who can see the game, each with its first replies. total is how many comments there are in all, replies aside.
GET
/
projects
/
{owner}
/
{slug}
/
comments
A game's comments, newest first
curl --request GET \
--url https://patch.gg/api/v1/projects/{owner}/{slug}/commentsconst options = {method: 'GET'};
fetch('https://patch.gg/api/v1/projects/{owner}/{slug}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/projects/{owner}/{slug}/comments"
response = requests.get(url)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": "<string>",
"author": {
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"created_at": "<string>",
"reply_to": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"likes": 123,
"liked": true,
"replies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"body": "<string>",
"author": {
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"created_at": "<string>",
"reply_to": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"likes": 123,
"liked": true
}
],
"reply_count": 123
}
],
"next_cursor": "<string>",
"total": 123
}{
"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>"
}
}