This operation retrieves all the available project ids. 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/all/projects/ids
&api_key described in the API Key section, required
/api/public/projectservice/all/projects/ids?api_key=YOUR_API_KEY
Tip:
Adding '/active' to the path returns ids of only active project able to accept
donations. Ids of funded and retired projects are excluded.
Example:
/api/public/projectservice/all/projects/active/ids?api_key=YOUR_API_KEY
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "https://api.globalgiving.org/api/public/projectservice/all/projects/ids?api_key=YOUR_API_KEY"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<projects numberFound="4123">
<project>
<id>3</id>
</project>
<project>
<id>18</id>
</project>
<project>
<id>4</id>
</project>
<project>
<id>6</id>
</project>
<project>
......
</project>
</projects>
NOTE: The <project> element is repeating.
projects |
|
Element | Mandatory | Description |
---|---|---|
id | required | Unique identifier for a GlobalGiving project. |