Get multiple content items
curl --request POST \
--url https://external-api.streamforge.com/platforms/{platform}/content \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"content_ids": [
"324628972153",
"316147569908",
"315255955546"
]
}
'import requests
url = "https://external-api.streamforge.com/platforms/{platform}/content"
payload = { "content_ids": ["324628972153", "316147569908", "315255955546"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({content_ids: ['324628972153', '316147569908', '315255955546']})
};
fetch('https://external-api.streamforge.com/platforms/{platform}/content', 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://external-api.streamforge.com/platforms/{platform}/content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'content_ids' => [
'324628972153',
'316147569908',
'315255955546'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://external-api.streamforge.com/platforms/{platform}/content"
payload := strings.NewReader("{\n \"content_ids\": [\n \"324628972153\",\n \"316147569908\",\n \"315255955546\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://external-api.streamforge.com/platforms/{platform}/content")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"content_ids\": [\n \"324628972153\",\n \"316147569908\",\n \"315255955546\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.streamforge.com/platforms/{platform}/content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content_ids\": [\n \"324628972153\",\n \"316147569908\",\n \"315255955546\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"payload": [
{
"content_id": "<string>",
"title": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration": 123,
"url": "<string>",
"categories": [
{
"id": "<string>",
"name": "<string>",
"igdb_id": 123,
"igdb_name": "<string>",
"igdb_slug": "<string>"
}
],
"tags": [
{
"id": "<string>",
"name": "<string>"
}
],
"statistics": {
"viewers": {
"avg": 123,
"max": 123
},
"watched_minutes": {
"sum": 123
},
"airtime_minutes": {
"sum": 123
},
"views": {
"sum": 123
},
"likes": {
"sum": 123
},
"comments": {
"sum": 123,
"avg": 123
}
},
"chapters": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration": 123,
"categories": [
{
"id": "<string>",
"name": "<string>",
"igdb_id": 123,
"igdb_name": "<string>",
"igdb_slug": "<string>"
}
],
"tags": [
{
"id": "<string>",
"name": "<string>"
}
],
"statistics": {
"viewers": {
"avg": 123,
"max": 123
}
}
}
],
"profile_id": "<string>"
}
],
"meta": {
"source": "<string>",
"received_at": "2023-11-07T05:31:56Z",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"missing_ids": [
"<string>"
]
}
}{
"error": {
"status": 400,
"message": "Invalid platform or missing required parameter"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}{
"error": {
"status": 401,
"message": "API key is required"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}{
"error": {
"status": 403,
"message": "Invalid API key"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}{
"error": {
"status": 429,
"message": "Rate limit exceeded"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}Content
Get multiple content items
Fetch multiple content items in a single request. Accepts up to 100 content IDs.
POST
/
platforms
/
{platform}
/
content
Get multiple content items
curl --request POST \
--url https://external-api.streamforge.com/platforms/{platform}/content \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"content_ids": [
"324628972153",
"316147569908",
"315255955546"
]
}
'import requests
url = "https://external-api.streamforge.com/platforms/{platform}/content"
payload = { "content_ids": ["324628972153", "316147569908", "315255955546"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({content_ids: ['324628972153', '316147569908', '315255955546']})
};
fetch('https://external-api.streamforge.com/platforms/{platform}/content', 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://external-api.streamforge.com/platforms/{platform}/content",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'content_ids' => [
'324628972153',
'316147569908',
'315255955546'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://external-api.streamforge.com/platforms/{platform}/content"
payload := strings.NewReader("{\n \"content_ids\": [\n \"324628972153\",\n \"316147569908\",\n \"315255955546\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://external-api.streamforge.com/platforms/{platform}/content")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"content_ids\": [\n \"324628972153\",\n \"316147569908\",\n \"315255955546\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.streamforge.com/platforms/{platform}/content")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"content_ids\": [\n \"324628972153\",\n \"316147569908\",\n \"315255955546\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"payload": [
{
"content_id": "<string>",
"title": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration": 123,
"url": "<string>",
"categories": [
{
"id": "<string>",
"name": "<string>",
"igdb_id": 123,
"igdb_name": "<string>",
"igdb_slug": "<string>"
}
],
"tags": [
{
"id": "<string>",
"name": "<string>"
}
],
"statistics": {
"viewers": {
"avg": 123,
"max": 123
},
"watched_minutes": {
"sum": 123
},
"airtime_minutes": {
"sum": 123
},
"views": {
"sum": 123
},
"likes": {
"sum": 123
},
"comments": {
"sum": 123,
"avg": 123
}
},
"chapters": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"duration": 123,
"categories": [
{
"id": "<string>",
"name": "<string>",
"igdb_id": 123,
"igdb_name": "<string>",
"igdb_slug": "<string>"
}
],
"tags": [
{
"id": "<string>",
"name": "<string>"
}
],
"statistics": {
"viewers": {
"avg": 123,
"max": 123
}
}
}
],
"profile_id": "<string>"
}
],
"meta": {
"source": "<string>",
"received_at": "2023-11-07T05:31:56Z",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"missing_ids": [
"<string>"
]
}
}{
"error": {
"status": 400,
"message": "Invalid platform or missing required parameter"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}{
"error": {
"status": 401,
"message": "API key is required"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}{
"error": {
"status": 403,
"message": "Invalid API key"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}{
"error": {
"status": 429,
"message": "Rate limit exceeded"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}Authorizations
Your API key. Include it in the x-api-key header for all requests.
Path Parameters
Platform identifier
Available options:
twitch, youtube, instagram, tiktok Example:
"twitch"
Body
application/json
Required array length:
1 - 100 elementsExample:
[
"324628972153",
"316147569908",
"315255955546"
]
⌘I

