> ## Documentation Index
> Fetch the complete documentation index at: https://servitlive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scraping

> Scrape a single story or discover story links on a page.

## Single page

`POST /scrape` loads the page in headless Chromium, extracts the title, author, and body text, and saves the story.

If extraction looks wrong, `POST /debug-scrape` returns detailed information about how the content was found.

## Finding links on a page

`POST /scrape-links` opens an index page (an author page, a tag listing, a table of contents) and returns candidate story links.

| Option | Default | Description |
| - | - | - |
| `linkSelector` | `a[href]` | CSS selector for candidate links |
| `filterPatterns` | `[]` | Only keep URLs that match these patterns |
| `excludePatterns` | images, CSS, JS, `mailto:` … | Drop URLs that contain these strings |
| `sameDomain` | `true` | Only keep links on the same domain |
| `maxLinks` | `10` | Maximum number of links returned |
| `keywords` | `[]` | Prefer links whose text contains these keywords |

See the [scraping API](https://servitlive.com/api-reference/scraping.md) for request examples.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.