Customer record with personal information, company association, join date, lifetime value, and customer segment. Used for CRM systems, customer management, and business analytics.
https://api.mockly.codes/customers?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/customersGet a collection of customers
/people/customers/customers/:idGet a single customer by ID
/people/customers/:id/customers/metaGet resource metadata and schema
/people/customers/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/customers?q=laptopGET https://api.mockly.codes/customers?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 customers
fetch('https://api.mockly.codes/customers?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/customers?count=10'
)
data = response.json()curl "https://api.mockly.codes/customers?count=10"fetch('https://api.mockly.codes/customers?nocache=true')idintegerUnique identifier for the customer
random_intfirst_namestringCustomer's first name
first_namelast_namestringCustomer's last name
last_nameemailstringCustomer's email address
emailemailphonestringCustomer's phone number
phoneaddressstringCustomer's street address
addresscitystringCity where the customer is located
citycountrystringCountry where the customer is located
countrycompanystringCompany or organization the customer represents
companyjoined_datestringDate when the customer first registered or made their first purchase
past_datedate-timelifetime_valuenumberTotal revenue generated from this customer over their lifetime
pricesegmentstringCustomer segment or category (e.g., premium, standard, enterprise)
wordcountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request