-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference
github-actions[bot] edited this page Jun 26, 2026
·
2 revisions
Base URL depends on your deployment. Demo playground: http://localhost:3456.
| Header | Required | Description |
|---|---|---|
x-tenant-id |
Yes (scoped routes) | Tenant identifier |
x-project-id |
Yes (scoped routes) | Project identifier |
content-type |
POST/PUT | application/json |
accept |
Optional |
text/markdown on GET / for markdown negotiation |
| Method | Path | Description |
|---|---|---|
| GET | /projects |
List projects |
| POST | /projects |
Create project |
| GET | /projects/:id |
Get project |
| Method | Path | Description |
|---|---|---|
| GET | /keywords |
List keywords |
| POST | /keywords |
Create keyword |
| GET | /keywords/:id |
Get keyword |
| DELETE | /keywords/:id |
Delete keyword |
Create body:
{
"text": "best seo tools",
"country": "us",
"device": "desktop",
"tags": []
}| Method | Path | Description |
|---|---|---|
| POST | /snapshots |
Append snapshot (append-only) |
| GET | /snapshots?keywordId=&from=&to= |
Query by date range |
| Method | Path | Description |
|---|---|---|
| POST | /audits |
Create audit with explicit score/checks |
| GET | /audits |
List audits |
| GET | /audits/:id |
Get audit |
| POST | /collect |
Submit page signals → scored audit (requires siteFeatures.collector) |
| Method | Path | Description |
|---|---|---|
| POST | /scan |
Fetch live URL → signals + score + recommendations |
| POST | /meta/generate |
Generate meta tags from title/content/keyword |
| POST | /schema/generate |
Generate Schema.org JSON-LD structured data |
Scan body:
{ "url": "https://example.com" }Meta generate body:
{
"title": "How to choose SEO tools",
"content": "Guide text…",
"targetKeyword": "seo tools",
"url": "https://example.com/seo-tools",
"siteName": "My Site"
}Schema generate body (discriminated on type):
{
"type": "FAQPage",
"questions": [
{ "question": "What is RankMySEO?", "answer": "An open-source SEO toolkit." }
]
}Supported types: Article, Product, FAQPage, BreadcrumbList, Organization. See Schema-Generator.
| Method | Path | Description |
|---|---|---|
| GET | /blog |
List posts |
| POST | /blog |
Create post (auto meta/slug when omitted) |
| GET | /blog/:id |
Get post + recommendations |
| PUT | /blog/:id |
Update post |
| DELETE | /blog/:id |
Delete post |
Returns 403 when blog is disabled in config.
| Method | Path | Description |
|---|---|---|
| POST | /reports |
Build rollup report |
| GET | /reports |
List reports |
| GET | /reports/:id |
Get report |
| Method | Path | Description |
|---|---|---|
| GET | /dashboard |
Get widget layout |
| PUT | /dashboard |
Upsert widget layout |
| Method | Path | Description |
|---|---|---|
| POST | /agent/chat |
Stream agent response (requires agentModel in handler) |
| Method | Path | Description |
|---|---|---|
| GET | /sitemap.xml |
Generated sitemap (requires siteFeatures.sitemap) |
| GET | /llms.txt |
Agent-readable site summary |
| GET | / |
HTML or markdown (Accept negotiation) |
The audit engine checks:
| Rule ID | Severity | Check |
|---|---|---|
title-length |
error | Title 30–60 chars |
meta-description |
warning | Description 70–160 chars |
canonical |
warning | Canonical URL present |
single-h1 |
error | Exactly one H1 |
og-tags |
info | Open Graph tags |
json-ld |
info | JSON-LD schema |
cwv-lcp |
warning | LCP ≤ 2.5s |
cwv-cls |
warning | CLS ≤ 0.1 |
Score = percentage of passed checks (rounded).