---
title: "Extract values with CSS selectors"
method: POST
path: "/v1/scrape"
---

# Extract values with CSS selectors

`POST /v1/scrape`

## Request

- Base URL: `https://shotlane.dev`
- URL: `https://shotlane.dev/v1/scrape`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in query parameter `access_key`

## Request body

- object
  - `url` string
  - `html` string
  - `elements` object, required: {name: selector} or {name: {selector, attr, all}}

## Response `200`

Values

## Other responses

- `400`: Invalid parameters
- `401`: Invalid API key
- `402`: Out of credits
- `422`: Page could not be rendered

---

[API](https://skmtc.dev/shotlane/apis/shotlane-api.md) · [All operations](https://skmtc.dev/shotlane/apis/shotlane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shotlane/apis/shotlane-api/revisions/ce3f76e12e11?raw)
