# DocScout agent-ready badge

> A small SVG badge that shows your docs' DocScout agent-ready score (0–100), for your docs site, README or developer portal. It's free.

## Get yours

1. Run the free audit on your docs URL at https://getdocscout.com/.
2. Under the results, open **Add this badge to your docs** and copy the Markdown, HTML or MDX snippet. Sites in the [Agent-Readiness Index](https://getdocscout.com/index-2026) also have a snippet in their row.

## URL format

- By docs URL: `https://getdocscout.com/badge/<url-encoded docs URL>.svg`, e.g. `https://getdocscout.com/badge/https%3A%2F%2Fdocs.stripe.com%2Fapi.svg`
- By Index slug: `https://getdocscout.com/badge/stripe.svg`
- Alternative: `https://getdocscout.com/badge/score.svg?url=https://docs.example.com`
- Optional: `?style=flat-square`

Markdown:

```markdown
[![DocScout agent-ready score](https://getdocscout.com/badge/stripe.svg)](https://getdocscout.com/index-2026#stripe)
```

HTML:

```html
<a href="https://getdocscout.com/index-2026#stripe"><img src="https://getdocscout.com/badge/stripe.svg" alt="DocScout agent-ready score" height="20"></a>
```

MDX:

```jsx
<a href="https://getdocscout.com/index-2026#stripe"><img src="https://getdocscout.com/badge/stripe.svg" alt="DocScout agent-ready score" height={20} /></a>
```

## How it works

- The badge shows the score from your **latest audit**. It never starts an audit, so viewing it costs nothing and can't be used to trigger scans.
- Colors: green for 80 and up, amber for 60–79, red below 60. Sites without an audit show a grey **not audited** badge.
- Responses are cached for 1 hour (`Cache-Control: public, max-age=3600`). To update your score, re-run the free audit, and the badge picks up the new result within the hour.
- The badge links to your row in the Index, or to your cached audit.
