List account pages
curl --request GET \
--url https://api.social-api.ai/v1/accounts/{id}/pages \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/accounts/{id}/pages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/accounts/{id}/pages"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"about": "<string>",
"category": "<string>",
"cover_photo_url": "<string>",
"enriched_at": "<string>",
"followers_count": 123,
"id": "<string>",
"is_active": true,
"is_default": true,
"link": "<string>",
"name": "<string>",
"platform_page_id": "<string>",
"profile_picture_url": "<string>",
"username": "<string>",
"verification_status": "<string>"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Accounts
List account pages
Returns pages (e.g. Facebook Pages) associated with a connected account.
GET
/
accounts
/
{id}
/
pages
List account pages
curl --request GET \
--url https://api.social-api.ai/v1/accounts/{id}/pages \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/accounts/{id}/pages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/accounts/{id}/pages"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"about": "<string>",
"category": "<string>",
"cover_photo_url": "<string>",
"enriched_at": "<string>",
"followers_count": 123,
"id": "<string>",
"is_active": true,
"is_default": true,
"link": "<string>",
"name": "<string>",
"platform_page_id": "<string>",
"profile_picture_url": "<string>",
"username": "<string>",
"verification_status": "<string>"
}
]
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}