---
title: "Scrape website content"
method: POST
path: "/api/data/{project_id}/scrape"
tags: ["Data"]
---

# Scrape website content

`POST /api/data/{project_id}/scrape`

## Request

- Base URL: `https://core.blink.new`
- URL: `https://core.blink.new/api/data/{project_id}/scrape`
- Auth: HTTP bearer

Scrape a URL using a headless browser and return content in one or more formats. Defaults to `["markdown", "metadata"]`. Multiple formats can be requested in a single call.

## Path parameters

- `project_id` string, required

## Request body

- ScrapeRequest
  - `url` string, uri, required: URL of the website to scrape
  - `formats` string[]: Output formats to return. Available formats: markdown (clean text), html (cleaned HTML), rawHtml (raw HTML), links (extracted links), extract (structured content), metadata (page metadata)

## Response `200`

Website content scraped successfully

- ScrapeResponse
  - `markdown` string: Clean markdown representation of the page content
  - `html` string: Cleaned HTML content (scripts and styles removed)
  - `rawHtml` string: Raw HTML content as received from the server
  - `links` object[]: Extracted links from the page
    - `text` string: Link text
    - `url` string: Link URL
    - `type` string: Link type (internal, external, etc.)
  - `extract` object: Structured content extraction
    - `title` string: Page title
    - `description` string: Page description
    - `headings` string[]: Page headings
    - `text` string: Main text content
  - `metadata` object: Page metadata and Open Graph information
    - `title` string: Page title
    - `description` string: Page meta description
    - `url` string: Canonical URL
    - `domain` string: Domain name
    - `favicon` string: Favicon URL
    - `image` string: Featured image URL
    - `author` string: Page author
    - `publishedTime` string: Published date
    - `modifiedTime` string: Last modified date
    - `type` string: Content type
    - `siteName` string: Site name
    - `locale` string: Content locale
    - `keywords` string[]: Meta keywords

## Other responses

- `400`: Validation error
- `401`: Authentication required or invalid API key
- `405`: Method not allowed — only POST is supported
- `500`: Internal server error

---

[API](https://skmtc.dev/blink/apis/blink-apis.md) - [All operations](https://skmtc.dev/blink/apis/blink-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/blink/apis/blink-apis/revisions/4c59c706078e?raw)
