Get started
Authentication
One bearer key for every tool.
Every request carries your key in an Authorization header:
import requestsr = requests.post( 'https://api.snoopscan.com/v1/scrape', headers={'Authorization': 'Bearer sk_YOUR_KEY'}, json={ 'url': 'https://example.com' },)print(r.json())
const r = await fetch('https://api.snoopscan.com/v1/scrape', { method: 'POST', headers: { Authorization: 'Bearer sk_YOUR_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ "url": "https://example.com" }),});console.log(await r.json());
curl -X POST https://api.snoopscan.com/v1/scrape \ -H 'Authorization: Bearer sk_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{ "url": "https://example.com"}'
Creating and revoking keys
Keys are made in API keys in your account. A key is shown once, when it is created — we store only a hash of it. We cannot show it to you again, and neither could anyone who got into our database. Lost a key? Revoke it and make another.
Revoking takes effect immediately. Requests already in flight finish; the next one gets 401 UNAUTHORIZED.
Team keys
Invite people from Team and everyone shares one allowance. Each person gets their own key, and every request in the activity log shows which key made it, so you can retire one person's key without disturbing anyone else's.
Keep keys server-side. A key in browser JavaScript or a mobile app is a key you have published. If you need to call from a front end, proxy through your own server.