Sample - GitHub REST API
GET/orgs/{org}/projectsV2

List projects for organization

List all projects owned by a specific organization accessible by the authenticated user.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

5 parameters
orgstringrequired
The organization name. The name is not case sensitive.
qstringoptional
Limit results to projects of the specified type.
beforestringoptional
A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
afterstringoptional
A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
per_pageintegeroptional
The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
Default:30

4 status codes
200Response
idnumberrequired
The unique identifier of the project.
node_idstringrequired
The node ID of the project.
ownerobjectrequired
A GitHub user.
creatorobjectrequired
A GitHub user.
titlestringrequired
The project title.
descriptionstringrequired
A short description of the project.
publicbooleanrequired
Whether the project is visible to anyone with access to the owner.
closed_atstringrequired
The time when the project was closed.
created_atstringrequired
The time when the project was created.
updated_atstringrequired
The time when the project was last updated.
numberintegerrequired
The project number.
short_descriptionstringrequired
A concise summary of the project.
deleted_atstringrequired
The time when the project was deleted.
deleted_byobjectrequired
A GitHub user.
statestringoptional
The current state of the project.
Allowed:openclosed
latest_status_updateobjectoptional
An status update belonging to a project
is_templatebooleanoptional
Whether this project is a template
304Not modified
401Requires authentication
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 401 is returned: Requires authentication. A 403 is returned: Forbidden.