# List organization projects

From **GitHub v3 REST API**.

`GET /orgs/{org}/projects`

Lists the projects in an organization. Returns a `404 Not Found` status if projects are disabled in the organization. If you do not have sufficient privileges to perform this action, a `401 Unauthorized` or `410 Gone` status is returned.

## Parameters

### `org`

- Location: path
- Required: true
- Type: `string`

### `state`

- Location: query
- Required: false
- Type: `string`
- Default: `open`
- Allowed values: `"open"`, `"closed"`, `"all"`

Indicates the state of the projects to return. Can be either `open`, `closed`, or `all`.

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

Response

#### Headers

##### `Link`

- Type: `string`

- Example: `<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"`

### `application/json`

- Type: `array`

```json
[
  {
    "body": "High-level roadmap for the upcoming year.",
    "columns_url": "https://api.github.com/projects/1002605/columns",
    "created_at": "2011-04-11T20:09:31Z",
    "creator": {
      "avatar_url": "https://github.com/images/error/octocat_happy.gif",
      "events_url": "https://api.github.com/users/octocat/events{/privacy}",
      "followers_url": "https://api.github.com/users/octocat/followers",
      "following_url": "https://api.github.com/users/octocat/following{/other_user}",
      "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
      "gravatar_id": "",
      "html_url": "https://github.com/octocat",
      "id": 1,
      "login": "octocat",
      "node_id": "MDQ6VXNlcjE=",
      "organizations_url": "https://api.github.com/users/octocat/orgs",
      "received_events_url": "https://api.github.com/users/octocat/received_events",
      "repos_url": "https://api.github.com/users/octocat/repos",
      "site_admin": false,
      "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
      "type": "User",
      "url": "https://api.github.com/users/octocat"
    },
    "html_url": "https://github.com/orgs/api-playground/projects/1",
    "id": 1002605,
    "name": "Organization Roadmap",
    "node_id": "MDc6UHJvamVjdDEwMDI2MDU=",
    "number": 1,
    "owner_url": "https://api.github.com/orgs/octocat",
    "state": "open",
    "updated_at": "2014-03-04T18:58:10Z",
    "url": "https://api.github.com/projects/1002605"
  }
]
```

```json
{"items":{"$ref":"#/components/schemas/project"},"type":"array"}
```

### `422`

Validation failed

### `application/json`

- Type: `object`

Validation Error Simple

```json
{"description":"Validation Error Simple","properties":{"documentation_url":{"type":"string"},"errors":{"items":{"type":"string"},"type":"array"},"message":{"type":"string"}},"required":["message","documentation_url"],"title":"Validation Error Simple","type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/orgs/{org}/projects
```
