NEWOur agents now make the SEO fixes on your site and check what worked →

Apify SEO Actor: Site Audits and AI Articles

The SEOmatic Apify SEO actor runs two products on Apify: a technical SEO audit of up to 10 URLs for $1, or a researched, quality-gated SEO article for $9 ($0.50 when it starts, $8.50 on delivery). You need no SEOmatic account.

What you get#

SEOmatic SEO Tools is a public actor on the Apify Store (seomatic/seomatic-seo-tools). It runs two of SEOmatic's one-off products:

  • Technical SEO audit of 1 to 10 URLs, crawled with SEOmatic's own crawler. It reports what a single-page check cannot see: duplicate and missing titles and meta descriptions, pages without exactly one H1, thin content, noindex pages, canonicals pointing elsewhere, dead pages, redirects, broken internal links (link targets are checked) and slow pages.
  • AI-written SEO article on your topic, researched against what currently ranks for it when search data is available, written, and checked by SEOmatic's quality gate. It is delivered as markdown and HTML with an AI-search score. An article that does not pass the gate is not delivered, and only the $0.50 start fee is charged.

Run it from the Apify console, the Apify API, a schedule, or any Apify integration, like any other actor.

Run it from the Apify console#

  1. Open the actor. Open SEOmatic SEO Tools on the Apify Store and sign in to Apify.
  2. Pick a product. Choose Technical SEO audit and list 1 to 10 URLs, or AI-written SEO article and enter a topic.
  3. Set the run limits. Set Maximum cost per run to at least $1 for an audit and $9 for an article. For an article, keep the timeout at 25 minutes or more.
  4. Start the run. Click Start. An audit returns in one pass; an article usually takes a few minutes and the actor waits for it.
  5. Read the result. Open the Output tab: the Audits or Articles view, or all results as JSON. Articles are also saved as article.md and article.html in the key-value store.

Open SEOmatic SEO Tools on Apify

Input#

FieldForRules
productbothaudit (the default) or article.
urlsaudit1 to 10 different http or https URLs. Pages from the same site let the audit find duplicates and broken links across them.
topicarticleThe keyword or topic to write about, 3 to 200 characters.
audit input
{
  "product": "audit",
  "urls": ["https://example.com", "https://example.com/pricing"]
}
article input
{
  "product": "article",
  "topic": "how to choose trail running shoes"
}

Pricing#

Pay per event on Apify, no subscription. An audit costs $1. An article costs $9: $0.50 when it starts and $8.50 when it is delivered.

EventPriceWhen it is charged
audit-completed$1.00Once per run, when the audit report is delivered. Covers 1 to 10 URLs.
article-started$0.50When an article run starts. If you abort the run or the quality gate rejects the article, this is the only charge.
article-delivered$8.50Once per run, when the finished article is delivered.

Before any work, the actor checks that the run's maximum cost covers what the run can charge, so it never starts work it cannot bill. Set Maximum cost per run to at least $1 for an audit and $9 for an article.

Run it with the Apify API#

Authenticate with your Apify API token (Apify console, Settings, API & Integrations). An audit fits the synchronous endpoint, which waits for the run and returns the dataset items; it answers 408 if a run takes longer than 300 seconds, in which case use the asynchronous flow below.

audit, synchronous
export APIFY_TOKEN=apify_api_...

curl -X POST "https://api.apify.com/v2/acts/seomatic~seomatic-seo-tools/run-sync-get-dataset-items?maxTotalChargeUsd=2&view=audits" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"product": "audit", "urls": ["https://example.com", "https://example.com/pricing"]}'

An article takes minutes, so start the run, wait for it, then read the dataset:

article, asynchronous
# 1. Start the run: 30-minute timeout, $10 cost limit.
curl -X POST "https://api.apify.com/v2/acts/seomatic~seomatic-seo-tools/runs?timeout=1800&maxTotalChargeUsd=10" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"product": "article", "topic": "how to choose trail running shoes"}'
# data.id is the run id, data.defaultDatasetId the dataset id.

# 2. Wait. Repeat until data.status is SUCCEEDED, FAILED, TIMED-OUT or ABORTED.
curl "https://api.apify.com/v2/actor-runs/$RUN_ID?waitForFinish=60" \
  -H "Authorization: Bearer $APIFY_TOKEN"

# 3. Read the article (all fields, including html).
curl "https://api.apify.com/v2/datasets/$DATASET_ID/items" \
  -H "Authorization: Bearer $APIFY_TOKEN"

When a run fails, its data.statusMessage holds the message from the errors table below, including what was charged.

JavaScript#

With the official apify-client package (npm):

audit.mjs
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

// call() starts the run and waits for it to finish.
const run = await client.actor("seomatic/seomatic-seo-tools").call(
  { product: "audit", urls: ["https://example.com", "https://example.com/pricing"] },
  { maxTotalChargeUsd: 2 },
);
if (run.status !== "SUCCEEDED") throw new Error(run.statusMessage);

const { items } = await client
  .dataset(run.defaultDatasetId)
  .listItems({ view: "audits" });
const [audit] = items;
console.log(audit.status, audit.issue_count, audit.issues);

For an article, pass { product: "article", topic: "..." } with { maxTotalChargeUsd: 10, timeout: 1800 } and read the items without a view to get the HTML too.

Python#

With the official apify-client package (PyPI, version 3, Python 3.11 or later):

article.py
import os
from datetime import timedelta
from decimal import Decimal

from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

# call() starts the run and waits for it to finish.
run = client.actor("seomatic/seomatic-seo-tools").call(
    run_input={"product": "article", "topic": "how to choose trail running shoes"},
    max_total_charge_usd=Decimal("10"),
    run_timeout=timedelta(minutes=30),
)
if run is None or run.status != "SUCCEEDED":
    raise RuntimeError(run.status_message if run else "run did not start")

article = client.dataset(run.default_dataset_id).list_items().items[0]
print(article["title"], article["word_count"])
with open("article.html", "w") as f:
    f.write(article["html"] or "")

For an audit, pass run_input={"product": "audit", "urls": [...]} with max_total_charge_usd=Decimal("2") and read list_items(view="audits").

Output#

Each run adds one item to its default dataset: an audit report or a finished article. An item is written only when it is charged.

Audit

FieldTypeDescription
productstring"audit"
statusstringdone, or partial when the crawl time budget ran out
urlsstring[]The URLs audited, normalized and de-duplicated
pages_crawledintegerPages fetched
pages_failedobject[]{ url, reason } for each page that could not be fetched
issue_countintegerTotal issues across every type
partialstring | nullHow many pages were not crawled, when the time budget ran out
issuesobjectIssues grouped by type (below)

issues holds one list per type:

TypeEach entry
deadPages{ url, status } for pages answering 400 or above
brokenInternalLinks{ target, status, linkedFrom[] } for internal links to a dead page
duplicateTitles{ value, pages[] } for a title shared by several pages
duplicateMetaDescriptions{ value, pages[] } for a shared meta description
missingMetaDescriptionURLs with no meta description
badH1{ url, h1Count } for pages without exactly one H1
thinContent{ url, wordCount } for pages under 300 words
noindexPagesURLs marked noindex
canonicalMismatch{ url, canonical } where the canonical points elsewhere
redirectedPages{ url, finalUrl } for URLs that redirect
slowPages{ url, loadTimeMs } for pages slower than 3 seconds

Article

FieldTypeDescription
productstring"article"
statusstring"ready"
topicstringThe topic you gave
titlestring | nullThe article title
word_countinteger | nullLength of the article
ai_search_scorenumber | nullSEOmatic's AI-search score for the article
featured_image_urlstring | nullThe generated featured image
markdownstringThe article in markdown
htmlstring | nullThe article in HTML

The article is also saved as article.md and article.html in the run's key-value store, ready to download.

Output tab views#

The run's Output tab links to the audit report, the article, or all results. The two views are also available to the API as view=audits and view=articles:

ViewAPI nameFields
Auditsauditsstatus, urls, pages_crawled, issue_count, partial, issues
Articlesarticlesstatus, topic, title, word_count, ai_search_score, featured_image_url, markdown

The Articles view leaves out the HTML. Read the items without a view, or download article.html, to get it.

Limits#

  • Audits: 10 different URLs per run. Pages are crawled within a time budget; if it runs out, the result is marked partial and says how many pages were not crawled.
  • Articles: one per run, written in English. Set the run timeout to 25 minutes or more: the actor does not start an article with less than 22 minutes of run time left, and gives up after 20 minutes of generation (or shortly before the run timeout) without charging the article event.
  • A daily limit on failed articles applies to each Apify user separately. Reaching it stops the run before any work, and nothing is charged.

Errors and fixes#

A failed run shows one of these messages as its status message. Each one also says what was charged, at the end or where <what was charged> stands: Nothing was charged. or Only the article start fee ($0.5) was charged; it covers the work already begun.

MessageWhat happenedFix
Not a valid URL: "<url>". Use full URLs like https://example.com/page.A URL in urls cannot be parsed.Use full URLs, including https://.
Only http and https URLs can be audited: "<url>".A URL uses another scheme, such as ftp:.Audit http or https pages only.
An audit needs 1 to 10 URLs.urls is empty.Add at least one URL.
An audit takes at most 10 different URLs per run (got N).More than 10 different URLs after de-duplication.Split the list across several runs.
An article needs a topic of 3 to 200 characters.topic is missing, too short or too long.Give a topic of 3 to 200 characters.
Your run's maximum cost does not cover one audit ($1). Raise "Maximum cost per run" and try again.The run's cost limit does not cover the price of the result. For an article the message says $9 (the $0.50 start fee plus $8.50 on delivery).Set Maximum cost per run (maxTotalChargeUsd) to at least $1 for an audit and $9 for an article.
Articles need a run timeout of at least 25 minutes; this run would stop before the article is ready. Raise the timeout and try again.The run has less than 22 minutes left when the article would start.Set the run timeout to 25 minutes or more (1800 seconds is the default).
Too many of your article runs failed in the last 24 hours. Nothing was charged. Please try again tomorrow.Your Apify account reached its daily limit on failed articles. Other users' runs never count toward yours.Wait a day, and check the topics that failed.
SEOmatic cannot take new audits right now. Nothing was charged. Please try again later.SEOmatic is not accepting new audits or articles at that moment (the same message says articles for an article run).Run it again later.
None of the pages could be crawled (check that the URLs are public and reachable).Every URL failed to load.Check that the pages are public and load in a browser.
The article could not be generated or did not pass the quality check.Generation failed, or the article was rejected by the quality gate. Only the $0.50 start fee is charged; the $8.50 delivery event is not.Try again, or rephrase the topic.
The article was not ready in time for this run. <what was charged> Please try again with a run timeout of at least 25 minutes.The article took more than 20 minutes, or the run was about to time out. The unfinished article is stopped.Run it again with a longer timeout.
The article was ready, but your run's maximum cost was reached before it could be delivered. Raise "Maximum cost per run" and try again.The run's cost limit was used up before delivery. The same message exists for an audit.Raise Maximum cost per run.
The run could not be completed because of a temporary problem on SEOmatic's side. <what was charged> Please try again later.An unexpected error on SEOmatic's side.Run it again later.

FAQ#

Do I need a SEOmatic account or API key?

No. You run the actor with your Apify account and pay through Apify. The actor calls SEOmatic for you.

What am I charged if a run fails?

The audit and article events are charged only when the result is delivered, in the same step. A run that cannot finish (an invalid URL, pages that cannot be crawled, a failed or rejected article, a timeout) does not charge them. An article costs a $0.50 start fee plus $8.50 on delivery ($9 total); if the quality gate rejects it or you abort the run, only the $0.50 start fee is charged. Every failure message says exactly what was charged.

Can a restarted run charge me twice?

No. Charges are checked against Apify's own charged-event counts, which survive a migration or restart. A restarted article run resumes the same article, and a finished audit is never crawled again.

What happens if I abort an article run?

The unfinished article is stopped on SEOmatic's side. Only the $0.50 start fee is charged; the $8.50 delivery event is not.

Why did my run stop before doing anything?

Before any work the actor checks that the run's maximum cost covers what it can charge, and that an article run has enough time left. If not, it stops with a message saying what to raise, and nothing is charged. Set Maximum cost per run to at least $1 for an audit and $9 for an article, and the timeout to 25 minutes or more for an article.

Does the actor publish the article or fix my pages?

No. It returns the audit or the article to your Apify dataset, and the article also as article.md and article.html in the run's key-value store. Publishing and fixing pages on your own site is what SEOmatic's agents do once you connect your CMS.

Which languages are articles written in?

English.

digi-business-uk

Each local area page used to take us half a day to create and optimize.


With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.


It's transformed how we deliver scalable SEO solutions.

will-hawkins

Will Hawkins

Marketing Director, Digi-Business UK

Give Your Site an SEO Team

Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.

  • You decide what ships
  • Verified live
  • One-click rollback

14-Day Trial for $1, credited to your first payment.