Welcome to the API documentation. Below are the details of the available endpoints.
Retrieve a list of names from the database.
GET /api/names
Query Parameters:
starts_with: Filter names that start with this letter.count: Number of names to return (default: 1).
curl -H "X-API-KEY: your_generated_api_key" "https://mallunames.vercel.app/api/names?starts_with=A&count=6"
import requests
url = "https://mallunames.vercel.app/api/names"
headers = {
"X-API-KEY": "your_generated_api_key"
}
params = {
"starts_with": "A",
"count": 6
}
response = requests.get(url, headers=headers, params=params)
data = response.json()
print(data)
{
"names": ["Abhinav", "Anna", "Aswathy", "Arjun", "Anjali", "Ava"]
}
All requests must include the API key in the X-API-KEY header.
If you need an API key, please email us with your request, and we will send you an API key.