YepAPI
POST/v1/scrape

Web Scraping API

Scrape any URL and get clean markdown, HTML, or plain text. Smart mode escalates to JS rendering and premium proxies on its own, one flat $0.01/call.

Fetch the content of any public webpage as markdown, HTML, or plain text. Smart mode tries the fastest fetch first and automatically escalates to JavaScript rendering and premium residential proxies until the page loads, all at one flat price per call.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/scrape

Optional. CSS or XPath (e.g. article or //h1). Returns only the first matching element.

Optional. Milliseconds to wait before capture, up to 15000.

Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "url": "https://example.com/",
    "statusCode": 200,
    "content": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission...",
    "format": "markdown"
  }
}

Features

✓
Return content as markdown, HTML, or plain text

Pick your output format with a single parameter: LLM-ready markdown (the default), raw HTML, or plain text. The page comes back in the `content` field, with `format` echoing what you asked for.

✓
Smart mode: automatic escalation

Every call starts with a fast, cheap fetch. If the page needs JavaScript or blocks the request, it is retried with JS rendering and then premium residential proxies until it loads. You pay the same $0.01 either way.

✓
CSS or XPath selector

Pass an optional `selector` like `article` or `//h1` to get only the first matching element: its HTML when format is html, otherwise its text. Skip navigation and footers and keep just the part you need.

✓
Optional wait before capture

Set `wait_for` in milliseconds (up to 15,000) to give slow pages time to finish loading before the content is captured.

✓
Final URL and status code included

Responses return the final URL after redirects plus the target page's HTTP status code. A 404 target returns a NOT_FOUND error, and failed calls are never charged.

Use cases

Content Monitoring

Track changes on competitor pages, pricing tables, or documentation by scraping and diffing content periodically.

Data Pipeline Ingestion

Feed webpage content into ETL pipelines, data warehouses, or AI systems as clean markdown or text.

SEO Content Analysis

Scrape competitor pages to analyze structure, headings, word count, and content gaps.

Research Automation

Automate the collection of information from multiple sources for market research or reporting.

RAG Knowledge Bases

Build retrieval-augmented generation knowledge bases by scraping and indexing relevant web pages.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/scrape', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://example.com",
    "format": "markdown"
  }),
});
const data = await res.json();
console.log(data);

Web Scraping API for clean markdown, HTML, and text

The YepAPI Web Scraping API turns any public webpage into clean, structured content with a single POST request. Send a URL and choose your output format — markdown, HTML, or plain text — and get back the page content without the boilerplate. There is no SDK to install and no proxy infrastructure to maintain.

It runs in smart mode: each call starts with the fastest, cheapest fetch and escalates on its own, first to JavaScript rendering and then to premium residential proxies, until the page loads. Static blogs and docs come back fast, client-rendered pages still come back complete, and the price stays $0.01. When you need to click, scroll, or fill a form before capture, use the JavaScript Scraping API; for heavily protected sites, the Stealth Scraping API.

What is a web scraping API?

A web scraping API is a hosted service that fetches the content of a webpage and returns it in a usable format, so you don't have to run your own crawler, browser, or proxy network. You send a URL over HTTP and get back the page content as markdown, HTML, or text. It handles proxies, JavaScript rendering, redirects, and parsing on the server side. Developers use web scraping APIs to power data pipelines, content monitoring, SEO analysis, and AI knowledge bases without maintaining brittle scraping scripts or getting their servers' IPs blocked by target sites.

Build your own web scraping tool

With one endpoint you can build a content monitor that diffs competitor pages, an ETL job that ingests articles as markdown, or a RAG pipeline that indexes documentation into a vector store. Because the API returns clean markdown by default, the output drops straight into LLM prompts and embeddings without extra cleanup. Add the optional CSS selector to grab just the article body, then schedule the call on a cron and you have a production scraper in an afternoon — no headless browser, no proxy management, no maintenance.

Web scraping API pricing — from $0.01 per call

The Web Scraping API costs $0.01 per call with no monthly minimum and no subscription, and smart-mode escalation to JS rendering or premium proxies does not change the price. Failed calls, including pages that still block the request, are free. Compare that to Firecrawl at $19/month or Apify at $49/month. With YepAPI there's no plan to outgrow and no commitment: top up credits and call the endpoint as much or as little as you need.

Cleaner output, less parsing code

Unlike scrapers that hand you a wall of raw HTML, this endpoint can return the page already converted to markdown or plain text. That means far less parsing logic in your codebase and content that's ready for AI models, search indexes, or storage. When you need the raw markup or a single element, the HTML format and the CSS or XPath selector give you precise control without switching tools.

Try the Web Scraping API free

Sign up and get $5 in free credit — no credit card required. That's enough for 500 scrape calls to test the API against your own target URLs. Try different output formats and selectors before you commit a cent.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

Frequently asked questions

Fetch the content of any public webpage as markdown, HTML, or plain text. Smart mode tries the fastest fetch first and automatically escalates to JavaScript rendering and premium residential proxies until the page loads, all at one flat price per call.

Each API call costs $0.01. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/scrape. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More Web Scraping endpoints