SEO
Extract SEO metadata from a web page including title, description, Open Graph tags, Twitter Card metadata, product metadata, and more.
Use this to read a page's SEO metadata in one call: title, description, first heading, robots directive, Open Graph and Twitter Card tags, and product price tags. Useful for SEO audits, link previews, and product monitoring.
1 credit per request. Add render_js=true for pages that build their content with JavaScript (+4 credits).
Quick example
curl -G "https://api.webscraperapi.ai/v1/seo" \
-H "Authorization: Bearer $WEBSCRAPERAPI_API_KEY" \
--data-urlencode "url=https://example.com" \
--data-urlencode "output=json"A tag the page does not set comes back as null, so every response has the same fields. Use output=csv or output=markdown when you do not want JSON.
Full API reference
Query Parameters
The URL to analyze for SEO metadata.
uri1 <= length <= 2083Whether to render JavaScript.
falseOutput format. Falls back to Accept header when not provided.
Request timeout in milliseconds.
Response Body
application/json
application/json
curl -X GET "https://api.webscraperapi.ai/v1/seo?url=http%3A%2F%2Fexample.com"null{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}