# Get latest Pages build

From **GitHub v3 REST API**.

`GET /repos/{owner}/{repo}/pages/builds/latest`

Get latest Pages build

## Parameters

### `owner`

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

### `repo`

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

## Responses

### `200`

Response

### `application/json`

- Type: `object`

Page Build

```json
{
  "commit": "351391cdcb88ffae71ec3028c91f375a8036a26b",
  "created_at": "2014-02-10T19:00:49Z",
  "duration": 2104,
  "error": {
    "message": null
  },
  "pusher": {
    "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"
  },
  "status": "built",
  "updated_at": "2014-02-10T19:00:51Z",
  "url": "https://api.github.com/repos/github/developer.github.com/pages/builds/5472601"
}
```

```json
{"description":"Page Build","properties":{"commit":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"duration":{"type":"integer"},"error":{"properties":{"message":{"nullable":true,"type":"string"}},"required":["message"],"type":"object"},"pusher":{"$ref":"#/components/schemas/nullable-simple-user"},"status":{"type":"string"},"updated_at":{"format":"date-time","type":"string"},"url":{"format":"uri","type":"string"}},"required":["url","status","error","pusher","commit","duration","created_at","updated_at"],"title":"Page Build","type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/pages/builds/latest
```
