This endpoint here: Get analytics data breakdowns is designed around how sources report (Reports > Analytics Tools > Traffic Analytics) works. Learn more about sources report: Analyze data in the sources report and for now, there currently isn't an endpoint to retrieve the report in the report dashboard.
That said, let me shed some lights here. The sources reporting and the new contact report (in your dashboard) works a little differently and this is because deleted contact will still show up in the sources report whereas for new contact report (in your dashboard) the number will decrease if the contact has been deleted. This explains why the number return from the request API endpoint is slightly higher than the one in the dashboard.
You can check this out by creating a report 'New contacts by source' in your report dashboard and maybe look at the 'Referral' sources:
In the dashboard, it is showing 198 and
In the sources report, it is showing 201
And if you click into the 201, at around page 2, you'll see a deleted contact; this evidence that deleted contact will still show on sources analytics but not on new contacts report.
This endpoint here: Get analytics data breakdowns is designed around how sources report (Reports > Analytics Tools > Traffic Analytics) works. Learn more about sources report: Analyze data in the sources report and for now, there currently isn't an endpoint to retrieve the report in the report dashboard.
That said, let me shed some lights here. The sources reporting and the new contact report (in your dashboard) works a little differently and this is because deleted contact will still show up in the sources report whereas for new contact report (in your dashboard) the number will decrease if the contact has been deleted. This explains why the number return from the request API endpoint is slightly higher than the one in the dashboard.
You can check this out by creating a report 'New contacts by source' in your report dashboard and maybe look at the 'Referral' sources:
In the dashboard, it is showing 198 and
In the sources report, it is showing 201
And if you click into the 201, at around page 2, you'll see a deleted contact; this evidence that deleted contact will still show on sources analytics but not on new contacts report.