Get audience analysis
curl --request GET \
--url https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience \
--header 'x-api-key: <api-key>'import requests
url = "https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience', 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}/profiles/{profile_id}/audience",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"payload": {
"gender_distribution": {
"male": {
"percentage": 123
},
"female": {
"percentage": 123
},
"non_binary": {
"percentage": 123
}
},
"age_ranges": [
{
"value": "<string>",
"percentage": 123
}
],
"countries": [
{
"value": "<string>",
"percentage": 123
}
],
"languages": [
{
"value": "<string>",
"percentage": 123
}
],
"ethnicity_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"occupation_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"income_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"education_level": [
{
"value": "<string>",
"percentage": 123
}
],
"family_status": [
{
"value": "<string>",
"percentage": 123
}
],
"religion_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"engagement_style": [
{
"value": "<string>",
"percentage": 123
}
],
"interests": [
{
"value": "<string>",
"strength_rating": 123,
"emoji": "<string>",
"sub_interests": [
{
"value": "<string>",
"strength_rating": 123,
"emoji": "<string>"
}
]
}
],
"community_health": {
"loyalty_score": 123,
"cohesion_score": 123,
"toxicity_score": 123,
"loyalty_signals": [
"<string>"
],
"cohesion_signals": [
"<string>"
],
"toxicity_signals": [
"<string>"
]
},
"brand_safety": {
"overall_risk_level": 123,
"risk_factors": [
{
"factor": "<string>",
"frequency": 123
}
]
}
},
"meta": {
"source": "<string>",
"received_at": "2023-11-07T05:31:56Z",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_updated_at": "2023-11-07T05:31:56Z"
}
}{
"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": 404,
"message": "Profile not found"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}{
"error": {
"status": 429,
"message": "Rate limit exceeded"
},
"meta": {
"request_id": "5e7c0137-1ed3-4b4b-8e5f-3d9cf00f7ac4"
}
}Advanced
Get audience analysis
Fetch AI-enriched audience analysis for a profile, including demographics, interests, community health, and brand safety statistics.
Note: This endpoint consumes 100 quota units per request.
GET
/
platforms
/
{platform}
/
profiles
/
{profile_id}
/
audience
Get audience analysis
curl --request GET \
--url https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience \
--header 'x-api-key: <api-key>'import requests
url = "https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience', 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}/profiles/{profile_id}/audience",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.streamforge.com/platforms/{platform}/profiles/{profile_id}/audience")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"payload": {
"gender_distribution": {
"male": {
"percentage": 123
},
"female": {
"percentage": 123
},
"non_binary": {
"percentage": 123
}
},
"age_ranges": [
{
"value": "<string>",
"percentage": 123
}
],
"countries": [
{
"value": "<string>",
"percentage": 123
}
],
"languages": [
{
"value": "<string>",
"percentage": 123
}
],
"ethnicity_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"occupation_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"income_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"education_level": [
{
"value": "<string>",
"percentage": 123
}
],
"family_status": [
{
"value": "<string>",
"percentage": 123
}
],
"religion_distribution": [
{
"value": "<string>",
"percentage": 123
}
],
"engagement_style": [
{
"value": "<string>",
"percentage": 123
}
],
"interests": [
{
"value": "<string>",
"strength_rating": 123,
"emoji": "<string>",
"sub_interests": [
{
"value": "<string>",
"strength_rating": 123,
"emoji": "<string>"
}
]
}
],
"community_health": {
"loyalty_score": 123,
"cohesion_score": 123,
"toxicity_score": 123,
"loyalty_signals": [
"<string>"
],
"cohesion_signals": [
"<string>"
],
"toxicity_signals": [
"<string>"
]
},
"brand_safety": {
"overall_risk_level": 123,
"risk_factors": [
{
"factor": "<string>",
"frequency": 123
}
]
}
},
"meta": {
"source": "<string>",
"received_at": "2023-11-07T05:31:56Z",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_updated_at": "2023-11-07T05:31:56Z"
}
}{
"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": 404,
"message": "Profile not found"
},
"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"
Platform-specific creator ID
Example:
"484563826"
⌘I

