> ## 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 pages and discover story links.

## POST /scrape

Scrape one URL and save the story.

| Body field | Type | Required |
| - | - | - |
| `url` | string | yes |

```bash theme={null}
curl -X POST http://localhost:3000/scrape \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/story"}'
```

## POST /debug-scrape

Same body as `/scrape`. Returns extraction details for troubleshooting.

## POST /scrape-links

Find story links on a page.

| Body field | Type | Required |
| - | - | - |
| `url` | string | yes |
| `options` | object | no. See [scraping options](https://servitlive.com/guides/scraping.md#finding-links-on-a-page) |

```bash theme={null}
curl -X POST http://localhost:3000/scrape-links \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/author/jane", "options": {"maxLinks": 25}}'
```


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