# Get one crawled page

`GET https://api.seoscraper.io/v1/crawls/{crawl_id}/pages/{page_id}`

## Path parameters

- `crawl_id` string: Crawl identifier.
- `page_id` integer: Page number in the crawl.

## Query parameters

- `include_html` boolean?: Return raw HTML in the response.

## Response 200

- `page` object: The same data as in the list of pages.
  - `id` integer: Page number in the crawl.
  - `url` string: Address of the page.
  - `final_url` string | null: Address after all redirects.
  - `status` integer | null: null when the page could not be fetched.
  - `error` string | null: Error code when the page could not be fetched.
  - `depth` integer: Clicks from the start page.
  - `found_on` string: Page with the first link to this one.
  - `title` string: Content of the title tag.
  - `meta_description` string: Content of the meta description.
  - `canonical` string: Canonical address.
  - `index` boolean | null: Whether the page may be indexed.
  - `word_count` integer | null: Number of words in the page content.
  - `duration_ms` integer | null: Fetch time in milliseconds.
  - `size_bytes` integer | null: Size of the fetched content in bytes.
  - `redirects` integer: Number of redirects.
  - `h1` integer: Number of h1 headings.
  - `links` integer: Number of links.
  - `missing_alt` integer: Number of images without the alt attribute.
- `data` object | null: null when the page could not be fetched.
  - `url` string: Requested address.
  - `final_url` string: Address after all redirects.
  - `path` string: Path of the final address.
  - `status` integer: HTTP status of the page.
  - `content_type` string: Content type sent by the server.
  - `redirects` object[]: Redirects in order, with address and status.
    - `url` string:
    - `status` integer:
  - `headers` object[]: HTTP headers of the page, names in lowercase.
    - `name` string:
    - `value` string:
  - `duration_ms` integer: Fetch time in milliseconds.
  - `size_bytes` integer: Size of the fetched content in bytes.
  - `truncated` boolean: Whether the content was cut at the 10 MB limit.
  - `lang` string: Language from the lang attribute.
  - `title` string: Content of the title tag.
  - `meta_description` string: Content of the meta description.
  - `canonical` string: Canonical address.
  - `robots` object: Meta robots and X-Robots-Tag, with the resulting index and follow.
    - `meta` string: Content of meta robots.
    - `x_robots_tag` string: Value of the X-Robots-Tag header.
    - `index` boolean: Whether the page may be indexed.
    - `follow` boolean: Whether its links may be followed.
  - `word_count` integer: Number of words in the page content.
  - `headings` object[]: Headings h1 to h6 in page order.
    - `level` integer: 1 for h1, 6 for h6.
    - `text` string:
  - `links` object[]: Links: address, text, type, rel and nofollow.
    - `url` string:
    - `text` string:
    - `type` string (internal, external, other): other: mailto, tel and similar.
    - `rel` string: Value of the rel attribute.
    - `nofollow` boolean:
  - `images` object[]: Images: src, alt, lazy and dimensions.
    - `src` string:
    - `alt` string | null: null: missing attribute, empty string: empty alt.
    - `lazy` boolean: Whether the image has loading=lazy.
    - `width` string:
    - `height` string:
  - `html` string | null?: Raw HTML if you ask for include_html, otherwise null.

## Errors

- 401: unauthorized
- 404: not_found
- 409: crawl_not_ready
- 422: invalid_request

## Example

```bash
curl "https://api.seoscraper.io/v1/crawls/CRAWL_ID/pages/PAGE_ID" \
  -H "Authorization: Bearer ssk_YOUR_KEY"
```

```json
{
  "page": {
    "id": 1,
    "url": "https://books.toscrape.com",
    "final_url": "https://books.toscrape.com/",
    "status": 200,
    "error": null,
    "depth": 0,
    "found_on": "",
    "title": "All products | Books to Scrape - Sandbox",
    "meta_description": "",
    "canonical": "",
    "index": true,
    "word_count": 315,
    "duration_ms": 198,
    "size_bytes": 51011,
    "redirects": 0,
    "h1": 1,
    "links": 94,
    "missing_alt": 0
  },
  "data": {
    "url": "https://books.toscrape.com",
    "final_url": "https://books.toscrape.com/",
    "path": "/",
    "status": 200,
    "content_type": "text/html",
    "redirects": [],
    "headers": [
      {
        "name": "content-type",
        "value": "text/html"
      }
    ],
    "duration_ms": 826,
    "size_bytes": 51294,
    "truncated": false,
    "lang": "en-us",
    "title": "All products | Books to Scrape - Sandbox",
    "meta_description": "",
    "canonical": "",
    "robots": {
      "meta": "NOARCHIVE,NOCACHE",
      "x_robots_tag": "",
      "index": true,
      "follow": true
    },
    "word_count": 309,
    "headings": [
      {
        "level": 1,
        "text": "All products"
      }
    ],
    "links": [
      {
        "url": "https://books.toscrape.com/catalogue/page-2.html",
        "text": "next",
        "type": "internal",
        "rel": "",
        "nofollow": false
      }
    ],
    "images": [
      {
        "src": "https://books.toscrape.com/media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg",
        "alt": "A Light in the Attic",
        "lazy": false,
        "width": "",
        "height": ""
      }
    ],
    "html": null
  }
}
```
