Practical quickstart · verified 2026-10-28
Website SEO checks in Python: metadata and sitemaps
For SEO consultants and agencies preparing an initial website review. Collect page metadata and sitemap observations in structured JSON.
Open Actor on Apify ↗See the real outputUse your own Apify account. This page does not execute a run or ask for your token.
1. Start with one target
A page title, description and sitemap sample you can put in a review worksheet. Autocomplete suggestions are research prompts, not ranking keywords.
{
"domains": [
"linear.app"
],
"top_keywords": 0,
"competitors": 0,
"use_paid_upstream": false
}Public mode emits no domain-lookup or domain-result events. The listed Actor start event is $0.00005 per GB, minimum one event; applicable Apify platform charges can apply. A spending cap is a limit, not a quoted price. Check current pricing.
2. Run with Python and a spending cap
Save the input JSON and the bounded Python runner in one directory. Set your existing Apify token locally, then run:
pip install requests
# Set APIFY_TOKEN in your environment; never paste it into this website.
python apify-bounded-run.py hirepulse/domain-seo-overview domain-seo-overview.json 0.03Show the Python runner
"""One bounded Apify run. Never retries a run-start request."""
import json, os, sys, time
from pathlib import Path
import requests
actor, input_path, cap = sys.argv[1], sys.argv[2], float(sys.argv[3])
if not 0 < cap <= 1:
raise SystemExit("Choose a positive event-charge cap up to $1 for this example.")
headers = {"Authorization": "Bearer " + os.environ["APIFY_TOKEN"]}
payload = json.loads(Path(input_path).read_text(encoding="utf-8"))
api = "https://api.apify.com/v2"
# This POST is deliberately not retried. If its response is lost, check
# Apify Console for the run before starting another one.
response = requests.post(api + "/actors/" + actor.replace("/", "~") + "/runs",
headers=headers, json=payload, params={"maxTotalChargeUsd": cap,
"timeout": 120, "memory": 512, "restartOnError": "false"}, timeout=35)
response.raise_for_status()
run = response.json()["data"]
print("Started run:", run["id"], flush=True)
deadline = time.monotonic() + 180
while run["status"] in {"READY", "RUNNING", "TIMING-OUT", "ABORTING"}:
if time.monotonic() >= deadline:
raise SystemExit("Polling stopped; inspect run " + run["id"] + " in Console.")
time.sleep(2)
response = requests.get(api + "/actor-runs/" + run["id"], headers=headers, timeout=35)
response.raise_for_status()
run = response.json()["data"]
if run["status"] != "SUCCEEDED":
raise SystemExit("Run " + run["id"] + " ended " + run["status"] + "; inspect logs.")
response = requests.get(api + "/datasets/" + run["defaultDatasetId"] + "/items",
headers=headers, params={"format": "json", "limit": 20}, timeout=35)
response.raise_for_status()
rows = response.json()
Path("result.json").write_text(json.dumps(rows, indent=2, ensure_ascii=False), encoding="utf-8")
if not rows:
print("No dataset rows. Inspect the run OUTPUT and logs for source diagnostics.")
else:
print("Saved", len(rows), "rows (up to 20) to result.json; review availability fields.")
Start the same run with cURL (Bash)
curl --fail-with-body -X POST "https://api.apify.com/v2/actors/hirepulse~domain-seo-overview/runs?maxTotalChargeUsd=0.03&timeout=120&memory=512&restartOnError=false" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
--data @domain-seo-overview.jsonThe response contains a run ID. Poll GET /v2/actor-runs/{runId}; after success, read /v2/datasets/{defaultDatasetId}/items. Do not repeat a start request after a timeout without checking Console.
3. Inspect an actual result
Selected fields from an owner validation run on 2026-10-28T09:42:42.356Z. Build QXqgSWIdYeMoND3Sy. These are dated observations, not current counts or customer results.
{
"record_type": "domain_overview",
"domain": "linear.app",
"final_url": "https://linear.app/",
"http_status": 200,
"page_title": "Linear — The system for product development",
"canonical_url": null,
"h1": "Linear is a purpose-built tool for planning and building products",
"checked_at": "2026-11-03T21:13:51.694100+00:00",
"sitemap_present": true,
"sitemap_urls_found": 985,
"popularity_tier": "top_50k",
"popularity_source": "Chrome UX Report (Google), 2026-09",
"provider_mode": "native",
"metrics_available": false,
"seo_readiness": {
"score": 90,
"tier": "good"
},
"findings": [
{
"code": "missing_canonical",
"severity": "low",
"message": "No canonical link tag was found on the homepage.",
"recommendation": "Add <link rel="canonical" href="..."> to the <head> to prevent duplicate content.",
"evidence": "canonical link tag missing"
}
]
}Download sample and provenance
Use it in your workflow
Use the result to prioritize a manual review. For measured SEO metrics, use a separately configured data provider; this example keeps paid sources disabled.
In n8n or Make, use the Apify integration with the Actor ID hirepulse/domain-seo-overview and the same JSON input. Review the run charge cap in the integration before enabling a schedule. These steps are instructions; no live n8n or Make workflow was executed for this guide.
Know the limits
Native mode does not measure visits, Google rankings, search volume or CPC. Those fields remain null. The Chrome popularity bucket is not a visit count. A sitemap count is not a Google index count.