---
title: "Extract content from URLs"
method: POST
path: "/search/v1/contents"
tags: ["Search"]
---

# Extract content from URLs

`POST /search/v1/contents`

Scrapes and extracts text content from web pages, PDFs, and documents. Useful for legal research, evidence collection, and document analysis. Supports live crawling, subpage extraction, and content summarization.

## Request body

- object
  - `urls` string[], required — Array of URLs to scrape and extract content from
  - `text` boolean — Whether to extract text content
  - `highlights` boolean — Whether to include content highlights
  - `summary` boolean — Whether to generate content summaries
  - `livecrawl` boolean — Whether to perform live crawling for dynamic content
  - `livecrawlTimeout` integer — Timeout in seconds for live crawling
  - `subpages` boolean — Whether to extract content from linked subpages
  - `subpageTarget` integer — Maximum number of subpages to crawl
  - `extras` object — Additional extraction options
  - `context` string — Context to guide content extraction and summarization

## Response `200`

Content successfully extracted from URLs

- object
  - `results` object[]
    - `url` string — Source URL
    - `title` string — Page title
    - `text` string — Extracted text content
    - `summary` string — Content summary if requested
    - `highlights` string[] — Content highlights if requested
    - `metadata` object — Additional metadata about the content

## Other responses

- `400` — Invalid request - missing or invalid URLs array
- `401` — Invalid API key
- `403` — API key does not have access to Search service
- `500` — Internal server error during content extraction

---

[API](https://skmtc.net/casemark/apis/case-dev-api.md) · [All operations](https://skmtc.net/casemark/apis/case-dev-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/casemark/case-dev-api/revisions/5b7e64e6d6f9/schema)
