Analytics
The Company Analytics
endpoint provides a summary of Digital Product Passport (DPP) activities and partner information for a specified company. It includes data on the number of DPPs created, updated, and the number of official and non-official partners associated with the company.

API Endpoint
GET /api/analytics/:companyId
Description: Retrieves analytics data for the specified company, including the count of DPPs created and updated, and the number of official and non-official partners.
Request Parameters
- companyId: The ID of the company whose analytics data needs to be fetched.
Response
Status | Description |
---|---|
200 OK | Successfully retrieved the analytics data for the specified company. |
500 Internal Server Error | Error occurred while fetching DPP statistics or partner data. |
Response Object
{
"dppCreated": 15,
"dppUpdated": 8,
"officialPartners": 5,
"nonOfficialPartners": 3
}
- dppCreated: The total number of Digital Product Passports created by the company.
- dppUpdated: The total number of Digital Product Passports updated by the company.
- officialPartners: The number of official partners associated with the company.
- nonOfficialPartners: The number of non-official partners associated with the company.