Fake Data Generator API Documentation
Complete reference for the Fake Data Generator API
Authentication
Pass your API key via header or query parameter:
Authorization: Bearer sk_live_your_key_here
Query: ?api_key=sk_live_your_key_here
GET POST /v1/fake/generate
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
type | string | yes | person, address, company, credit_card, internet, phone, lorem, product, date, user_profile |
count | integer | no | Number of items to generate: 1-100 (default: 1) |
locale | string | no | Locale code: en_US, ar_SA, fr_FR, etc. (default: en_US) |
subtype | string | no | For lorem type: words, sentences, paragraphs |
amount | integer | no | For lorem type: number of words/sentences/paragraphs |
Data Types
person
Name, email, phone, DOB, job title, company
user_profile
Full profile with avatar, address, bio, timestamps
address
Street, city, state, ZIP, country, lat/lng
company
Name, industry, catch phrase, website, employees
internet
Email, username, IP, MAC, user agent, domain
phone
Phone number, E.164 format, IMEI
credit_card
Type, number, expiration, holder name
product
Name, SKU, price, category, rating, barcode
date
Date, time, datetime, timestamp, timezone
lorem
Random words, sentences, or paragraphs
Examples
Generate 5 people
curl "https://snapapis.com/api/v1/fake/generate?api_key=YOUR_KEY&type=person&count=5"
Arabic user profiles
curl "https://snapapis.com/api/v1/fake/generate?api_key=YOUR_KEY&type=user_profile&locale=ar_SA&count=3"
Lorem paragraphs
curl "https://snapapis.com/api/v1/fake/generate?api_key=YOUR_KEY&type=lorem&subtype=paragraphs&amount=5"