100 free credits. No credit card required. Get a key

On-page SEO audit API

An on-page SEO audit of any public URL: status and timing, title and description lengths, headings, canonical and robots, links, images without alt, structured data, Open Graph and hreflang, with 15 checks and a score.

GET /v1/onpage/pageBeta1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/onpage/page?url=https%3A%2F%2Fwww.python.org%2F",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"url": "https://www.python.org/",
"final_url": "https://www.python.org/",
"status_code": 200,
"content_type": "text/html; charset=utf-8",
"fetch_time_ms": 3,
"page_size_bytes": 52630,
"title": "Welcome to Python.org",
"title_length": 21,
"meta_description": "The official home of the Python Programming Language",
"meta_description_length": 52,
"canonical": null,
"is_canonical_self": null,
"meta_robots": null,
"is_indexable": true,
"language": "en",
"has_viewport": true,
"charset": "utf-8",
"headings": {
"h1": [
"Functions Defined",
"All the Flow You’d Expect",
"… 3 more"
],
"h2": [
"Get Started",
"Download",
"… 7 more"
],
"h3": [],
"h4_h6_count": 0
},
"word_count": 1070,
"links": {
"internal": 167,
"external": 45,
"nofollow": 0,
"sample_external": [
"https://pypi.org/",
"https://www.linkedin.com/company/python-software-foundation/",
"… 8 more"
]
},
"images": {
"total": 1,
"missing_alt": 0
},
"hreflang": [],
"structured_data_types": [
"WebSite"
],
"open_graph": {
"og:type": "website",
"og:site_name": "Python.org",
"og:title": "Welcome to Python.org",
"og:description": "The official home of the Python Programming Language",
"og:image": "https://www.python.org/static/opengraph-icon-200x200.png",
"og:image:secure_url": "https://www.python.org/static/opengraph-icon-200x200.png",
"og:url": "https://www.python.org/"
},
"…": "3 more fields"
}

Parameters

NameTypeDescription
urlquery · requiredstringExample: https://www.python.org/.
enable_javascriptquery"true" | "false"One of true, false.
Response fields

200 with a OnPageAudit, in a plain audit of the page’s own HTML.

FieldTypeDescription
urlstring
final_urlstring
status_codeinteger
content_typestring
fetch_time_msinteger
page_size_bytesinteger
titlestring | null
title_lengthinteger
meta_descriptionstring | null
meta_description_lengthinteger
canonicalstring | null
is_canonical_selfboolean | null
meta_robotsstring | null
is_indexableboolean
languagestring | null
has_viewportboolean
charsetstring | null
headingsobject
word_countinteger
linksobject
imagesobject
hreflangobject[]
structured_data_typesstring[]
open_graphobject
twitter_cardobject
checksobject[]
scoreintegerShare of checks passed, 0-100.
Status codes
StatusMeaning
200The audit.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404That URL does not resolve or is not an HTML page.
429Too many requests. Wait for Retry-After seconds.
503On-page SEO is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

Does it render JavaScript?

No: it audits the HTML the server sends, which is what most crawlers read first.

On-page SEO is a trademark of its owner. We are not affiliated with or endorsed by it.