Glossary
What is a web scraping API?
A web scraping API is a hosted service that fetches a webpage for you and returns its content as clean markdown, text or JSON in one HTTP call.
Copy as MarkdownOpen in ChatGPT (opens in a new tab)Open in Claude (opens in a new tab)
A web scraping API is a hosted service that fetches webpages and returns their content in a usable format, typically clean markdown, text or structured JSON, through a single HTTP call. It handles the hard parts of scraping for you, such as JavaScript rendering, retries and content cleanup, so you write no browser or parsing code.
What a web scraping API actually does
When you call a web scraping API, you send it a URL and it sends back the page's content. Behind that one call, the service fetches the page, rendering JavaScript when needed, strips away navigation and boilerplate, and converts what remains into the format you asked for. The alternative is to run your own browsers and maintain your own parsers for each site, which is a well-known drain on engineering time. That is why scraping APIs exist as a category.
Scraping API vs building your own scraper
A scraper you build starts simple: an HTTP request and an HTML parser. It stops being simple the first time a site needs JavaScript to render, changes its markup, or limits your request rate. A scraping API spreads those problems across all its customers:
- Rendering. A managed headless browser executes JavaScript when a page needs it.
- Reliability. Retries, timeouts and failed fetches are the provider's problem.
- Cleanup. Main-content detection removes ads, menus and footers before you see the page.
- Consistency. Every site comes back in the same shape, so your code has one path.
Using a service does not change what you are allowed to fetch. A site's terms and its robots.txt apply whoever sends the request.
What changed with LLMs
Earlier scraping APIs were built for price monitoring and data teams, and returned raw HTML or fields picked out with CSS selectors. AI workloads changed the usual output: agents and RAG pipelines want LLM-ready data, which means markdown for prose and JSON when you need specific fields. Many current services return markdown by default and offer structured data extraction against a schema.
Scraping one page vs many
A scraping API works on URLs you already know. When you want every page on a site, such as documentation, a knowledge base or a product catalog, you need crawling, which discovers pages by following links. The two are often confused. Scraping vs crawling covers the difference and when each applies.
Where MillionShort fits
MillionShort search is not a scraping API. A search finds pages in our own index and returns a snippet of up to 2,000 characters from each. It does not fetch an arbitrary URL. With include_content, web and news results also carry the text of the page as we hold it, with no request to the site. For many agent questions that is enough, and no page fetch is needed.
When you need the page itself, Extract is the scraping side: it turns a URL into clean text, honours robots.txt and charges only for pages that succeed.