# SEO Data Scraper API

> SEO Data Scraper parses any public URL to collect title tags, meta descriptions, robots directives, and Open Graph or Twitter card previews. Paid plans add canonical URLs to verify indexing rules.

**Endpoint:** `POST https://api.apiverve.com/v1/seoscraper`  
**Category:** Data Scraping  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/seoscraper

## Overview

An SEO scraping API for pulling on-page SEO data from one URL per call, without running your own web scraper. SEO Scraper works by parsing the HTML content of a web page to extract the SEO data. It returns the meta title, meta description, and more in a structured format.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/seoscraper" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://apiverve.com"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | Yes | The URL of the web page to scrape SEO data from (a full URL or a bare domain such as example.com; https:// is assumed when no scheme is given) |

## Response fields

- `url` — string · The URL that was scraped
- `title` — string · Page title tag content for SEO optimization
- `description` — string · Meta description tag for search engine snippets
- `keywords` — string · Meta keywords tag for SEO targeting
- `author` — string · Author meta tag content for attribution
- `canonical` — string · Canonical URL specified in page meta tags · (premium)
- `og:title` — string · Open Graph title for social media preview
- `og:description` — string · Open Graph description for social sharing
- `og:image` — string · Open Graph image URL for social previews
- `og:url` — string · Open Graph canonical URL for social sharing
- `og:type` — string · Open Graph content type like website or article
- `og:site_name` — string · Open Graph site name for consistency
- `twitter:card` — string · Twitter card type like summary_large_image
- `twitter:title` — string · Twitter card title for social preview
- `twitter:description` — string · Twitter card description for social sharing
- `twitter:image` — string · Twitter card image URL for social media
- `twitter:site` — string · Twitter account handle for attribution
- `robots` — string · Robots meta tag directives for search indexing
- `viewport` — string · Viewport meta tag for mobile responsive design
- `charset` — string · Character encoding declared in page metadata
- `titleRelevance` — number · How closely the page title matches what the page's main content is about, from 0 to 100, scored by a sentence-embedding model. Above about 50 is on-topic; a low score means the title promises something the page does not cover. Null if the page has no title, too little text to judge, or the model was unavailable · (premium)
- `descriptionRelevance` — number · How closely the meta description matches what the page's main content is about, from 0 to 100, scored the same way as titleRelevance. Null if the page has no meta description, too little text to judge, or the model was unavailable · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "url": "https://apiverve.com",
    "title": "APIVerve — One key for 300+ production APIs",
    "description": "Consistent schemas, predictable credit pricing, and an uptime SLA on every paid plan across 300+ production APIs. One key, one bill, zero glue code.",
    "keywords": "",
    "author": "",
    "canonical": "",
    "og:title": "APIVerve — One key for 300+ production APIs",
    "og:description": "Consistent schemas, predictable credit pricing, and an uptime SLA on every paid plan across 300+ production APIs. One key, one bill, zero glue code.",
    "og:image": "https://apiverve.com/social-images/page-home.png",
    "og:url": "https://apiverve.com",
    "og:type": "website",
    "og:site_name": "APIVerve",
    "twitter:card": "summary_large_image",
    "twitter:title": "APIVerve — One key for 300+ production APIs",
    "twitter:description": "Consistent schemas, predictable credit pricing, and an uptime SLA on every paid plan across 300+ production APIs.",
    "twitter:image": "https://apiverve.com/social-images/page-home.png",
    "twitter:site": "",
    "robots": "",
    "viewport": "width=device-width, initial-scale=1, maximum-scale=1",
    "charset": "utf-8",
    "titleRelevance": 47.91,
    "descriptionRelevance": 51.65
  }
}
```

## Use cases

- **Link Preview Generation** — Chat applications fetch page titles, descriptions, and Open Graph image URLs to display rich snippet cards when users paste web links.
- **Search Snippet Auditing** — Content marketing platforms read title tags and meta descriptions across blog posts to flag missing or truncated text before publishing.
- **Competitor Tag Tracking** — Monitor competing landing pages by inspecting robots directives, meta keywords, and Twitter card types to catch changes in their promotion strategies.
- **Indexing Rule Verification** — When auditing website migrations, technical consultants verify robots directives and page titles to confirm search bots can crawl target pages correctly.

## SDKs

- **npm** — `npm install @apiverve/seoscraper` (https://www.npmjs.com/package/@apiverve/seoscraper)
- **PyPI** — `pip install apiverve-seoscraper` (https://pypi.org/project/apiverve-seoscraper/)
- **NuGet** — `dotnet add package APIVerve.API.SEODataScraper` (https://www.nuget.org/packages/APIVerve.API.SEODataScraper)
- **Source** — https://github.com/apiverve/seoscraper-api

## More

- Full reference: https://docs.apiverve.com/ref/seoscraper
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
