Put a no in your own app
The machine's random excuses come from no-as-a-service, a free, open-source API with exactly one job and zero interest in saying yes.
The endpoint
One URL. No key, no sign-up, no small print about "enterprise tiers."
GET https://naas.isalman.dev/no
It answers with a little JSON, every time:
{ "reason": "I'm busy rearranging my sock drawer by color and mood." }Examples
From the command line
curl https://naas.isalman.dev/no
JavaScript
const res = await fetch('https://naas.isalman.dev/no');
const { reason } = await res.json();
console.log(reason);
Python
import requests
reason = requests.get('https://naas.isalman.dev/no').json()['reason']
print(reason)
The rules
- Rate limit: 120 requests per minute per IP address. If you need more no than that, consider whether you need a nap.
- CORS: open, so you can call it straight from a browser.
- License: MIT. The project and its list of reasons live on GitHub, where you can also host your own copy.
- Credit: no-as-a-service is built and maintained by hotheadhacker. The No Machine is a fan, not the owner. We keep a copy of its excuse list as an offline backup, under its MIT license.
Things people build with it
- A Slack command that answers
/can-youwith a polite refusal. - A 404 page that apologizes in a new way every time.
- Test data for rejection flows, error states, and "access denied" screens.
- A smart doorbell that politely declines solicitors. (Please let us know if you build this.)
Built something? Tell us about it. We will say it's great, which is the closest this site gets to yes.