Skip to content

API reference

Audits

SEO audits of connected websites and crawled sites, their issues, and recurring schedules. Issue status is shared between the dashboard, the API and WordPress.

List audits for a project

GET/projects/{projectId}/audits

Every audit of the project, whichever way it was started: dashboard, API, WordPress or a schedule.

Path parameters

  • projectIdstringrequired

Query parameters

  • limitintegeroptional

    Items per page, 1–100.

    1–100 · default 25

  • cursorstringoptional

    Pass nextCursor from the previous page to get the next one.

    at most 200 characters

  • siteIdstringoptional
  • kindstringoptional
curl https://semanticson.com/api/v1/projects/PROJECT_ID/audits \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A list object: { "object": "list", "data": [ … ], "hasMore": false, "nextCursor": null }. See pagination.

Errors use the standard error object.

Start an audit

POST/projects/{projectId}/audits

site audits check the pages a connected website synced (including drafts) and finish immediately. crawl audits run the Technical SEO Auditor on the live site as a tool run (returns 202 with the execution; the audit appears when it succeeds).

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • projectIdstringrequired

Request body

  • kindstringrequired

    One of: site, crawl

  • siteIdstringoptional

    Required for site audits unless the project has exactly one connected site

  • maxPagesstringoptional

    Crawl audits only

    One of: 25, 50, 100, 150

    default "50"

curl -X POST https://semanticson.com/api/v1/projects/PROJECT_ID/audits \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "site",
  "siteId": "cm1site…"
}'

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

Get an audit

GET/audits/{auditId}

Audit summary with counts by severity and status, and what changed since the previous audit of the same target.

Path parameters

  • auditIdstringrequired
curl https://semanticson.com/api/v1/audits/AUDIT_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

What changed since the previous audit

GET/audits/{auditId}/changes

Compares this audit with the previous audit of the same kind and target in the project: newIssues appeared since then, resolved were present before and are gone now (an issue is identified by URL and check). previous is null for the first audit.

Path parameters

  • auditIdstringrequired
curl https://semanticson.com/api/v1/audits/AUDIT_ID/changes \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

List issues in an audit

GET/audits/{auditId}/issues

Path parameters

  • auditIdstringrequired

Query parameters

  • limitintegeroptional

    Items per page, 1–100.

    1–100 · default 25

  • cursorstringoptional

    Pass nextCursor from the previous page to get the next one.

    at most 200 characters

  • severitystringoptional

    One of: critical, warning, notice

  • statusstringoptional

    One of: open, fixed, ignored

  • checkstringoptional
  • externalIdstringoptional

    Issues for one page of a connected site

  • urlstringoptional
curl https://semanticson.com/api/v1/audits/AUDIT_ID/issues \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A list object: { "object": "list", "data": [ … ], "hasMore": false, "nextCursor": null }. See pagination.

Errors use the standard error object.

Mark an issue fixed, ignored or open

PATCH/audits/{auditId}/issues/{issueId}

Issue status is shared everywhere: a status set here shows in the dashboard and in WordPress, and ignored issues stay ignored in later site audits.

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • auditIdstringrequired
  • issueIdstringrequired

Request body

  • statusstringrequired

    One of: open, fixed, ignored

curl -X PATCH https://semanticson.com/api/v1/audits/AUDIT_ID/issues/ISSUE_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "status": "ignored"
}'

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

List audit schedules

GET/projects/{projectId}/audit-schedules

Path parameters

  • projectIdstringrequired
curl https://semanticson.com/api/v1/projects/PROJECT_ID/audit-schedules \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

Schedule recurring audits

POST/projects/{projectId}/audit-schedules

Runs an audit daily, weekly or monthly. Each run is compared with the previous one, and you are notified of new and resolved issues (also sent as the audit.completed webhook).

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • projectIdstringrequired

Request body

  • kindstringrequired

    One of: site, crawl

  • cadencestringrequired

    One of: daily, weekly, monthly

  • siteIdstringoptional
curl -X POST https://semanticson.com/api/v1/projects/PROJECT_ID/audit-schedules \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "kind": "site",
  "cadence": "weekly",
  "siteId": "cm1site…"
}'

Response · 201 Created

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

Update an audit schedule

PATCH/audit-schedules/{scheduleId}

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • scheduleIdstringrequired

Request body

  • cadencestringoptional

    One of: daily, weekly, monthly

  • enabledbooleanoptional
curl -X PATCH https://semanticson.com/api/v1/audit-schedules/SCHEDULE_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "cadence": "monthly",
  "enabled": true
}'

Response · 200 OK

A JSON object. Objects carry an object type and an id; timestamps are ISO 8601 strings.

Errors use the standard error object.

Delete an audit schedule

DELETE/audit-schedules/{scheduleId}

Accepts an Idempotency-Key header for safe retries.

Path parameters

  • scheduleIdstringrequired
curl -X DELETE https://semanticson.com/api/v1/audit-schedules/SCHEDULE_ID \
  -H "Authorization: Bearer $SEMANTICSON_API_KEY"

Response · 204 No Content

Success returns an empty body (204) or a small confirmation object.

Errors use the standard error object.