Command Palette

Search for a command to run...

YepAPI
POST/v1/scrape/extract

Data Extraction API

Extract structured data from any page using CSS or XPath selectors. Get clean JSON from product pages, listings, and tables from $0.01/call.

Define extraction rules using CSS selectors or XPath expressions and get back structured JSON data. Perfect for scraping product listings, tables, directories, and any page with repeating elements.

Try it live

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

POST/v1/scrape/extract

CSS selectors or XPath. Use type: "list" for multiple elements.

Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "url": "https://news.ycombinator.com",
    "extracted": {
      "titles": [
        "Show HN: Open-source AI code editor",
        "The State of WebAssembly 2026",
        "PostgreSQL 18 Released"
      ]
    }
  }
}

Features

CSS and XPath selector support
Nested extraction for complex page structures
List extraction for repeating elements
Attribute extraction (href, src, data-*)
Returns clean JSON matching your rules

Use cases

Product Catalog Scraping

Extract product names, prices, images, and descriptions from e-commerce pages into structured JSON.

Directory Scraping

Pull business listings, contact info, and reviews from directory sites with repeating card layouts.

Table Data Extraction

Convert HTML tables into structured arrays for data analysis, spreadsheets, or database imports.

Job Board Scraping

Extract job titles, companies, locations, and salary data from job listing pages at scale.

Real Estate Data

Pull property listings with prices, addresses, and features from real estate platforms.

Quick start

Copy this snippet and start making calls.

const res = await fetch('https://api.yepapi.com/v1/scrape/extract', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://news.ycombinator.com",
    "extractRules": {
      "titles": {
        "selector": ".titleline > a",
        "type": "list"
      }
    }
  }),
});
const data = await res.json();
console.log(data);

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

Define extraction rules using CSS selectors or XPath expressions and get back structured JSON data. Perfect for scraping product listings, tables, directories, and any page with repeating elements.

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/extract. 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