DATPAQ Sample Data API
Mock data generation for testing and development (Faker.js)
Mock data generation for testing and development (Faker.js)
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/datpaq-com:datpaq-com-sample-data-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Datpaq Com Sample Data API
version: 1.1.0
contact:
name: Datpaq Support
url: https://datpaq.com
license:
name: Proprietary
description: 'Operations tagged Sample Data across 2 of this provider''s published API definitions: datpaq-com.yaml, datpaq-com-openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
security:
- ApiKeyHeader: []
- ApiKeyQuery: []
tags:
- name: Sample Data
description: Mock data generation for testing and development (Faker.js)
paths:
/sample-data/batch:
get:
tags:
- Sample Data
operationId: sampleDataBatchGet
summary: Generate multiple types of sample data (GET)
description: Generates mock data using Faker.js. Supports 36 schema types including user, address, company, product, and more. Use the requests parameter as a JSON-encoded array.
parameters:
- name: requests
in: query
required: true
description: JSON-encoded array of generation requests [{type, count, fields?}]
schema:
type: string
example: '[{"type":"user","count":5}]'
responses:
'200':
description: Generated data records
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
results:
- type: user
count: 3
data:
- name: Ada Lovelace
email: ada@example.com
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
post:
tags:
- Sample Data
operationId: sampleDataBatchPost
summary: Generate multiple types of sample data (POST)
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- requests
properties:
requests:
type: array
items:
type: object
required:
- type
- count
properties:
type:
type: string
description: Schema type (user, address, company, product, etc.)
example: user
count:
type: integer
minimum: 1
maximum: 1000
example: 10
fields:
type: array
items:
type: string
description: Specific fields to include. Returns all fields if omitted.
example:
requests:
- type: user
count: 10
- type: company
count: 5
responses:
'200':
description: Generated data records
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
results:
- type: user
count: 10
data:
- name: Ada Lovelace
email: ada@example.com
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/sample-data/generate:
post:
tags:
- Sample Data
operationId: sampleDataGeneratePost
summary: Generate sample data
description: Generate realistic mock data using a JSON request body. Recommended for full control over type, count, fields, and format.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- type
properties:
type:
type: string
description: Schema type to generate, such as user, company, product, or transaction.
count:
type: integer
minimum: 1
maximum: 10000
default: 10
fields:
type: array
items:
type: string
description: Optional field names to include.
format:
type: string
enum:
- json
- csv
default: json
example:
type: user
count: 5
fields:
- name
- email
- phone
responses:
'200':
description: Generated sample data records
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
type: user
count: 3
data:
- name: John Doe
email: john@example.com
phone: +1-555-0123
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/sample-data/generate-batch:
post:
tags:
- Sample Data
operationId: sampleDataGenerateBatchPost
summary: Generate multiple sample datasets
description: Submit multiple sample-data generation requests in one call.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- requests
properties:
requests:
type: array
maxItems: 10
items:
type: object
required:
- type
properties:
type:
type: string
count:
type: integer
minimum: 1
maximum: 1000
default: 10
fields:
type: array
items:
type: string
format:
type: string
enum:
- json
- csv
default: json
example:
requests:
- type: user
count: 2
- type: company
count: 3
responses:
'200':
description: Generated data records grouped by request
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
results:
- type: user
count: 2
data:
- name: Ada Lovelace
email: ada@example.com
- type: company
count: 1
data:
- name: Globex
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/sample-data:
get:
tags:
- Sample Data
operationId: sampleDataGenerateGet
summary: Generate sample data with query parameters
description: GET-compatible sample data generation endpoint for scripts and browser testing.
parameters:
- name: type
in: query
required: true
description: Schema type to generate, such as user, company, product, or transaction.
schema:
type: string
- name: count
in: query
required: false
description: Number of records to generate.
schema:
type: integer
minimum: 1
maximum: 10000
default: 10
- name: fields
in: query
required: false
description: Comma-separated list of fields to include. Any supported field works with any type; list them with GET /sample-data/fields. Unknown fields are ignored.
schema:
type: string
- name: format
in: query
required: false
description: Response format.
schema:
type: string
enum:
- json
- csv
default: json
responses:
'200':
description: Generated sample data records
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
type: user
count: 3
data:
- name: John Doe
email: john@example.com
phone: +1-555-0123
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/sample-data/schemas:
get:
tags:
- Sample Data
operationId: sampleDataSchemas
summary: List sample data schemas
description: Returns all available sample-data schema names with default field lists.
responses:
'200':
description: Available sample-data schemas
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
schemas:
- user
- company
- product
- transaction
- address
count: 5
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
/sample-data/fields:
get:
tags:
- Sample Data
operationId: sampleDataFields
summary: List supported sample data fields
description: Returns every field name accepted by the `fields` parameter, or, when `type` is given, that schema's default fields.
parameters:
- name: type
in: query
required: false
description: Schema type, such as user, company, product, or transaction. Omit to list all supported fields.
schema:
type: string
responses:
'200':
description: Supported field names
content:
application/json:
schema:
$ref: '#/components/schemas/GenericSuccess'
example:
success: true
data:
type: user
totalFields: 5
fields:
- name
- email
- phone
- dob
- gender
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'429':
$ref: '#/components/responses/RateLimited'
default:
$ref: '#/components/responses/ServiceUnavailable'
servers:
- url: https://datpaq.com/api/v1
description: Production
- url: https://staging.datpaq.com/api/v1
description: Staging
components:
schemas:
ErrorResponse:
type: object
properties:
error:
type: string
description: Human-readable error message
example: Invalid API key
correlationId:
type: string
description: Request tracking identifier for support
example: abc123-def456-789ghi
service:
type: string
description: Service name that produced the error
example: ip-geolocation
GenericSuccess:
type: object
description: Standard success envelope. The data property structure varies by endpoint.
properties:
correlationId:
type: string
description: Request tracking identifier
example: abc123-def456
data:
type: object
description: Response payload (structure varies by endpoint)
cached:
type: boolean
description: Whether the response was served from cache
example: false
responses:
BadRequest:
description: Bad request — missing or invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
RateLimited:
description: Rate limit exceeded — retry after the indicated period
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
ServiceUnavailable:
description: Service temporarily unavailable
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
Unauthorized:
description: Unauthorized — missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
securitySchemes:
ApiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: API key passed via x-api-key request header
ApiKeyQuery:
type: apiKey
in: query
name: api_key
description: API key passed as api_key query parameter
x-refined-from:
- datpaq-com.yaml
- datpaq-com-openapi.yaml