Skip to content
RankThat

Audit API & Lead Widget

Turn your website into a lead machine with free SEO audits

Paste two lines of HTML into any page. Visitors enter their website and email, see their score in about two minutes and get a PDF report with your logo, colors and call to action. You get their details straight away.

Included on Professional and Enterprise.

Site health

Audited today, 214 pages
85
  • Errors4
  • Warnings27
  • Notices61
Titles too long · 38 pagesFix with AI
Links pointing at redirects · 12Fix

01

The lead widget

A free audit form for your own website, styled with your color and wording. It only runs on the domains you allow, has a daily limit you set, and filters out bots.

  • Works on WordPress (a Custom HTML block), Webflow, Wix or any HTML page
  • Optional phone and company fields
  • The PDF is emailed to the visitor, and you get a new-lead alert

02

Reports with your name on them

Every audit PDF carries your agency name, logo, colors, contact details and a closing page with your pitch and booking button. Share links open the PDF without a login, so you can send one to a prospect before a sales call.

  • Your logo on the cover and every page
  • A closing page with your call to action
  • Shareable PDF links that need no login

03

The Audit API

Start mini or full audits from your own systems, check progress, download the PDF and get a signed webhook when each one finishes. Send the lead and your own reference with the request, and they come back on the webhook.

  • Secret keys for servers, Zapier, Make or your CRM
  • Signed webhooks for completed and failed audits
  • Limits per key: audit types, pages and audits per day

04

The Data API

The same secret keys read your RankThat data: projects, rankings, Search Console clicks and top searches, audits, leads and AI crawler visits, as plain rows or CSV. Pull them into Google Sheets or Looker Studio, or into your own scripts and dashboards.

  • Read-only: nothing changes on your sites
  • A key sees only the sites its owner can open
  • Google Sheets, Looker Studio or CSV

How the RankThat audit widget and Audit API work

Most agency websites ask visitors to “book a call” before they’ve seen any value. A free SEO audit flips that: the visitor gets something useful in two minutes, and you get a lead who already knows what is wrong with their site. RankThat gives you two ways to run those audits: a widget you paste into your website, and an API for your own systems.

Both run the same audit engine as the rest of RankThat, so a prospect’s report uses the same 100+ checks, plain-English explanations and scoring that your clients see every month.

Adding the widget to your website

  1. In RankThat, open Settings › Agency, tab API keys & widget, and create a public key.
  2. List the websites the widget may run on, for example youragency.com, *.youragency.com. The key does nothing anywhere else, so nobody can copy it onto their own site.
  3. Set a daily limit and the most pages an audit may check (up to 50 for the widget).
  4. Copy the two lines of HTML into any page. On WordPress, that’s a Custom HTML block.

The form asks for a website address and an email, plus a name, company and, if you want it, a phone number. You can change the title, the subtitle, the button text, the color and the note about the emailed report, all with attributes on the same two lines.

When a visitor submits the form, the audit runs on the spot. They see a progress bar, then their score, grade and top issues. The full PDF report is emailed to them if you turn that on, and you get an email with their details and a link to the report. A hidden field catches most form bots before an audit is ever started.

Reports with your name on them

On the Branding tab of Settings › Agency you set your agency name, logo, two brand colors, website, email, phone and address. Every audit PDF then carries your logo on the cover and on each page, and ends with a closing page that has your pitch paragraph and a button, such as “Book a free strategy call” linking to your calendar.

Each audit also gets a share link: an unguessable address that opens the PDF without a login. Share links are a quick way to send a prospect their report before a sales call, or to drop one into a proposal. They are marked so search engines don’t index them.

Branding changes apply to old audits too: the next time a PDF is opened, it is built with your current logo and colors.

Running audits from your own systems

The Audit API is for servers, CRMs and automation tools like Zapier or Make. Create a secret key (never put a secret key in browser code) and you can:

Call What it does
Start an audit Mini or full, with the page limit, the lead’s details and your own reference
Check an audit Progress while it runs; score, grade and every issue when it’s done
List audits The latest audits run with that key
Download the PDF The branded report, ready to attach or store

When an audit finishes or fails, RankThat sends a webhook to the address you choose. Each one is signed with a secret only you and RankThat know, so your system can check that it really came from RankThat. The lead’s details and your reference come back on the webhook, which makes it easy to match the audit to a deal in your CRM.

Some ways agencies use it:

  • New lead in the CRM: start a mini audit for the lead’s website, and attach the PDF to the deal when the webhook arrives.
  • Sales call prep: run a full audit before the call and walk through the report together.
  • Your own audit page: build a custom form on your site that calls your server, which calls the API.

The Data API: your numbers in Sheets, Looker Studio or scripts

The same secret keys also open a read-only Data API, built for dashboards. A key sees the projects its owner is a member of, and every call returns rows, or a CSV file with ?format=csv:

Call What comes back
Projects Each project’s id, name and domain
Rankings One row per keyword per check, for a date range and device
Search Console Clicks, impressions, click rate and position per day, or a month’s top searches or pages
Audits Audit history: score, grade and issues
Leads Leads per day, by channel and kind
AI crawler visits Visits per day, by bot

Dates default to the last 90 days. Agencies use it to pull every client’s clicks and leads into one Google Sheet, to build a Looker Studio dashboard, or to feed their own reporting scripts. The Developer docs tab in Settings › Agency lists each call.

Limits and safety

Every key has its own limits: which audit types it may run, the most pages per audit, and the most audits per 24 hours. No more than five audits run at once per key. Widget and API audits count toward the monthly audits in your plan, so pick a daily limit your plan can cover. If you go over, the widget shows visitors a polite “try again later” message and never mentions your plan.

You can edit a key’s limits at any time, rotate a webhook secret, or revoke a key, which stops it working immediately.

What it doesn’t do

  • It isn’t a keyword or backlink data API. The Data API is read-only and covers projects, rankings, Search Console, audits, leads and AI crawler visits. Keyword research, backlinks and monthly reports go through the AI agent connector instead, with an API key, for custom agents, n8n or Make. Nothing in the Data API can change a site.
  • The widget runs mini audits only. Full site audits run from the API or the app.
  • Sites with strict bot protection may block the audit, the same as any RankThat audit. RankThatBot identifies itself honestly and never tries to get around firewalls.

The widget, the Audit API, the Data API and white-label PDFs are included on the Professional and Enterprise plans. On Starter you can set up your branding now, and it switches on when you upgrade.

Questions, answered

Can someone copy my widget onto their own site?

No. Each widget key only works on the websites you list, and it has a daily audit limit you choose.

Is there a data API?

Yes, a read-only one on the same keys: projects, rankings, Search Console, audits, leads and AI crawler visits as rows or CSV. It doesn’t include keyword research or backlink data. For those, use the AI agent connector with an API key.

Do audits from the widget use my plan allowance?

Yes. Widget and API audits count toward your monthly audits, so set a daily limit that fits your plan.

Do this month’s SEO in an afternoon.