The Fake Profile API allows you to generate realistic user data for testing, development, and design mockups — without using real personal information.
Data is returned in JSON format and supports filters.
The Fake Profile API allows you to generate realistic user data for testing, development, and design mockups — without using real personal information.
Data is returned in JSON format and supports filters.
https://www.codencape.com/api/fake-user
POST (required)
| Parameter | Type | Required | Description |
| count | int | No | Number of profiles (1–20). Default: 1 |
| country | string | No | Filter by country |
| gender | string | No | Filter by male or female |
curl -X POST https://www.codencape.com/api/fake-user \
-H "Content-Type: application/json" \
-d '{"count":10,"country":"India","gender":"female"}'
fetch("https://www.codencape.com/api/fake-user", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ count: 5, gender: "male", country: "India" })
})
.then(res => res.json())
.then(data => console.log(data));
{
"status": "success",
"data": [
{
"full_name": "Aarav Sharma",
"gender": "Male",
"email": "aarav.sharma@example.com",
"phone": "+91-9876543210",
"address": "45 MG Road",
"city": "Mumbai",
"state": "Maharashtra",
"postcode": "400001",
"country": "India"
}
]
}
{
"status": "error",
"message": "The GET method is not supported. Use POST instead."
} {
"status": "error",
"message": "Too many requests. Please try again after some time.",
"retry_after": 60
}
{
"status": "error",
"message": "Invalid count value. Maximum allowed is 20."
}
5 requests per 3 minutes per IP. If exceeded, you will receive a 429 Too Many Requests response.
We believe in sharing, learning, and building together. Follow us on social media and share your feedback, suggestions, or your own work!