Canonical: https://weaveos.com/reference/netlify/list-site-deploys

1. [Software capabilities](https://weaveos.com/reference)
2. /[Netlify](https://weaveos.com/reference/netlify)
3. /List Netlify deploys by site and branch

[![](https://weaveos.com/reference/logos/netlify.svg)Netlify](https://weaveos.com/reference/netlify)

# List Netlify deploys by site and branch

List Netlify deploys for a site and inspect the returned branch and deploy context. Read state and commit\_ref to check the build, and published\_at to see when it was published.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: GET /api/v1/sites/{site\_id}/deploys](https://weaveos.com/reference/netlify/list-site-deploys#method-1)
2. [2CLI: netlify api listSiteDeploys](https://weaveos.com/reference/netlify/list-site-deploys#method-2)

API

### GET /api/v1/sites/{site\_id}/deploys

List deploys for one site and return fields such as branch, state, commit\_ref, published\_at, and deploy\_ssl\_url.

[Read source: Netlify listSiteDeploys API reference](https://open-api.netlify.com/#tag/deploy/operation/listSiteDeploys)

- Requirements

  A Netlify Bearer token with site access and the site ID.

- Limitations

  page and per\_page control pagination. A deploy-specific URL identifies a build, while published\_at describes publication.

Example shell

Copy

```
curl --fail "https://api.netlify.com/api/v1/sites/$NETLIFY_SITE_ID/deploys?page=1&per_page=50" -H "Authorization: Bearer $NETLIFY_AUTH_TOKEN"
```

CLI

### netlify api listSiteDeploys

Call listSiteDeploys through the Netlify CLI and pass the site ID and page size in --data.

[Read source: Netlify CLI api command](https://cli.netlify.com/commands/api/)

- Requirements

  An authenticated Netlify CLI and a site ID the account can read.

- Limitations

  The generic command makes the API request with the arguments you supply. Pass each page explicitly.

Example shell

Copy

```
netlify api listSiteDeploys --data '{"site_id":"YOUR_SITE_ID","page":1,"per_page":50}'
```

## More from Netlify

[View all 1 Netlify tasks](https://weaveos.com/reference/netlify)

## The same task in other apps

- [![](https://weaveos.com/reference/logos/buildkite.svg)Buildkite](https://weaveos.com/reference/buildkite)

  ### [List Buildkite builds by pipeline and branch](https://weaveos.com/reference/buildkite/list-pipeline-builds)

  Open a Buildkite pipeline’s builds list to inspect branch and status, or call its builds endpoint to retrieve commit and state metadata. Set exclude\_jobs=true when you only need build-level fields.

  API, Interface

- [![](https://weaveos.com/reference/logos/render.svg)Render](https://weaveos.com/reference/render)

  ### [List Render service deploys](https://weaveos.com/reference/render/list-service-deploys)

  List Render deploys for one service to see when each deploy ran and which commit it used. The dashboard identifies the current live deploy and opens its logs.

  API, Interface
