Audit API

Run a website audit from your own code. One endpoint, one header, JSON in and JSON out. It runs the same engine as the web tool, with the same rule: every value is measured against the live site, and anything that could not be measured comes back null rather than as a guess.

Authentication

Create a key in your dashboard and send it as a bearer token. Keys are shown once at creation; only a hash is stored, so a lost key must be revoked and replaced.

Authorization: Bearer rw_live_...

Run an audit

curl -X POST https://audit.roamwork.in/api/v1/audit \
  -H "Authorization: Bearer rw_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "example.com"}'

Response

{
  "success": true,
  "creditsRemaining": 749,
  "audit": {
    "domain": "example.com",
    "resolved_url": "https://example.com/",
    "reachable": true,
    "signals_passed": 12,
    "signals_total": 17,
    "signals": [ { "name": "...", "status": true, "detail": "..." } ],
    "pagespeed": {
      "mobile": {
        "available": true,
        "scores": { "performance": 71, "accessibility": 88,
                    "bestPractices": 96, "seo": 92 }
      }
    }
  }
}

When a measurement could not be taken — PageSpeed timing out, for instance — pagespeed.mobile.available is false and carries the reason. No estimated score is substituted.

Errors

StatusMeaning
400No url in the body, or the JSON was malformed.
401Key missing, unrecognised, or revoked.
402Out of credits. Distinct from 429 on purpose — this one is fixed by buying, not by waiting.
429Too many requests on this key. Retry after the window in the header.
502Our side failed. Your credit is returned automatically — creditsRefunded confirms it.

What a call costs

One credit per call. Credits do not expire and there is no subscription, so a quiet month costs nothing.

PackPriceCallsPer call
API Trial₹1.00100₹0.01
API Studio₹1.00750₹0.00
API Agency₹1.003,000₹0.00

Notes