Developers
REST API reference
The Varf REST API is the JSON API behind the Varf app. Anything you can do in the app, you can do with it: list workspaces, read search performance, decide recommendations, follow results, manage keywords and publish content.
Overview
Base address: https://api.varf.io. Endpoints sit at the root, with no version segment.
Requests with a body send Content-Type: application/json, up to 1 MB. Responses are JSON; 204 responses have no body.
Times are ISO 8601 in UTC; calendar dates are YYYY-MM-DD. Daily and monthly quotas follow the Türkiye calendar (Europe/Istanbul).
Most endpoints live under /workspaces/:ws, where :ws is the workspace’s short name (slug) from GET /workspaces.
Browsers may call the API only from app.varf.io. Call it from your server or your scripts.
Authentication
The API uses the same session as the Varf app: a signed cookie set when you sign in. There are no API keys. To connect an AI assistant, use the MCP server, which signs in with OAuth.
- Sign in with
POST /api/auth/sign-in/emailand your email and password. The account’s email must be verified. - Keep the session cookie from
Set-Cookieexactly as it is (a cookie jar does this) and send it with every request. - Sign out with
POST /api/auth/sign-out.
curl -c varf.jar -H 'content-type: application/json' -H 'origin: https://app.varf.io' \
-d '{"email":"you@example.com","password":"…"}' \
https://api.varf.io/api/auth/sign-in/email
curl -b varf.jar https://api.varf.io/workspaces
curl -b varf.jar -X POST -H 'origin: https://app.varf.io' https://api.varf.io/api/auth/sign-outCalls to /api/auth/* that send the cookie and change something, such as signing out, need the header Origin: https://app.varf.io; the example sends it with every call. Varf’s own endpoints don’t check it.
A session lasts 7 days and is extended while you use it. Changing your password ends every session.
Errors
An error returns a code, and sometimes parameters, but no sentence: your code decides what to show.
HTTP/1.1 402 Payment Required
content-type: application/json
{ "code": "quota.exceeded", "params": { "resource": "keywords", "limit": 250, "used": 250 } }Validation errors return 400 with the code of the first problem, or request.invalid. Malformed JSON, bodies over 1 MB and unknown routes return the framework’s standard body with statusCode and message.
| Status | Meaning | Example codes |
|---|---|---|
400 | The request is invalid. | request.invalid, domain.invalid, reason.required |
401 | You aren’t signed in, or the session has expired. | auth.required |
402 | The plan has expired, or a quota is used up. | plan.expired, quota.exceeded |
403 | Your role doesn’t allow it. | role.view_only, role.manager_only, owner.only |
404 | Not found, or you aren’t a member of the workspace. | workspace.not_found, rec.not_found |
409 | It conflicts with the current state. | rec.conflict, gsc.not_connected, crawl.running |
422 | The publishing target refused the request. | connector.auth_failed, connector.rejected |
429 | Too many requests, or a daily limit is reached. | quota.exceeded, crawl.too_soon |
503 | Something Varf depends on is temporarily unavailable. | connector.unreachable, keywords.unavailable |
Roles and access
Every workspace member has a role. The endpoint tables show the minimum role each endpoint needs.
| Role | Can |
|---|---|
view | Read everything in the workspace. |
edit | Also decide recommendations, have Varf write fixes, start crawls and manage tracked keywords, competitors, content and Glas questions. |
manage | Also change the workspace’s settings and autonomy, connect Search Console, manage the team and the publishing connector, and delete the workspace. |
The owner is the admin whose plan the workspace uses. Only the owner can transfer ownership.
A workspace you aren’t a member of returns 404 workspace.not_found, so its existence isn’t revealed.
When the owner’s plan has expired, the workspace is read-only: GET and DELETE still work, other methods return 402 plan.expired.
Limits
Sign-in endpoints are rate-limited per IP: 5 sign-ins and 3 sign-ups a minute. Going over returns 429 with an X-Retry-After header.
Varf’s own endpoints have no request-rate limit; your plan’s quotas apply instead: workspaces, members, tracked keywords, AI questions, monthly drafts, monthly written fixes and daily keyword lookups. GET /workspaces/:ws/usage shows what is used and what is left.
Lists come whole or capped, for example the top 200 queries. Only crawl findings are paged, 50 per page.
Endpoints
Paths are relative to https://api.varf.io. Role is the minimum workspace role; session means any signed-in user, and public needs no sign-in.
Workspaces
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | session | Your workspaces, including those you were invited to, oldest first. |
| POST | / | session | Create a workspace for a domain. You become its owner, and the first crawl starts. |
| GET | / | view | One workspace: name, domain, your role, Search Console property, autonomy and plan access. |
| PATCH | / | manage | Change the name, the domain or the autonomy level. |
| DELETE | / | manage | Delete the workspace and all its data. Irreversible; confirm with the slug. |
Search Console
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Search Console properties your linked Google accounts can see, matching ones first. |
| PUT | / | manage | Connect a property and start the first sync. |
| DELETE | / | manage | Disconnect Search Console and remove its cached data. |
| GET | / | view | State of the sync: queued, running, done or failed, and the current step. |
Performance and pages
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Totals and daily series for both periods, rising and falling pages, position groups, devices, countries and the top 200 queries. |
| GET | / | view | The top 1,000 pages by clicks, each with its top query. |
| GET | / | view | One page: its daily series and up to 1,000 queries. |
Keywords and competitors
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Keywords the site ranks for: the top 200 by estimated traffic, with position, change and monthly searches. |
| GET | / | view | Up to 100 keyword ideas for a seed, with monthly searches, difficulty and intent. Uses the daily keyword quota. |
| GET | / | view | Tracked keywords with the latest position, the previous one and the change. |
| POST | / | edit | Track up to 100 keywords at once, optionally with a target page. |
| DELETE | / | edit | Stop tracking a keyword. Its history is kept. |
| GET | / | view | One keyword: 90 days of positions and the latest results page. |
| GET | / | view | Saved competitors, up to 10. |
| POST | / | edit | Save a competitor’s domain. |
| DELETE | / | edit | Remove a competitor. |
| GET | / | view | Saved and suggested competitors with shared keywords, traffic and average position. |
| GET | / | view | Keywords a competitor ranks for and you don’t (gap), or both of you do (shared). |
Recommendations
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Recommendations in a tab (pending, snoozed, applied or rejected), with counts per tab and type. |
| GET | / | view | One recommendation with its facts, score and risk. |
| GET | / | view | A recommendation’s fix: what the site has now and what it should have, part by part. Computed parts come from the crawl, robots.txt and Search Console; text parts appear once written. |
| POST | / | edit | Have Varf write the fix’s text: title and description options, headings and an FAQ, or a new page’s outline. Each call uses one of the month’s written fixes. |
| POST | / | edit | Approve, snooze, reject with a reason, or reopen. Every decision restarts the measurement. |
Results and Today
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Every approved page change and speed fix with its measurement, and a summary of verdicts. |
| GET | / | view | One result: before and after, expected clicks, the verdict and the early reading. |
| GET | / | view | The Today screen: 28-day totals, pages losing clicks, top recommendations, recent results and the sync state. |
Site health
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | State of the latest crawl. |
| POST | / | edit | Start a crawl now, at the earliest 30 minutes after the last one. |
| GET | / | view | Health score, issue counts per rule, sitemaps and bot access from the latest crawl. |
| GET | / | view | Page speed from the latest check: Chrome UX Report for the site and its key pages, with the weekly trend, or a lab test. null until the first check. |
| GET | / | view | Issues found, filtered by severity, rule or change, 50 per page. |
| GET | / | view | One crawled page with its details and issues. |
Content and topics
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Topic plans: seed keywords and their topic clusters. |
| POST | / | edit | Plan or refresh the topics for a seed keyword. Uses the daily keyword quota. |
| DELETE | / | edit | Delete a seed keyword’s topic plan. |
| POST | / | edit | Turn a topic into an article idea. |
| GET | / | view | Articles, most recently updated first, with counts per stage. |
| POST | / | edit | Create an article idea for a keyword. |
| GET | / | view | One article with its brief and current version. |
| PATCH | / | edit | Change the title or the keywords. |
| DELETE | / | edit | Delete an article and its versions. A published post stays on your site. |
| POST | / | edit | Move an article forward: brief, draft, review, approve (optionally scheduled), return or publish. |
| GET | / | view | An article’s versions, newest first. |
| POST | / | edit | Save edited content as a new version. |
| GET | / | view | One version with its content, sources and checks. |
| POST | / | edit | Restore an earlier version as a new one. |
| GET | / | view | This month’s AI spending across the owner’s workspaces, against the owner’s limit. |
Publishing connector
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | The publishing connector, without its password or secret. |
| PUT | / | manage | Save a WordPress or webhook connector. Varf tests it first. |
| DELETE | / | manage | Remove the connector. |
| POST | / | manage | Test the saved connector again. |
| GET | / | view | WordPress categories, for the publish options. |
Glas (AI visibility)
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | The Glas report: questions, answers per source, competitors and daily scores. |
| POST | / | edit | Add up to 100 questions, optionally with a topic. Measuring starts right away. |
| PATCH | / | edit | Change a question’s topic. |
| DELETE | / | edit | Delete a question and its answers. |
| POST | / | edit | Open a recommendation for a question where you are missing. |
| POST | / | edit | Suggested questions for your site. Not saved. |
| GET | / | view | The full text of one answer, with its model and citations. |
| GET | / | view | AI crawler access from robots.txt and llms.txt. Starts a new check if the last one is older than 26 hours. |
Team and invites
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Members and pending invites. |
| POST | / | manage | Invite someone by email with a role. The link is valid for 7 days. With also, they’re invited with the same role to other workspaces you manage. |
| POST | / | manage | Send an invite again, with a new link. |
| DELETE | / | manage | Revoke an invite. |
| PATCH | / | manage | Change a member’s role. |
| DELETE | / | manage | Remove a member. |
| POST | / | view | Leave the workspace. |
| POST | / | owner | Transfer ownership to another admin. |
| GET | / | public | What an invite is for: workspace, email, role and expiry. |
| POST | / | session | Accept an invite while signed in with the invited email address. |
Notifications, account and plans
| Method | Path | Role | What it does |
|---|---|---|---|
| GET | / | view | Your latest 50 notifications. |
| POST | / | view | Mark all notifications as read. |
| GET | / | view | The workspace’s plan, trial and quota usage. |
| GET | / | public | Plans and their limits. |
| GET | / | session | Your plan, trial and account-level usage. |
| GET | / | session | What deleting your account would delete, and what blocks it. |
Values
Some values are Turkish words. What they mean:
| Field | Values |
|---|---|
Recommendation.status | bekliyor pending · ertelendi snoozed · onaylandi approved · reddedildi rejected · gecersiz no longer valid |
recommendations?tab= | bekleyen pending · ertelenen snoozed · uygulanan applied · reddedilen rejected |
RecDecision.decision | onayla approve · ertele snooze for 7 days · reddet reject, with a reason · yeniden_ac reopen |
Recommendation.type | yeni_icerik new content · icerik_guncelle content update · meta meta tags · ic_link internal link · sema schema markup · teknik technical · yamyamlik competing pages · ai_gorunurluk AI visibility |
Recommendation.risk | dusuk low · orta medium · yuksek high |
Outcome.verdict | iyi good · notr neutral · kotu bad |
Result.state | olculuyor measuring · tamamlandi completed |
Content.stage | fikir idea · brief brief · taslak draft · inceleme review · onaylandi approved or scheduled · yayinda published |
SyncStatus.state, CrawlStatus.state, job.state | sirada queued · calisiyor running · bitti done · hata failed |
CrawlFinding.severity | kritik critical · uyari warning · bilgi info |
CrawlFinding.diff | yeni new · suruyor ongoing · duzeldi fixed |
Example
List the pending recommendations, then approve the first one. Its measurement starts the day after the decision.
curl -b varf.jar 'https://api.varf.io/workspaces/example/recommendations?tab=bekleyen'
{
"tab": "bekleyen",
"counts": { "bekleyen": 12, "ertelenen": 1, "uygulanan": 8, "reddedilen": 2 },
"types": { "meta": 5, "icerik_guncelle": 4, "teknik": 3 },
"items": [
{
"id": "0b9c6a1e-5f2d-4c8e-9a51-2f6d7e3b8c10",
"type": "meta",
"page": "https://example.com/espresso-machines",
"keyword": null,
"facts": {
"rule": "low_ctr",
"clicks": 41, "impressions": 5120, "position": 4.2, "ctr": 0.008,
"peerCtr": 0.031,
"topQueries": ["espresso machine", "best espresso machine", "espresso machine price"]
},
"score": 7.6,
"risk": "dusuk",
"auto": true,
"status": "bekliyor",
"rejectReason": null,
"snoozedUntil": null,
"decidedAt": null,
"date": "2026-11-20T03:12:44.000Z",
"measuredAt": "2026-11-27T03:05:10.000Z"
}
]
}curl -b varf.jar -X POST -H 'content-type: application/json' \
-d '{"decision":"onayla"}' \
https://api.varf.io/workspaces/example/recommendations/0b9c6a1e-5f2d-4c8e-9a51-2f6d7e3b8c10/decisionFrequently asked questions
Does Varf have an API?
Yes. The Varf REST API at https://api.varf.io is the same JSON API the Varf app uses, with endpoints for workspaces, search performance, recommendations, results, keywords, site health, content, Glas and teams.
How do I authenticate?
Sign in with your email and password at /api/auth/sign-in/email and send the session cookie with every request. There are no API keys.
Can I call the API from a browser app?
Only from app.varf.io. Other sites can’t call it from the browser; call it from your server or scripts.
How are errors reported?
With an HTTP status and a JSON body holding a code, such as auth.required or quota.exceeded, and sometimes parameters.
Put your site on the loop.
Add your site and connect Search Console. Varf starts collecting right away and shows its first findings as soon as the first sync finishes.

