Get All Projects Ids

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.

HTTP Method:

GET

Content Type:

xml, json

Accept Type:

xml, json

Path:

https://api.globalgiving.org/api/public/projectservice/all/projects/ids

Query String Parameters:

&api_key described in the API Key section, required

Query String Example:

/api/public/projectservice/all/projects/ids?api_key=YOUR_API_KEY

tip

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

HTTP GET Request using cURL:

                  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 Response:

            
                  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
                  <projects>
                    <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.

Get All Project Ids Response Structure

projects
project [one or more]

id int

Element Definitions for Get All Project Ids Response

Element Mandatory Description
id required Unique identifier for a GlobalGiving project.