Back
Fake Data API
Documentation

API Documentation

Complete guide for using the Fake Data Generator API. 4 powerful endpoints for all your fake data needs.

4 Endpoints

User, Product, Company, Text

No Authentication

Ready to use

Fast Response

Under 100ms

Checking API status...

Available Endpoints

Generate User
Generate fake users with complete information
GET

Endpoint URL

https://dnzdev.xyz/api/fake/user

Response Structure

{
  "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"
}
Generate Product
Generate fake products with commercial details
GET

Endpoint URL

https://dnzdev.xyz/api/fake/product

Response Structure

{
  "id": 1704067200001,
  "name": "Premium Laptop",
  "price": 1299.99,
  "stock": 45,
  "available": true,
  "addedAt": "2024-01-01T00:00:00.001Z"
}
Generate Company
Generate fake companies with business information
GET

Endpoint URL

https://dnzdev.xyz/api/fake/company

Response Structure

{
  "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"
}
Generate Text
Generate lorem ipsum text for testing
GET

Endpoint URL

https://dnzdev.xyz/api/fake/text

Query Parameters

words(number)
optional
Number of words to generate (1-1000)
Default: 50

Response Structure

{
  "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"
}

Implementation Examples

JAVASCRIPT Example
// 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);
  }
}

Rate Limiting & Best Practices

Rate Limits
Requests per minute:100
Requests per hour:1000
Concurrent requests:10
Best Practices
Cache responses for performance
Implement error handling
Use timeouts for requests
Respect rate limits

Error Handling

HTTP Status Codes
200
OK
Request successful
400
Bad Request
Invalid parameters
429
Too Many Requests
Rate limit exceeded
500
Internal Server Error
Server error

Need help?

Documentation doesn't answer your question? Contact us for support.