Json Data API Documentation
Comprehensive guide to Json Data API's free mock endpoints for e-commerce development. Explore sample JSON data for products, users, carts, and more.
Getting Started
Base URL
Use this base URL for all Json Data API requests
https://jsondata.reactbd.com/api
Authentication
Free access with no authentication required
Json Data API is a public REST API designed for e-commerce testing and prototyping. No API keys or tokens are needed, making it ideal for developers seeking mock JSON data.
Response Format
All API responses are in JSON format
{
"totalItems": 100,
"totalPages": 5,
"currentPage": 1,
"perPage": 20,
"data": [...]
}
API Resources
Users
/api/users
Manage user profiles, accounts, and authentication data for e-commerce applications
GET
/api/users
Retrieve a paginated list of mock user profiles
Parameters
Name | Type | Default | Description |
---|---|---|---|
page | number | 1 | Page number for pagination |
perPage | number | 20 | Number of users per page |
Example Response
{
"totalUsers": 100,
"totalPages": 5,
"currentPage": 1,
"perPage": 20,
"users": [
{
"_id": "507f1f77bcf86cd799439011",
"name": "John Doe",
"username": "johndoe",
"email": "john@example.com",
"address": {
"street": "123 Main St",
"suite": "Apt 1",
"city": "New York",
"zipcode": "10001",
"geo": {
"lat": "40.7128",
"lng": "-74.0060"
}
},
"phone": "555-0123",
"website": "johndoe.com",
"company": {
"name": "Tech Corp",
"catchPhrase": "Innovation at its best",
"bs": "synergistic solutions"
},
"role": "Admin",
"status": "Active"
}
]
}
GET
/api/users/:id
Fetch a single user profile by their unique ID
Parameters
Name | Type | Default | Description |
---|---|---|---|
id* | string | - | Unique user ID |
GET
/api/users/company/:companyName
Retrieve users associated with a specific company
Parameters
Name | Type | Default | Description |
---|---|---|---|
companyName* | string | - | Name of the company |
Error Handling
HTTP Status Codes
Understand the standard HTTP status codes returned by Json Data API
200
OK - Request was successful400
Bad Request - Invalid parameters provided404
Not Found - Requested resource does not exist500
Internal Server Error - Unexpected server issue