Get analytics data for a specific integration/channel. Returns metrics like followers, impressions, engagement, etc. depending on the platform.
Authorization
Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.
Parameters
integrationstringrequiredpath · Integration ID
datestringrequiredquery · Number of days to look back for analytics data (e.g. 7, 30, 90)
Request
curl -X GET 'https://tryferra.co/api/public/v1/analytics/{integration}' \
-H 'Authorization: your-api-key'Responses
200Analytics data for the integration
[
{
"label": "Followers",
"data": [
{
"total": "1250",
"date": "2025-01-01"
},
{
"total": "1280",
"date": "2025-01-02"
}
],
"percentageChange": 2.4
},
{
"label": "Impressions",
"data": [
{
"total": "5000",
"date": "2025-01-01"
},
{
"total": "5200",
"date": "2025-01-02"
}
],
"percentageChange": 4
}
]Path parameter: integration
The {integration} path parameter must be the integration's id (the UUID-shaped string returned by GET /public/v1/integrations).
It is not the platform __type (e.g. x, linkedin) and not the channel display name. Passing either of those will return 400 Invalid integration.
# Get the integration ID
curl -H "Authorization: your-api-key" \
https://tryferra.co/api/public/v1/integrations
# Use the returned id
curl -H "Authorization: your-api-key" \
https://tryferra.co/api/public/v1/analytics/<integration-id>
Common errors
400 Invalid integration: the path param is the wrong shape.404 Channel not found: the integration exists but has been disconnected. Reconnect the channel from the Ferra UI.- Empty data: some platforms (notably Google My Business) restrict analytics by date range or by profile verification status. The endpoint returns an empty payload rather than an error.