Menu
All tools/ Developers & API
Bare for developers

Build on a clearer picture.

Use the bounded audit API or share a measured result with a dated badge.

Free to useNo signupMade for a better web.
Available now

One URL. Your latest public score.

Embed a compact 20 px SVG at a stable hostname URL. It reads the latest qualifying public ranking snapshot and never launches a scan.

GET/badge/{hostname}.svg
  1. Run an audit with the optional public rankings choice selected.
  2. Expand Share your Bare Score below the report toolbar.
  3. Copy the HTML embed code into your site.
Open Website Audit

Replace the placeholder with your hostname, for example bare.io. The report panel creates the complete code for you. Add ?style=card for a larger dated card. UUID badges still show a single saved report.

Version 1

A small, predictable API.

Start a one-page mobile audit, then read its report. API calls require a bearer key; reads and scans have separate limits.

POST/api/v1/audits
GET/api/v1/reports/{id}
View OpenAPI contract

Send requests from a server over HTTPS. Browser cross-origin requests are not supported.

Copy and embed

A small mark of progress.

This example uses bare.io. Replace it with your own publicly listed hostname. A score appears only while an eligible opted-in snapshot exists.

HTML · stable hostname badge
<a href="https://bare.io/rankings" target="_blank" rel="noopener noreferrer">
  <img src="https://bare.io/badge/bare.io.svg?style=compact" alt="Latest public Bare Audit score for bare.io" width="200" height="20" loading="lazy" referrerpolicy="no-referrer">
</a>
Hosting data explorer

Provider counts, kept in context.

Explore cloud companies or call GET /api/hosting-overview?role=cloud. Optional filters: role (hosting, cloud, network, cdn), q (provider name, up to 80 characters), and page. Returns 24 rows per page, active public opt-in site counts, confidence counts, last-observed dates and profile links. Reviewed providers with no observations remain visible with zero sites.

cURL · hosting data
curl "https://bare.io/api/hosting-overview?role=cloud&q=DigitalOcean"

No API key or live scan. Uses the shared directory read limits: 60/minute/IP and 10,000/day. Counts describe our current opt-in sample. Roles and providers can overlap, so do not add totals or treat percentages as market share. Sample percentages are hidden below 100 observed sites in the selected role. No history or country estimates are returned. OpenAPI contract ↗

Verified company services

Company facts, with sources.

Browse the company directory or read GET /api/provider-companies. No key required. This returns reviewed brand/service descriptions, official source links, confidence, review dates and separate automatic source-check status. It never proves which websites use that company.

cURL · company sources
curl --get https://bare.io/api/provider-companies --data-urlencode "q=hosting" --data-urlencode "page=1"

Optional filters: q (name, domain or alias; 80 characters), kind (hosting, cloud, platform, cdn, specialist), confidence (high, medium), and positive page. Up to 24 profiles per page. Shares the public directory limits of 60 reads/IP/minute and 10,000 reads/service/UTC day. Invalid filters return 400; 429 includes Retry-After. Reads make no upstream request.

sourceStatusAvailable: false means monitoring storage could not be read; it is not a successful source check. not-monitored means a profile uses its saved source review without automatic fetches. Automatic matched confirms expected page terms only. Published descriptions and identity confidence come from a separate dated review. OpenAPI contract ↗

Dated research

The reviewed pilot, as open data.

The website directory also includes a separate Bare research projection. Download GET /data/providers-snapshot.json without a key. It contains the current eligible Majestic-seed research records, original dates, separate provider layers, confidence, source credits and CC BY-SA 4.0 reuse terms. No live scan or paid lookup runs. This download excludes visitor listings; existing directory APIs below retain their opt-in-only scope. Methodology and licence ↗.

cURL · research snapshot
curl https://bare.io/data/providers-snapshot.json
Public provider data

A directory with evidence.

Browse website observations. Explore hosts and other provider roles at the Companies directory. These are separate roles, not interchangeable hosting claims. Each listing includes observation and expiry dates, confidence and source links. This is a growing sample, not an exhaustive customer list or market-share dataset.

GET/api/hosting-directory

No API key is needed for this read-only endpoint. It reads saved public entries and never starts a scan. Use role (hosting, cloud, network or cdn), provider (exact name), q (hostname/provider search) and page. Pages contain up to 24 entries. Limits: 60 requests per minute per IP and 10,000 reads per UTC day across the service. HTTP 429 includes Retry-After; HTTP 503 means unavailable, not an empty dataset.

cURL · public provider directory
curl --get https://bare.io/api/hosting-directory \
  --data-urlencode "role=cloud" \
  --data-urlencode "provider=DigitalOcean" \
  --data-urlencode "page=1"
Node.js · no secret required
const query = new URLSearchParams({ role: "cloud", provider: "Microsoft Azure" });
const response = await fetch(`https://bare.io/api/hosting-directory?${query}`, {
  signal: AbortSignal.timeout(10000)
});
if (!response.ok) throw new Error(`Directory unavailable: ${response.status}`);
const { entries, hasMore } = await response.json();
for (const site of entries) console.log(site.hostname, site.observedAt, site.layers);

Send requests from your server over HTTPS; cross-origin browser access is not enabled. The OpenAPI contract describes every field. Operational source status and maintenance are restricted to the authorized backend. An empty directory means no matching active opt-in entries.

Listings last 31 days unless withdrawn. Scheduled rechecks update evidence without extending the listing. Cache downstream data only briefly and revisit expiry/removal: sources and consent can change. IPinfo-derived network data is attributed to IPinfo Lite under CC BY-SA 4.0; preserve attribution and applicable source-license requirements. The separate /api/hosting-providers endpoint is our reviewed brand-rule catalog, not a list of hosted websites.

Developer access

Manage an API key

Server API

Create a key or paste one you already have. We show a new secret once and keep it only in this page’s memory. Lost keys cannot be recovered; they expire after 30 days. Create a replacement yourself, subject to issuance limits.

Inspect or revoke an existing key

API guide

Start once. Read until ready.

Use the key from your server’s environment. The secret is shown only once when created; an existing key cannot be recovered. Keys expire after 30 days.

Create an API key

Key creation needs no bearer key. The response contains a secret exactly once. The example response below is illustrative; its placeholder ID and key are not real credentials.

curl -X POST https://bare.io/api/v1/keys \
  -H "Content-Type: application/json" \
  -d '{}'
{
  "key": "bare_live_<64 lowercase hex characters>",
  "keyInfo": {
    "id": "00000000-0000-4000-8000-000000000001",
    "prefix": "bare_live_01234567",
    "createdAt": "2026-10-16T12:00:00Z",
    "expiresAt": "2026-11-15T12:00:00Z"
  },
  "limits": {
    "requestsPerMinute": 60,
    "serviceRequestsPerDay": 10000,
    "scansPerMinute": 3,
    "scansPerHour": 10,
    "scansPerDay": 20
  }
}

Keep the returned key in a server-side secret store. If creation times out or its response is lost, a key may have been created but its secret cannot be recovered. Do not automatically retry.

Create an audit

curl https://bare.io/api/v1/audits \
  -H "Authorization: Bearer $BARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/"}'

The request waits for the audit to finish; allow your client roughly 60 seconds. A 202 Accepted with an ID and Retry-After means an existing in-flight scan was reused, not that a background job was queued. Read that report after the indicated delay. Reads never start or restart a scan:

curl https://bare.io/api/v1/reports/$REPORT_ID \
  -H "Authorization: Bearer $BARE_API_KEY"

Responses include the report ID, measurement and expiry timestamps, whether the result was cached, a mobile single-page profile, score summary, and report data. Missing measurements remain unavailable. New metrics may include an optional availability reason: not-applicable, could-not-measure, not-published, or not-supported. Older reports may omit it.

JavaScript (Node.js)

Keep BARE_API_KEY in the server environment. The audit request has a 60-second timeout. If it reuses an in-flight scan, this example makes up to three delayed reads and honors each response’s Retry-After.

const key = process.env.BARE_API_KEY;
if (!key) throw new Error("Set BARE_API_KEY in the server environment");
const headers = { Authorization: `Bearer ${key}`, "Content-Type": "application/json" };

let response = await fetch("https://bare.io/api/v1/audits", {
  method: "POST", headers, signal: AbortSignal.timeout(60_000),
  body: JSON.stringify({ url: "https://example.com/" }),
});
if (!response.ok && response.status !== 202) throw new Error(`Audit failed: ${response.status}`);
let result = await response.json();
for (let reads = 0; response.status === 202 && reads < 3; reads++) {
  const seconds = Number(response.headers.get("Retry-After") ?? result.retryAfter ?? 4);
  await new Promise(resolve => setTimeout(resolve, seconds * 1000));
  response = await fetch(`https://bare.io/api/v1/reports/${encodeURIComponent(result.id)}`, {
    headers: { Authorization: `Bearer ${key}` }, signal: AbortSignal.timeout(15_000),
  });
  if (!response.ok && response.status !== 202) throw new Error(`Report read failed: ${response.status}`);
  result = await response.json();
}
console.log(result.status, result.id);

Do not log the key or include it in client-side code. The example stops after three pending reads; if it is still pending, stop and try a later read after the newest Retry-After interval. Do not resubmit the audit just to poll it.

Handle rate limits

429 Too Many Requests includes Retry-After. Wait at least that long, then use bounded exponential backoff with jitter for later attempts. The shared API request cap resets at midnight UTC. Do not retry key creation automatically: a successful response may have been lost, and the secret cannot be recovered.

const retryAfter = Number(response.headers.get("Retry-After") ?? 60);
// For a retryable request, wait at least Retry-After, then add bounded backoff and jitter.

Inspect and revoke

curl https://bare.io/api/v1/key \
  -H "Authorization: Bearer $BARE_API_KEY"

curl -X DELETE https://bare.io/api/v1/key \
  -H "Authorization: Bearer $BARE_API_KEY"

Revocation is immediate. Lost keys cannot be recovered; create a replacement and securely update your server secret.

Errors

HTTPMeaningNext step
400Malformed JSON, HTTP instead of HTTPS, or query parametersCheck the JSON body and send key/options in headers/body.
401Missing, invalid, expired, or revoked bearer keyCheck the Authorization header or create a replacement.
403Request origin is not allowedCall from your server, not a third-party browser page.
404Report unavailable or expiredCheck the ID; reports expire after seven days.
413 / 415Request body too large or wrong content typeKeep JSON under 4 KiB and send application/json.
422URL or option could not be acceptedReview the error code and submitted values.
429A key, IP, or shared service limit was reachedHonor Retry-After; avoid immediate retry loops.
502 / 503Temporary upstream or service failureRetry a read cautiously; a reserved scan still counts.

Errors use a compact JSON envelope with a machine-readable code. Exact details depend on where validation or a shared limit rejects the request.

Limits and data lifetime

LimitAllowanceScope
API requests60 per fixed UTC minutePer IP and, after authentication, per key. Includes reads and failed requests.
Shared API requests10,000 per UTC dayService-wide across every v1 endpoint and caller. Counts key creation/management, invalid authentication, reads, and cache hits. Independent of the new-scan budget.
New scans3/minute, 10/hour, 20/UTC dayPer key and IP; website/API share IP scan usage.
Shared scan capacity500/day, 4 active, 15-second hostname cooldownService-wide.
Key issuance1/IP/minute, 2/IP/UTC day, 100/dayIP and shared service; revocations still count.
Cache and reports24-hour normal cache; 5-minute refresh reuse; 7-day report accessRefresh is explicit. Reports are readable by anyone with the report link.

Reserved scans count even if upstream work fails. Reads never launch scans. API use does not publish Rankings. Avoid submitting secrets in the URL being audited.

Small by design

Reads stay reads.

Loading or embedding a badge never launches a scan. Hostname badges are cached for up to five minutes; report-ID badges for up to one hour. Both are bounded by the source snapshot’s expiry. There is no paid badge API or tracking cookie.

What the grade means
The equal-weight mean of mobile Performance, SEO and Accessibility for one page. It is not a whole-site or security certification.
A stable URL, bounded retention
Hostname badges outlive the seven-day report link and use public ranking entries for up to 31 days. A newer qualifying opted-in scan updates the same URL. No current entry means “Not currently listed”; no score is kept forever or inferred. UUID badges expire with their report.
Missing measurements
Without all three scores, the badge says “Score unavailable”. A missing or expired report never keeps displaying an old grade.
Sharing and privacy
Hostname embeds link to Rankings and use only explicit public entries. They do not verify website ownership. Saved-report embeds link to a report readable by anyone with its URL, separately from Rankings. Badge requests reach our hosting service; the supplied embed omits the referrer.
API boundaries

Useful access. Bounded work.

Revocable keys

Keys are bearer credentials, shown once, and expire after 30 days. Only a key holder can inspect or revoke one.

Explicit freshness

Responses distinguish measurement time from response time. Normal reuse is up to 24 hours; an explicit refresh may reuse a scan from the last five minutes.

Clear outcomes

Pending scans, partial results, unavailable metrics and rate limits have distinct responses. Reading a report does not start another audit or publish a ranking.

The existing website scan endpoint remains an internal interface. No CLI, GitHub Action or subscription is provided. Bounded provider-directory maintenance is separate from full audits.

A LITTLE MORE PROGRESS

One detail better.
What’s next?

Explore all tools