Get the public community overview
curl --request GET \
--url https://punchplay.tv/api/public/v1/community/overviewimport requests
url = "https://punchplay.tv/api/public/v1/community/overview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://punchplay.tv/api/public/v1/community/overview', 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://punchplay.tv/api/public/v1/community/overview",
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://punchplay.tv/api/public/v1/community/overview"
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://punchplay.tv/api/public/v1/community/overview")
.asString();require 'uri'
require 'net/http'
url = URI("https://punchplay.tv/api/public/v1/community/overview")
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{
"siteStats": {
"monthMovies": 123,
"monthEpisodes": 123,
"monthHours": 123,
"monthRatings": 123,
"monthReviews": 123,
"monthReactions": 123,
"onlineCount": 123
},
"trending": {
"items": [
{
"id": "<string>",
"tmdbId": 2,
"type": "movie",
"name": "<string>",
"year": 123,
"overview": "<string>",
"posterUrl": "<string>",
"backdropUrl": "<string>",
"communityRating": 123,
"releaseDate": "<string>",
"posterPath": "<string>",
"backdropPath": "<string>",
"popularity": 123,
"runtimeMinutes": 123,
"genres": [
"<string>"
],
"ageRating": "<string>",
"originalLanguage": "<string>",
"posterColor": "<string>",
"posterColorIsDark": true
}
]
},
"hotDiscussions": {
"items": [
{
"tmdbId": 2,
"titleType": "movie",
"titleName": "<string>",
"commentCount": 1,
"posterUrl": "<string>",
"latestSeason": 1,
"latestEpisode": 1
}
]
},
"fastestRising": {
"items": [
{
"tmdbId": 2,
"titleType": "movie",
"titleName": "<string>",
"posterUrl": "<string>",
"watchesLast24h": 1
}
]
},
"topTrophyHunters": {
"items": [
{
"userId": "<string>",
"username": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>",
"avatarInitials": "<string>",
"colorClass": "<string>",
"trophiesThisMonth": 1,
"usernameStyle": "<string>",
"usernameColor": "<string>",
"profileBadge": "<string>",
"isDonor": true,
"isSubscriber": true
}
]
},
"topLists": {
"items": [
{
"listId": 2,
"listName": "<string>",
"ownerDisplayName": "<string>",
"itemsAddedThisMonth": 1,
"totalItems": 1
}
]
},
"topGenres": {
"items": [
{
"name": "<string>",
"count": 1,
"share": 50
}
]
}
}{
"message": "<string>"
}Public API
Get the public community overview
GET
/
api
/
public
/
v1
/
community
/
overview
Get the public community overview
curl --request GET \
--url https://punchplay.tv/api/public/v1/community/overviewimport requests
url = "https://punchplay.tv/api/public/v1/community/overview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://punchplay.tv/api/public/v1/community/overview', 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://punchplay.tv/api/public/v1/community/overview",
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://punchplay.tv/api/public/v1/community/overview"
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://punchplay.tv/api/public/v1/community/overview")
.asString();require 'uri'
require 'net/http'
url = URI("https://punchplay.tv/api/public/v1/community/overview")
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{
"siteStats": {
"monthMovies": 123,
"monthEpisodes": 123,
"monthHours": 123,
"monthRatings": 123,
"monthReviews": 123,
"monthReactions": 123,
"onlineCount": 123
},
"trending": {
"items": [
{
"id": "<string>",
"tmdbId": 2,
"type": "movie",
"name": "<string>",
"year": 123,
"overview": "<string>",
"posterUrl": "<string>",
"backdropUrl": "<string>",
"communityRating": 123,
"releaseDate": "<string>",
"posterPath": "<string>",
"backdropPath": "<string>",
"popularity": 123,
"runtimeMinutes": 123,
"genres": [
"<string>"
],
"ageRating": "<string>",
"originalLanguage": "<string>",
"posterColor": "<string>",
"posterColorIsDark": true
}
]
},
"hotDiscussions": {
"items": [
{
"tmdbId": 2,
"titleType": "movie",
"titleName": "<string>",
"commentCount": 1,
"posterUrl": "<string>",
"latestSeason": 1,
"latestEpisode": 1
}
]
},
"fastestRising": {
"items": [
{
"tmdbId": 2,
"titleType": "movie",
"titleName": "<string>",
"posterUrl": "<string>",
"watchesLast24h": 1
}
]
},
"topTrophyHunters": {
"items": [
{
"userId": "<string>",
"username": "<string>",
"displayName": "<string>",
"avatarUrl": "<string>",
"avatarInitials": "<string>",
"colorClass": "<string>",
"trophiesThisMonth": 1,
"usernameStyle": "<string>",
"usernameColor": "<string>",
"profileBadge": "<string>",
"isDonor": true,
"isSubscriber": true
}
]
},
"topLists": {
"items": [
{
"listId": 2,
"listName": "<string>",
"ownerDisplayName": "<string>",
"itemsAddedThisMonth": 1,
"totalItems": 1
}
]
},
"topGenres": {
"items": [
{
"name": "<string>",
"count": 1,
"share": 50
}
]
}
}{
"message": "<string>"
}Response
Public community overview
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I