API resource
Page insights and earnings, post reactions, and switching which Page an account posts to.
Get Facebook Page insights
/v1/analytics/facebook/page-insightsWorks on: Facebook
Query parameters
accountIdstringrequiredThe account id for the connected Facebook Page.
metricsstringComma-separated list of metrics. Defaults to "page_media_view,page_post_engagements,page_follows,followers_gained,followers_lost".
fromDatestringStart date (YYYY-MM-DD). Defaults to 30 days ago.
toDatestringEnd date (YYYY-MM-DD). Defaults to today.
sincestringAlias of fromDate, kept for existing callers
untilstringAlias of toDate, kept for existing callers
metricTypestring"total_value" (default) returns aggregated totals only. "time_series" returns daily values in the "values" array.
curl "https://creatoros-production-5658.up.railway.app/v1/analytics/facebook/page-insights?accountId=acc_Fb2Qp7Vz4Ny9Tx1Lm6Rc3Wb8Js5Df0Ga7Ue2Ki4Oq9Y" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"success": true,
"accountId": "acc_Fb2Qp7Vz4Ny9Tx1Lm6Rc3Wb8Js5Df0Ga7Ue2Ki4Oq9Y",
"platform": "facebook",
"dateRange": {
"since": "string",
"until": "string"
},
"metricType": "time_series",
"breakdown": "string",
"metrics": {},
"unavailableMetrics": [
{
"metric": "string",
"reason": "not_enrolled",
"message": "string"
}
],
"dataDelay": "Data may be delayed up to 48 hours"
}Get Facebook post monetization earnings
/v1/analytics/facebook/post-earningsWorks on: Facebook
Query parameters
accountIdstringrequiredThe account id for the connected Facebook Page.
postIdstringrequiredThe platform post ID, exactly as returned in platformAnalytics[].platformPostId by /v1/analytics: "{pageId}_{postId}", or the bare video ID for Reels.
metricsstringComma-separated list of monetization metrics. Defaults to both: - content_monetization_earnings - monetization_approximate_earnings content_monetization_earnings always carries unit "micro_amount" plus an ISO 4217 "currency".
curl "https://creatoros-production-5658.up.railway.app/v1/analytics/facebook/post-earnings?accountId=acc_Fb2Qp7Vz4Ny9Tx1Lm6Rc3Wb8Js5Df0Ga7Ue2Ki4Oq9Y&postId=%3CpostId%3E" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"success": true,
"accountId": "64e1a2b3c4d5e6f7a8b9c0d1",
"postId": "123456789_987654321",
"platform": "facebook",
"period": "lifetime",
"metrics": {},
"unavailableMetrics": [
{
"metric": "string",
"reason": "not_enrolled",
"message": "string"
}
],
"dataDelay": "string"
}Get Facebook post reactions
/v1/accounts/{accountId}/facebook-post-reactionsWorks on: Facebook
Path parameters
accountIdstringrequiredThe ID of the Facebook Page account
Query parameters
postIdstringrequiredThe Facebook post ID
curl "https://creatoros-production-5658.up.railway.app/v1/accounts/acc_Fb2Qp7Vz4Ny9Tx1Lm6Rc3Wb8Js5Df0Ga7Ue2Ki4Oq9Y/facebook-post-reactions?postId=%3CpostId%3E" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"accountId": "acc_Fb2Qp7Vz4Ny9Tx1Lm6Rc3Wb8Js5Df0Ga7Ue2Ki4Oq9Y",
"platform": "facebook",
"username": "string",
"postId": "string",
"total": 0,
"breakdown": {
"like": 0,
"love": 0,
"haha": 0,
"wow": 0,
"sad": 0,
"angry": 0,
"care": 0
},
"lastUpdated": "string"
}List Facebook pages
/v1/accounts/{accountId}/facebook-pageWorks on: Facebook
Path parameters
accountIdstringrequiredNo description
Query parameters
refreshstringWhen true, bypasses the page cache and fetches fresh pages from Meta. Rate-limited server-side to 1 refresh per 60s. Pages no longer accessible to the connected account will be removed from the list on refresh.
curl "https://creatoros-production-5658.up.railway.app/v1/accounts/acc_Fb2Qp7Vz4Ny9Tx1Lm6Rc3Wb8Js5Df0Ga7Ue2Ki4Oq9Y/facebook-page" \
-H "Authorization: Bearer $CREATOROS_API_KEY"{
"pages": [
{
"id": "string",
"name": "string",
"username": "string",
"category": "string",
"fan_count": 0
}
],
"selectedPageId": "string",
"cached": true
}Update Facebook page
/v1/accounts/{accountId}/facebook-pageWorks on: Facebook
Path parameters
accountIdstringrequiredNo description
Body
selectedPageIdstringrequiredNo description
curl -X PUT "https://creatoros-production-5658.up.railway.app/v1/accounts/acc_Fb2Qp7Vz4Ny9Tx1Lm6Rc3Wb8Js5Df0Ga7Ue2Ki4Oq9Y/facebook-page" \
-H "Authorization: Bearer $CREATOROS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"selectedPageId": "<selectedPageId>"
}'{
"message": "string",
"selectedPage": {
"id": "string",
"name": "string"
}
}