# List crawled pages

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

## Path parameters

- `crawl_id` string: Crawl identifier.

## Query parameters

- `sort` string? (id, url, status, title, depth, words, time, size): Field to sort by.
- `desc` boolean?: Sort in descending order.
- `limit` integer?: Number of pages to return.
- `offset` integer?: Number of pages to skip.
- `q` string?: Text in the URL or title. With `*` it is a path pattern, e.g. `/blog/*`.
- `issue` string | null? (ok, client_error, too_many_requests, server_error, failed, robots_blocked, redirected, noindex, missing_title, long_title, duplicate_title, missing_description, long_description, duplicate_description, missing_h1, multiple_h1, other_canonical, missing_alt, slow): Only pages with this issue.
- `filter` string[]?: Conditions written as `field:operator:value`, e.g. `path:pattern:/blog/*` or `words:gte:300`.
- `match` string? (all, any): Should a page meet all filters or any of them.

## Response 200

- `total` integer: Number of pages that meet the conditions.
- `pages` object[]:
  - `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.

## Errors

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

## Example

```bash
curl "https://api.seoscraper.io/v1/crawls/CRAWL_ID/pages?issue=missing_description&sort=words&limit=1" \
  -H "Authorization: Bearer ssk_YOUR_KEY"
```

```json
{
  "total": 50,
  "pages": [
    {
      "id": 2,
      "url": "https://books.toscrape.com/catalogue/page-2.html",
      "final_url": "https://books.toscrape.com/catalogue/page-2.html",
      "status": 200,
      "error": null,
      "depth": 1,
      "found_on": "https://books.toscrape.com/",
      "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
    }
  ]
}
```
