# The endpoints

Six endpoints, one key. Search, Extract, Monitor, Map (with Crawl), Places and Agent are all available.

MillionShort is built around six endpoints. Crawl is the job form of Map and has a section of its own. They share one key, one credit balance, one error shape and one answer envelope, so learning one teaches you the rest. These docs have a section for each, and every section has the same parts in the same order: an overview, a quickstart, the parameters, guides, pricing and limits, and errors.

| Endpoint | What it does | Stage |
|---|---|---|
| [**Search**](https://millionshort.com/docs/search) | One ranked list from one to five of our 13 sources, with filters other search APIs do not have | **Available** |
| [**Extract**](https://millionshort.com/docs/extract) | URLs in, each page back as clean text an agent can read | **Available** |
| [**Monitor**](https://millionshort.com/docs/monitor) | Watch a search or a page and be told only when something changed | **Available** |
| [**Map**](https://millionshort.com/docs/map), with [**Crawl**](https://millionshort.com/docs/crawl) | The addresses of a site in one call, and with Crawl, its pages as clean text, as a job | **Available** |
| [**Places**](https://millionshort.com/docs/places) | Businesses and points of interest by what they are and where, as data | **Available** |
| [**Agent**](https://millionshort.com/docs/agent) | A question in, an answer out in which every statement carries a checked quote from a page the run read | **Available** |

## Search

Search the web and the specialist sources from one call, and say what kind of web you want: remove the most popular sites, keep or leave out kinds of page and topics, steer by site, and read each result's popularity and risk. Start at the [Search overview](https://millionshort.com/docs/search) or go straight to the [quickstart](https://millionshort.com/docs/quickstart).

Two smaller calls belong with it: [`GET /v1/sources`](https://millionshort.com/docs/api-reference/sources) lists what a search accepts, and [`POST /v1/domain`](https://millionshort.com/docs/api-reference/domain) returns popularity and risk for any site.

## Extract

Give it URLs and get each page back as clean text, with its title, metadata, links and labels that say what the page is. It honours robots.txt, identifies itself to sites, and charges only for pages that succeed. The [Extract section](https://millionshort.com/docs/extract) has the parameters and the prices. When the copy we hold is enough, a search can return the page text of web and news results itself, with [`include_content`](https://millionshort.com/docs/search/highlights).

## Monitor

Save a search or a page, choose an interval, and be told only when something changed: new results for a search, or new text on a page. Events are delivered to a signed [webhook](https://millionshort.com/docs/webhooks) or pulled. The [Monitor section](https://millionshort.com/docs/monitor) has the parameters and the prices, and the [news monitoring guide](https://millionshort.com/docs/monitor/guides/news-monitoring) shows the job both ways: with a monitor, and with a scheduled search.

## Map

Give it a site and get the addresses of its pages in one call, from the site's sitemaps, the links of the page you name and our own index, which adds titles and labels. With Crawl, get the pages themselves as clean text, as a job you poll: every page comes back as an Extract result with its labels. Both fetch the way Extract does: as our declared bot, within robots.txt, politely, and there is no option to ignore robots.txt. The [Map section](https://millionshort.com/docs/map) and the [Crawl section](https://millionshort.com/docs/crawl) have the parameters and the prices. To search only the pages of a site that we hold, a search takes `include_domains`.

## Places

Find businesses and points of interest by what they are and where they are: "bike repair near the station", by a place name, a point or a box. Each place comes back as data, with its name, category, address, coordinates, phone number and website. There is no map and there are no tiles. Coverage is worldwide and uneven, opening hours are known for few places, and there are no ratings or reviews. The [Places section](https://millionshort.com/docs/places) has the parameters, the coverage and the price. A person can search the same places on the Maps tab of the [search site](https://millionshort.com/).

## Agent

Ask a question and get a written answer assembled from several searches and the pages they lead to, as a job with a spending cap you set. Every statement carries a quote from a page the run read, and a statement whose quote is not in that page is removed. With a JSON Schema the answer comes back as data, with citations per field. It needs a language model at request time, so it is slower than a search, it is metered, and it can be wrong in ways a list of results cannot. The [Agent section](https://millionshort.com/docs/agent) has the parameters, the prices and the per-run cap of each plan. To assemble cited context for a model of your own instead, the [RAG guide](https://millionshort.com/docs/search/guides/rag) shows how.

## Building blocks, not endpoints

- [**Spaces**](https://millionshort.com/docs/search/spaces) are saved scopes for a search, passed as `space`. They are free. The [Spaces API](https://millionshort.com/docs/spaces) manages them.
- [**Webhooks**](https://millionshort.com/docs/webhooks) are where monitors, batches, crawls and agent runs deliver events.
- The [**MCP server**](https://millionshort.com/docs/mcp) gives an agent the endpoints as tools, with or without a key.

## Not planned for now

Some things other search and web-data APIs offer are not on our list today. We would rather say so than leave you guessing:

- Screenshots.
- A generated answer returned by the search call itself. ([Agent](https://millionshort.com/docs/agent) is a separate call.)
- Find-similar: results like a page you name.
- Stored collections of results that are enriched and refreshed.
- A date filter on web pages. Web pages carry no date; the date filters work on the sources that do.
- Ratings, reviews and photos of places.

If one of these would decide whether you use MillionShort, [tell us](https://millionshort.com/contact). It changes what we build next.
