Embed a quality badge
in one line
Add a dynamic, colour-coded Preprints.ai grade badge to any paper page. Badges update automatically. No API key required for display.
Colour-coded by grade
Green for strong evidence, amber for incomplete, red for concern. A single glance communicates trustworthiness.
Generate your embed code
Enter a DOI below to get the exact embed code for that paper. The badge will show "not assessed" if the paper hasn't been reviewed yet.
Add to your platform
Add badges to preprint server landing pages, reference manager plugins, journal submission portals, or search result listings.
HTML / Jinja / PHP templates
JavaScript — fetch grade programmatically
Python
What the colours mean
The badge colour maps directly to the integrity letter grade (A–E), not the composite A5–E1 score.
| Grade | Colour | Hex | Meaning |
|---|---|---|---|
| A | Deep green | #15803d | Compelling evidence — no integrity concerns |
| B | Green | #16a34a | Convincing evidence — minor gaps only |
| C | Amber | #d97706 | Incomplete evidence or design limitations |
| D | Red | #dc2626 | Inadequate evidence or serious concerns |
| E | Deep red | #b91c1c | Critical integrity or validity issues |
| Pending | Grey | #6b7280 | Assessment in progress or not yet submitted |
Badge endpoint reference
The badge endpoint is public — no API key required to display a badge. The SVG is cached for 24 hours and updated automatically when an assessment changes.
-
Returns
SVG image (
image/svg+xml) - Cache 7 days for assessed papers; 1 hour for "not assessed"
- Auth None required — badge display is public
-
X-Grade header
Response includes
X-Grade: B4for programmatic use -
DOI formats
Accepts raw DOIs,
arxiv:XXXX, full URLs
Badges reflect automated machine assessments. All grades require human expert review before acting on them. See Methodology for details on what is and isn't assessed.