Map an audience
curl --request POST \
--url https://www.fandom.ai/api/v1/exploration/map \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sources": [
{
"type": "channel",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"
}
],
"size": 110
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sources: [{type: 'channel', channelId: 'UCX6OQ3DkcsbYNE6H8uQQuVA'}], size: 110})
};
fetch('https://www.fandom.ai/api/v1/exploration/map', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.fandom.ai/api/v1/exploration/map"
payload = {
"sources": [
{
"type": "channel",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"
}
],
"size": 110
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"title": "<string>",
"url": "<string>",
"builtAt": "<string>",
"canExpand": true,
"notes": [
"<string>"
],
"audience": {
"corePeople": 123,
"totalPeople": 123,
"totalComments": 123
},
"groups": [
{
"id": 123,
"name": "<string>",
"kind": "core",
"description": "<string>",
"themes": [
"<string>"
],
"relevance": 123,
"channelIds": [
"<string>"
],
"expand": {
"type": "channels",
"channelIds": [
"<string>"
],
"label": "<string>"
},
"people": 123,
"reach": 123,
"concentration": 123,
"fanDensity": 123
}
],
"channels": [
{
"channelId": "<string>",
"title": "<string>",
"handle": "<string>",
"imageUrl": "<string>",
"subscribers": 123,
"country": "<string>",
"groupId": 123,
"seed": true,
"relevance": 123,
"sharedCommenters": 123,
"audienceThemes": [
"<string>"
],
"contentThemes": [
"<string>"
],
"people": 123,
"reach": 123,
"concentration": 123,
"fanDensity": 123
}
]
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}Audience Exploration
Map an audience
The channels an audience also watches, grouped by shared commenters, with people counts. Built from real YouTube comment data; takes a few seconds the first time. Size 160 is the app’s Expand map.
Scope: exploration:read.
POST
/
exploration
/
map
Map an audience
curl --request POST \
--url https://www.fandom.ai/api/v1/exploration/map \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sources": [
{
"type": "channel",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"
}
],
"size": 110
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sources: [{type: 'channel', channelId: 'UCX6OQ3DkcsbYNE6H8uQQuVA'}], size: 110})
};
fetch('https://www.fandom.ai/api/v1/exploration/map', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.fandom.ai/api/v1/exploration/map"
payload = {
"sources": [
{
"type": "channel",
"channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA"
}
],
"size": 110
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"title": "<string>",
"url": "<string>",
"builtAt": "<string>",
"canExpand": true,
"notes": [
"<string>"
],
"audience": {
"corePeople": 123,
"totalPeople": 123,
"totalComments": 123
},
"groups": [
{
"id": 123,
"name": "<string>",
"kind": "core",
"description": "<string>",
"themes": [
"<string>"
],
"relevance": 123,
"channelIds": [
"<string>"
],
"expand": {
"type": "channels",
"channelIds": [
"<string>"
],
"label": "<string>"
},
"people": 123,
"reach": 123,
"concentration": 123,
"fanDensity": 123
}
],
"channels": [
{
"channelId": "<string>",
"title": "<string>",
"handle": "<string>",
"imageUrl": "<string>",
"subscribers": 123,
"country": "<string>",
"groupId": 123,
"seed": true,
"relevance": 123,
"sharedCommenters": 123,
"audienceThemes": [
"<string>"
],
"contentThemes": [
"<string>"
],
"people": 123,
"reach": 123,
"concentration": 123,
"fanDensity": 123
}
]
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"requestId": "<string>"
}
}Authorizations
Body
application/json
Response
Success

