This operation retrieves project counts for a specific region. This is a non-secure request as indicated by the '/public/' element in the URL path, therefore, an access token (authentication) is not required.
GET
xml, json
xml, json
https://api.globalgiving.org/api/public/projectservice/regions/{regionname}/countries/projects/count
{regionname} the region name identifier, replace with actual value, required
&api_key described in the API Key section, required
/api/public/projectservice/regions/Africa/countries/projects/count?api_key=YOUR_API_KEY
Tip:
Adding '/active' to the path returns only active projects able to accept donations. Funded
and retired projects are excluded.
Example:
/api/public/projectservice/regions/Africa/countries/projects/active/count?api_key=YOUR_API_KEY
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "https://api.globalgiving.org/api/public/projectservice/regions/Africa/countries/projects/count?api_key=YOUR_API_KEY"
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<regions>
<region>
<countries>
<country>
<iso3166CountryCode>BF</iso3166CountryCode>
<name>Burkina Faso</name>
<projectCount>3</projectCount>
</country>
<country>
<iso3166CountryCode>BI</iso3166CountryCode>
<name>Burundi</name>
<projectCount>2</projectCount>
</country>
.
.
</countries>
<name>Africa</name>
</region>
</regions>
NOTE: The <country> elements are repeating.
See Get Region Project Counts Response Structure
See Element Definitions for Get Region Project Counts Response