Get started
Authentication
One bearer key for every tool.
Send your API key as a bearer token in the Authorization header of every request:
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
Create keys under API keys in your account. A key is shown once, when you create it, so store it somewhere safe. Lost a key? Revoke it and create a new one.
Revoking a key takes effect immediately. Requests already running finish; the next one gets 401 UNAUTHORIZED.
Team keys
Invite people from Team to share your plan's credits. Each person gets their own key, and the activity log shows which key made each request, so you can revoke one key without affecting the others.
Keep keys on your server. Never put a key in browser JavaScript or a mobile app, where anyone can read it. To call from a front end, send the request through your own server.