API Documentation
LocalDump provides a REST API for programmatic access to database backups. Use it to integrate MongoDB backups into your CI/CD pipelines, scripts, or custom tooling.
Quick Start
1. Get API Key
Enter your email below to receive a unique API key.
2. Send Request
POST to /api/v1/backup with your MongoDB URI and key.
3. Get Backup
Receive a ZIP or JSON response with your backup data.
Generate Your API Key
Enter your email address to receive an API key. You will get the same key if you request again with the same email.
API Endpoints
/api/v1/backupCreate a backup of your MongoDB databases. Requires a valid API key.
Headers
Request Body
{
"uri": "mongodb+srv://user:pass@cluster.mongodb.net/mydb",
"format": "json",
"databases": ["mydb"]
}Parameters
uri— MongoDB connection string (required)format—"zip"or"json"(default:"zip")databases— Array of database names to include (optional, backs up all if omitted)
Rate Limit
10 requests per hour per API key. Exceeding this limit returns HTTP 429.
Usage from the LocalDump website UI is unlimited.
Response Headers
/api/v1/backup?key=YOUR_KEYCheck rate limit status for your API key.
curl -H "X-API-Key: YOUR_KEY" \
https://localdump.vercel.app/api/keys/generate{
"key": "abcdef12...wxyz",
"rateLimit": "10 requests per hour",
"requestsUsed": 3,
"requestsRemaining": 7,
"resetsAt": "2026-07-25T15:00:00.000Z"
}/api/keys/generateGenerate or retrieve an API key for the given email address.
{
"email": "you@example.com"
}Usage Examples
cURL
curl -X POST "https://localdump.vercel.app/api/v1/backup?key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"uri":"mongodb+srv://user:pass@cluster.net/mydb","format":"json"}' \
-o backup.jsonJavaScript / Node.js
const res = await fetch("/api/v1/backup?key=YOUR_API_KEY", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
uri: "mongodb+srv://user:pass@cluster.net/mydb",
format: "json"
})
});
const data = await res.json();
console.log(data);Python
import requests
res = requests.post(
"https://localdump.vercel.app/api/v1/backup?key=YOUR_API_KEY",
json={
"uri": "mongodb+srv://user:pass@cluster.net/mydb",
"format": "json"
}
)
print(res.json())Rate Limits & Access
Website Usage
Unlimited. When using the LocalDump website directly, there are no rate limits. Back up as many databases as you need.
API Usage
10 requests per hour per API key. This applies to external API calls using X-API-Key authentication.
Cross-site and external API calls require a valid API key obtained via email. On-site usage from the LocalDump UI does not require a key and has no restrictions.
Error Responses
400Bad Request
Missing or invalid parameters.
401Unauthorized
Missing or invalid API key.
404Not Found
No matching databases or collections found.
429Too Many Requests
Rate limit exceeded. Try again after Retry-After header.
500Server Error
Internal error. Check your connection string.
Frequently Asked Questions
Try the API
Test the API directly from this page. Enter your API key (from above) and a MongoDB connection string.
Disclaimers
- LocalDump makes no ownership claims over any data that passes through the Service.
- This service is built purely for helping developers. It is not a commercial product.
- All disputes must be communicated to orthodoxtemplar2000@gmail.com
- Use at your own discretion. You are responsible for your own database security and backups.
Suggestions & Feedback
We welcome suggestions, bug reports, and feature requests. Reach out via: