Complete guide for using the Fake Data Generator API. 4 powerful endpoints for all your fake data needs.
User, Product, Company, Text
Ready to use
Under 100ms
https://dnzdev.xyz/api/fake/user
{
"id": 1704067200000,
"name": "Alexandra Johnson",
"email": "alexandra.johnson@email.com",
"phone": "(555) 123-4567",
"address": {
"street": "123 Main Street",
"city": "New York",
"state": "NY",
"zipCode": "10001",
"country": "United States"
},
"createdAt": "2024-01-01T00:00:00.000Z"
}
https://dnzdev.xyz/api/fake/product
{
"id": 1704067200001,
"name": "Premium Laptop",
"price": 1299.99,
"stock": 45,
"available": true,
"addedAt": "2024-01-01T00:00:00.001Z"
}
https://dnzdev.xyz/api/fake/company
{
"id": 1704067200002,
"name": "TechSoft Solutions LLC",
"domain": "techsoft-solutions.com",
"employees": 127,
"foundedYear": 2018,
"isActive": true,
"industry": "Software Development",
"createdAt": "2024-01-01T00:00:00.002Z"
}
https://dnzdev.xyz/api/fake/text
words
(number){
"text": "Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam",
"wordCount": 20,
"characterCount": 142,
"generatedAt": "2024-01-01T00:00:00.003Z"
}
// Fetch all data types
async function fetchAllData() {
try {
// User
const userResponse = await fetch('https://dnzdev.xyz/api/fake/user');
const user = await userResponse.json();
// Product
const productResponse = await fetch('https://dnzdev.xyz/api/fake/product');
const product = await productResponse.json();
// Company
const companyResponse = await fetch('https://dnzdev.xyz/api/fake/company');
const company = await companyResponse.json();
// Text (100 words)
const textResponse = await fetch('https://dnzdev.xyz/api/fake/text?words=100');
const text = await textResponse.json();
return { user, product, company, text };
} catch (error) {
console.error('Error fetching data:', error);
}
}