---
title: "Scrape specific elements from a web page"
method: POST
path: "/v1/web/scrape"
tags: ["Web"]
---

# Scrape specific elements from a web page

`POST /v1/web/scrape`

Extract specific HTML elements using CSS selectors

## Request body

- object
  - `url` string, uri, required
  - `elements` object[], required
    - `selector` string, required
    - `attributes` string[]
  - `waitTime` integer
  - `headers` object

## Response `200`

Elements scraped successfully

- object
  - `success` true, required
  - `data` object, required
    - `elements` object[], required
      - `selector` string, required
      - `data` object, required
    - `metadata` object, required
      - `url` string, required
      - `timestamp` string, required
      - `elementsFound` number, required
  - `creditsCost` number — Credits consumed by this operation
  - `requestId` string, uuid, required — Unique request identifier for tracing
  - `timestamp` string, date-time, required — ISO timestamp when the response was generated

## Other responses

- `401` — Authentication required
- `422` — Validation error
- `500` — Internal server error

---

[API](https://skmtc.net/weblinq/apis/weblinq-api.md) · [All operations](https://skmtc.net/weblinq/apis/weblinq-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/weblinq/weblinq-api/versions/364690cf91b7/schema)
