Ready to add sound effects to your application? This guide walks you through the basics of the Lotsofsounds API — from getting your API key to downloading your first sound.
Before you start
No sign-up required
You can explore the API without an account. The sample endpoint is public.
curl https://api.lotsofsounds.com/api/v1/sounds/sampleconst res = await fetch("https://api.lotsofsounds.com/api/v1/sounds/sample");
const { data } = await res.json();import requests
res = requests.get("https://api.lotsofsounds.com/api/v1/sounds/sample")
sounds = res.json()["data"]This returns 6 curated sounds so you can see the response format before committing to a plan.
1. Get your API key
Head to the API keys dashboard and create a new key. You'll need a Pro or Enterprise plan for full API access — see pricing.
Your key is shown only once. Copy it somewhere safe — it starts with los_.
2. Make your first request
Search for sounds using the /api/v1/sounds endpoint. Pass your key via the x-api-key header:
curl "https://api.lotsofsounds.com/api/v1/sounds?q=thunder" \
-H "x-api-key: los_your_api_key_here"const res = await fetch(
"https://api.lotsofsounds.com/api/v1/sounds?q=thunder",
{ headers: { "x-api-key": "los_your_api_key_here" } }
);
const { data, pagination } = await res.json();
console.log(`Found ${pagination.total} sounds`);import requests
res = requests.get(
"https://api.lotsofsounds.com/api/v1/sounds",
params={"q": "thunder"},
headers={"x-api-key": "los_your_api_key_here"},
)
data = res.json()
print(f"Found {data['pagination']['total']} sounds")The response includes paginated results with metadata like duration, tags, and ratings.
3. Get sound details
Grab the full metadata for a specific sound:
curl https://api.lotsofsounds.com/api/v1/sounds/SOUND_ID \
-H "x-api-key: los_your_api_key_here"const res = await fetch(
`https://api.lotsofsounds.com/api/v1/sounds/${soundId}`,
{ headers: { "x-api-key": "los_your_api_key_here" } }
);
const { data } = await res.json();res = requests.get(
f"https://api.lotsofsounds.com/api/v1/sounds/{sound_id}",
headers={"x-api-key": "los_your_api_key_here"},
)
sound = res.json()["data"]4. Download a sound
Once you've found a sound you like, get a signed download URL:
curl https://api.lotsofsounds.com/api/v1/sounds/SOUND_ID/download \
-H "x-api-key: los_your_api_key_here"const res = await fetch(
`https://api.lotsofsounds.com/api/v1/sounds/${soundId}/download`,
{ headers: { "x-api-key": "los_your_api_key_here" } }
);
const { data } = await res.json();
// data.download_url is a signed URL valid for 1 hourres = requests.get(
f"https://api.lotsofsounds.com/api/v1/sounds/{sound_id}/download",
headers={"x-api-key": "los_your_api_key_here"},
)
download_url = res.json()["data"]["download_url"]
# Signed URL valid for 1 hourEach download counts against your daily limit (250/day for Pro, 5,000/day for Enterprise). Monitor your usage via the X-RateLimit-Remaining response header or the usage dashboard.
What's next
- Browse the full endpoint reference with interactive examples
- Learn about authentication and rate limits
- Check error codes for troubleshooting
- Monitor your usage and limits
