cURL
curl --request GET \ --url https://api.terraspect.earth/impact/communities/{project_id} \ --header 'Authorization: Bearer <token>'
200
Example
{ "project_id": "proj_789012", "total_participants": 1500, "breakdown_participants": { "indigenous_communities": 250, "smallholder_farmers": 800, "private_landowners": 100, "public_bodies": 5, "individuals": 300, "community_groups": 25, "supervisors": 20 }, "breakdown_gender": { "men_percentage": 45.5, "men_number": 682, "women_percentage": 54.5, "women_number": 818 }}
Get community metrics related to a project
Standard access token, in the format Authorization: Bearer <token>
Authorization: Bearer <token>
Unique identifier of the project
Community metrics successfully retrieved
Project identifier
"proj_789012"
Total number of project participants
1500
Detailed breakdown of participant types
Show child attributes
250
800
100
5
300
25
20
Percentage of male participants
0 <= x <= 100
45.5
Number of male participants
682
Percentage of female participants
54.5
Number of female participants
818