JSON API Mock Server

This mock server leverages Beeceptor features to provide a free and openly accessible fake REST API. This is ideally suited for testing and prototyping requirements. There are a variety of endpoints available and each provides JSON for resources such as posts, users, comments, todos, etc. The mock server generates realistic random data on every invocation.

JSON API is your solution to frontend-first development! No backend delays – focus on rapid prototyping. Perfect for demos, teaching, interviews. Always online, always available. Empower your creativity today!

JSON API mock server is up and running!

We have set up the mock routes to ensure a smooth adoption. Copy the URL below and set it as the API base URL in your code, and instantly harness the full potential of mocked JSON API APIs.
https://json-placeholder.mock.beeceptor.com

200
GET  /posts
List all available blog posts
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  {
    "userId": 1,
    "id": 1,
    "title": "Introduction to Artificial Intelligence",
    "body": "Learn the basics of Artificial Intelligence and its applications in various industries.",
    "link": "https://example.com/article1",
    "comment_count": 8
  },
  {
    "userId": 2,
    "id": 2,
    "title": "Web Development with React",
    "body": "Build modern web applications using React.js and explore its powerful features.",
    "link": "https://example.com/article2",
    "comment_count": 12
  },
  {
    "userId": 3,
    "id": 3,
    "title": "Data Science Fundamentals",
    "body": "Dive into the world of Data Science and discover how to analyze and interpret data.",
    "link": "https://example.com/article3",
    "comment_count": 5
  },
  {
    "userId": 4,
    "id": 4,
    "title": "Machine Learning Algorithms",
    "body": "Explore various Machine Learning algorithms and understand their workings.",
    "link": "https://example.com/article4",
    "comment_count": 17
  },
  {
    "userId": 5,
    "id": 5,
    "title": "Introduction to Blockchain",
    "body": "Learn about Blockchain technology, its use-cases, and how it ensures secure transactions.",
    "link": "https://example.com/article5",
    "comment_count": 3
  },
  {
    "userId": 6,
    "id": 6,
    "title": "iOS App Development",
    "body": "Get started with iOS app development using Swift and create feature-rich applications.",
    "link": "https://example.com/article6",
    "comment_count": 10
  },
  {
    "userId": 7,
    "id": 7,
    "title": "Python for Data Analysis",
    "body": "Utilize Python libraries like Pandas and NumPy for data manipulation and analysis.",
    "link": "https://example.com/article7",
    "comment_count": 15
  },
  {
    "userId": 8,
    "id": 8,
    "title": "Cybersecurity Best Practices",
    "body": "Learn essential cybersecurity practices to safeguard your digital assets.",
    "link": "https://example.com/article8",
    "comment_count": 6
  },
  {
    "userId": 9,
    "id": 9,
    "title": "Cloud Computing Essentials",
    "body": "Understand the fundamentals of Cloud Computing and its benefits for businesses.",
    "link": "https://example.com/article9",
    "comment_count": 9
  },
  {
    "userId": 10,
    "id": 10,
    "title": "Introduction to UX Design",
    "body": "Discover the principles of User Experience (UX) design and create intuitive user interfaces.",
    "link": "https://example.com/article10",
    "comment_count": 21
  }
]
200
GET  /posts/{post_id}
Retrieve a post by passing its ID
N/A
N/A
{
  "Content-Type": "application/json"
}
{
    "userId": 1,
    "id": {{pathParam 'post_id'}},
    "title": "Introduction to Artificial Intelligence",
    "body": "Learn the basics of Artificial Intelligence and its applications in various industries.",
    "link": "https://example.com/article1",
    "comment_count": 8
}
200
GET  /comments
Listing all the blog comments
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  {
    "postId": 3,
    "id": 1,
    "name": "John Smith",
    "email": "john.smith@example.com",
    "body": "Great blog post! I learned a lot from it."
  },
  {
    "postId": 5,
    "id": 2,
    "name": "Emily Johnson",
    "email": "emily.johnson@example.com",
    "body": "This is really helpful. Thank you for sharing!"
  },
  {
    "postId": 1,
    "id": 3,
    "name": "Michael Williams",
    "email": "michael.williams@example.com",
    "body": "I have a question regarding this topic. Can you provide more details?"
  },
  {
    "postId": 7,
    "id": 4,
    "name": "Sophia Lee",
    "email": "sophia.lee@example.com",
    "body": "This blog post inspired me to take action. I'll be implementing your tips."
  },
  {
    "postId": 2,
    "id": 5,
    "name": "William Brown",
    "email": "william.brown@example.com",
    "body": "I enjoyed reading this post. Looking forward to more content like this."
  },
  {
    "postId": 4,
    "id": 6,
    "name": "Olivia Martin",
    "email": "olivia.martin@example.com",
    "body": "Your writing style is engaging. Keep up the great work!"
  },
  {
    "postId": 6,
    "id": 7,
    "name": "Robert Johnson",
    "email": "robert.johnson@example.com",
    "body": "I have shared this with my friends. It's worth a read."
  },
  {
    "postId": 9,
    "id": 8,
    "name": "Ava Müller",
    "email": "ava.muller@example.com",
    "body": "This topic is relevant to my interests. Thank you for writing about it."
  },
  {
    "postId": 8,
    "id": 9,
    "name": "Liam O'Connor",
    "email": "liam.oconnor@example.com",
    "body": "I can relate to this post. Well done!"
  },
  {
    "postId": 2,
    "id": 10,
    "name": "Emma Davis",
    "email": "emma.davis@example.com",
    "body": "As someone new to this field, your insights were valuable to me."
  },
  {
    "postId": 3,
    "id": 11,
    "name": "Sebastian Schmidt",
    "email": "sebastian.schmidt@example.com",
    "body": "I have bookmarked this post for future reference."
  },
  {
    "postId": 5,
    "id": 12,
    "name": "Isabella Rossi",
    "email": "isabella.rossi@example.com",
    "body": "Your explanations are clear and easy to understand."
  },
  {
    "postId": 1,
    "id": 13,
    "name": "Miguel Fernández",
    "email": "miguel.fernandez@example.com",
    "body": "I had some doubts, but your post clarified them. Thanks!"
  },
  {
    "postId": 7,
    "id": 14,
    "name": "Emilia Nowak",
    "email": "emilia.nowak@example.com",
    "body": "This is one of the best blog posts I've read on this topic."
  },
  {
    "postId": 9,
    "id": 15,
    "name": "Raj Patel",
    "email": "raj.patel@example.com",
    "body": "Your insights challenged my perspective in a good way."
  },
  {
    "postId": 4,
    "id": 16,
    "name": "Priya Sharma",
    "email": "priya.sharma@example.com",
    "body": "I'm looking forward to applying the tips you shared."
  },
  {
    "postId": 6,
    "id": 17,
    "name": "Alexander Petrov",
    "email": "alexander.petrov@example.com",
    "body": "Your post has been helpful in solving a problem I had."
  },
  {
    "postId": 8,
    "id": 18,
    "name": "Liam O'Connor",
    "email": "liam.oconnor@example.com",
    "body": "I've shared this on social media. It deserves more attention."
  },
  {
    "postId": 2,
    "id": 19,
    "name": "Emma Davis",
    "email": "emma.davis@example.com",
    "body": "I appreciate the effort you put into this post. Thank you!"
  },
  {
    "postId": 3,
    "id": 20,
    "name": "John Smith",
    "email": "john.smith@example.com",
    "body": "Your post is a valuable resource for beginners like me."
  }
]
200
GET  /comments/{comment_id}
Retrieve a comment by passing its ID
N/A
N/A
{
  "Content-Type": "application/json"
}
{
    "postId": 1,
    "id": {{pathParam 'comment_id'}},
    "name": "John Smith",
    "email": "john.smith@example.com",
    "body": "Great blog post! I learned a lot from it."
}
200
GET  /companies
Get a list of all the companies
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  {
    "id": 1,
    "name": "ABC Corporation",
    "address": "123 Main St",
    "zip": "12345",
    "country": "USA",
    "employeeCount": 100,
    "industry": "Technology",
    "marketCap": 1000000000,
    "domain": "abccorp.com",
    "logo": "https://example.com/logo1.png",
    "ceoName": "John Smith"
  },
  {
    "id": 2,
    "name": "XYZ Corp",
    "address": "456 Park Ave",
    "zip": "67890",
    "country": "Canada",
    "employeeCount": 500,
    "industry": "Finance",
    "marketCap": 500000000,
    "domain": "xyzcorp.ca",
    "logo": "https://example.com/logo2.png",
    "ceoName": "Jane Doe"
  },
  {
    "id": 3,
    "name": "Acme Inc.",
    "address": "789 Broadway",
    "zip": "54321",
    "country": "UK",
    "employeeCount": 50,
    "industry": "Retail",
    "marketCap": 25000000,
    "domain": "acmeinc.co.uk",
    "logo": "https://example.com/logo3.png",
    "ceoName": "Michael Johnson"
  },
  {
    "id": 4,
    "name": "Tech Solutions Ltd.",
    "address": "101 Tech Blvd",
    "zip": "13579",
    "country": "Australia",
    "employeeCount": 200,
    "industry": "Technology",
    "marketCap": 800000000,
    "domain": "techsolutions.com.au",
    "logo": "https://example.com/logo4.png",
    "ceoName": "Emily Brown"
  },
  {
    "id": 5,
    "name": "Global Manufacturing",
    "address": "222 Industrial Rd",
    "zip": "56789",
    "country": "USA",
    "employeeCount": 1000,
    "industry": "Manufacturing",
    "marketCap": 1500000000,
    "domain": "globalmfg.com",
    "logo": "https://example.com/logo5.png",
    "ceoName": "Robert White"
  },
  {
    "id": 6,
    "name": "Food Delights",
    "address": "333 Culinary Ave",
    "zip": "24680",
    "country": "Canada",
    "employeeCount": 80,
    "industry": "Food",
    "marketCap": 30000000,
    "domain": "fooddelights.ca",
    "logo": "https://example.com/logo6.png",
    "ceoName": "Sarah Lee"
  },
  {
    "id": 7,
    "name": "Financial Strategies",
    "address": "444 Wealth St",
    "zip": "97531",
    "country": "UK",
    "employeeCount": 150,
    "industry": "Finance",
    "marketCap": 700000000,
    "domain": "financialstrategies.co.uk",
    "logo": "https://example.com/logo7.png",
    "ceoName": "James Anderson"
  },
  {
    "id": 8,
    "name": "EcoTech Solutions",
    "address": "555 Green Rd",
    "zip": "54321",
    "country": "Australia",
    "employeeCount": 300,
    "industry": "Environment",
    "marketCap": 600000000,
    "domain": "ecotechsolutions.com.au",
    "logo": "https://example.com/logo8.png",
    "ceoName": "Sophia Davis"
  },
  {
    "id": 9,
    "name": "Fashion Trends Inc.",
    "address": "666 Style Ave",
    "zip": "13579",
    "country": "USA",
    "employeeCount": 75,
    "industry": "Fashion",
    "marketCap": 35000000,
    "domain": "fashiontrends.com",
    "logo": "https://example.com/logo9.png",
    "ceoName": "William Johnson"
  },
  {
    "id": 10,
    "name": "Healthcare Solutions",
    "address": "777 Wellness Rd",
    "zip": "24680",
    "country": "Canada",
    "employeeCount": 400,
    "industry": "Healthcare",
    "marketCap": 900000000,
    "domain": "healthcaresolutions.ca",
    "logo": "https://example.com/logo10.png",
    "ceoName": "Olivia Martin"
  }
]
200
GET  /companies/{company_id}
Retrieve details about a company by passing company ID. (company-name, market capital, domain, etc.)
N/A
N/A
{
  "Content-Type": "application/json"
}
{
    "id": {{pathParam 'company_id'}},
    "name": "ABC Corporation",
    "address": "123 Main St",
    "zip": "12345",
    "country": "USA",
    "employeeCount": {{faker 'mersenne.rand' '5' '1000'}},
    "industry": "Technology",
    "marketCap": 1000000000,
    "domain": "abccorp.com",
    "logo": "https://example.com/logo1.png",
    "ceoName": "{{faker 'name.firstName'}} {{faker 'name.lastName'}}"
}
200
GET  /users
Get a list of all the users
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  {
    "id": 1,
    "name": "Emily Johnson",
    "company": "ABC Corporation",
    "username": "emily_johnson",
    "email": "emily.johnson@abccorporation.com",
    "address": "123 Main St",
    "zip": "12345",
    "state": "California",
    "country": "USA",
    "phone": "+1-555-123-4567",
    "photo": "{{faker 'image.people'}}"
  },
  {
    "id": 2,
    "name": "Michael Williams",
    "company": "XYZ Corp",
    "username": "michael_williams",
    "email": "michael.williams@xyzcorp.com",
    "address": "456 Elm Ave",
    "zip": "67890",
    "state": "New York",
    "country": "USA",
    "phone": "+1-555-987-6543"
  },
  {
    "id": 3,
    "name": "John Smith",
    "company": "Acme Inc.",
    "username": "john_smith",
    "email": "john.smith@acmeinc.com",
    "address": "789 Oak Rd",
    "zip": "54321",
    "state": "Texas",
    "country": "USA",
    "phone": "+1-555-222-3333"
  },
  {
    "id": 4,
    "name": "Emma Davis",
    "company": "Tech Solutions Ltd.",
    "username": "emma_davis",
    "email": "emma.davis@techsolutions.com",
    "address": "101 Maple Ln",
    "zip": "13579",
    "state": "Florida",
    "country": "USA",
    "phone": "+1-555-444-5555"
  },
  {
    "id": 5,
    "name": "William Brown",
    "company": "Global Manufacturing",
    "username": "william_brown",
    "email": "william.brown@globalmfg.com",
    "address": "222 Pine St",
    "zip": "56789",
    "state": "California",
    "country": "USA",
    "phone": "+1-555-666-7777"
  },
  {
    "id": 6,
    "name": "Sophia Lee",
    "company": "Food Delights",
    "username": "sophia_lee",
    "email": "sophia.lee@fooddelights.com",
    "address": "333 Culinary Ave",
    "zip": "24680",
    "state": "New York",
    "country": "USA",
    "phone": "+1-555-888-9999"
  },
  {
    "id": 7,
    "name": "James Anderson",
    "company": "Financial Strategies",
    "username": "james_anderson",
    "email": "james.anderson@financialstrategies.com",
    "address": "444 Wealth St",
    "zip": "97531",
    "state": "Texas",
    "country": "USA",
    "phone": "+1-555-111-2222"
  },
  {
    "id": 8,
    "name": "Olivia Martin",
    "company": "EcoTech Solutions",
    "username": "olivia_martin",
    "email": "olivia.martin@ecotechsolutions.com",
    "address": "555 Green Rd",
    "zip": "54321",
    "state": "Florida",
    "country": "USA",
    "phone": "+1-555-333-4444"
  },
  {
    "id": 9,
    "name": "Robert Johnson",
    "company": "Fashion Trends Inc.",
    "username": "robert_johnson",
    "email": "robert.johnson@fashiontrends.com",
    "address": "666 Style Ave",
    "zip": "13579",
    "state": "California",
    "country": "USA",
    "phone": "+1-555-777-8888"
  },
  {
    "id": 10,
    "name": "Sophie Davis",
    "company": "Healthcare Solutions",
    "username": "sophie_davis",
    "email": "sophie.davis@healthcaresolutions.com",
    "address": "777 Wellness Rd",
    "zip": "24680",
    "state": "New York",
    "country": "USA",
    "phone": "+1-555-999-0000"
  },
  {
    "id": 11,
    "name": "Alexander Petrov",
    "company": "TechWare LLC",
    "username": "alexander_petrov",
    "email": "alexander.petrov@techware.com",
    "address": "567 Software St",
    "zip": "98765",
    "state": "Moscow",
    "country": "Russia",
    "phone": "+7-555-123-4567"
  },
  {
    "id": 12,
    "name": "Maria Ivanova",
    "company": "GazProm Corp",
    "username": "maria_ivanova",
    "email": "maria.ivanova@gazprom.com",
    "address": "789 Gaz Ave",
    "zip": "54321",
    "state": "St. Petersburg",
    "country": "Russia",
    "phone": "+7-555-987-6543"
  },
  {
    "id": 13,
    "name": "Raj Patel",
    "company": "TechSavvy Solutions",
    "username": "raj_patel",
    "email": "raj.patel@techsavvy.com",
    "address": "101 Tech Rd",
    "zip": "13579",
    "state": "Mumbai",
    "country": "India",
    "phone": "+91-555-222-3333"
  },
  {
    "id": 14,
    "name": "Priya Sharma",
    "company": "Taj Hospitality",
    "username": "priya_sharma",
    "email": "priya.sharma@tajhospitality.com",
    "address": "222 Taj Mahal St",
    "zip": "56789",
    "state": "Delhi",
    "country": "India",
    "phone": "+91-555-444-5555"
  },
  {
    "id": 15,
    "name": "Sebastian Schmidt",
    "company": "AutoTech GmbH",
    "username": "sebastian_schmidt",
    "email": "sebastian.schmidt@autotech.com",
    "address": "333 Auto Strasse",
    "zip": "24680",
    "state": "Berlin",
    "country": "Germany",
    "phone": "+49-555-888-9999"
  },
  {
    "id": 16,
    "name": "Isabella Rossi",
    "company": "Fashionista Srl",
    "username": "isabella_rossi",
    "email": "isabella.rossi@fashionista.com",
    "address": "444 Via Moda",
    "zip": "97531",
    "state": "Milan",
    "country": "Italy",
    "phone": "+39-555-111-2222"
  },
  {
    "id": 17,
    "name": "Liam O'Connor",
    "company": "TechLink Ireland",
    "username": "liam_oconnor",
    "email": "liam.oconnor@techlink.com",
    "address": "555 Dublin Rd",
    "zip": "54321",
    "state": "Dublin",
    "country": "Ireland",
    "phone": "+353-555-333-4444"
  },
  {
    "id": 18,
    "name": "Emilia Nowak",
    "company": "Polish Innovations",
    "username": "emilia_nowak",
    "email": "emilia.nowak@polishinnovations.com",
    "address": "666 Warsaw St",
    "zip": "13579",
    "state": "Warsaw",
    "country": "Poland",
    "phone": "+48-555-777-8888"
  },
  {
    "id": 19,
    "name": "Miguel Fernández",
    "company": "EuroTech Solutions",
    "username": "miguel_fernandez",
    "email": "miguel.fernandez@eurotech.com",
    "address": "777 Madrid Ave",
    "zip": "24680",
    "state": "Madrid",
    "country": "Spain",
    "phone": "+34-555-999-0000"
  },
  {
    "id": 20,
    "name": "Ava Müller",
    "company": "Swiss Precision",
    "username": "ava_muller",
    "email": "ava.muller@swissprecision.com",
    "address": "888 Bern Strasse",
    "zip": "13579",
    "state": "Bern",
    "country": "Switzerland",
    "phone": "+41-555-111-2222"
  }
]
200
GET  /users/{user_id}
Retrieve a user's details like name, company, address, country, email, photo, etc.
N/A
N/A
{
  "Content-Type": "application/json"
}
{
    "id": {{pathParam 'user_id'}},
    "name": "Emily Johnson",
    "company": "ABC Corporation",
    "username": "emily_johnson",
    "email": "emily.johnson@abccorporation.com",
    "address": "123 Main St",
    "zip": "12345",
    "state": "California",
    "country": "USA",
    "phone": "+1-555-123-4567",
    "photo": "https://cdn.pixabay.com/photo/2012/04/13/21/07/user-33638_1280.png"
}
200
GET  /roles
Get a list of standard roles.
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  {
    "id": 1,
    "name": "Admin",
    "description": "Full access to all features and functionalities."
  },
  {
    "id": 2,
    "name": "Manager",
    "description": "Access to management and reporting features."
  },
  {
    "id": 3,
    "name": "User",
    "description": "Basic user role with standard permissions."
  },
  {
    "id": 4,
    "name": "Moderator",
    "description": "Responsible for content moderation and approval."
  },
  {
    "id": 5,
    "name": "Support",
    "description": "Provides customer support and assistance."
  }
]
200
GET  /roles/{role_id}
Retrieve a role by passing its ID.
N/A
N/A
{
  "Content-Type": "application/json"
}
{
  "id": {{pathParam 'role_id'}},
  "name": "User",
  "description": "Basic user role with standard permissions."
}
200
GET  /todos
Get a list of all TO DO items
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  {
    "userId": 3,
    "id": 1,
    "title": "Buy groceries",
    "completed": false
  },
  {
    "userId": 5,
    "id": 2,
    "title": "Go for a walk",
    "completed": true
  },
  {
    "userId": 1,
    "id": 3,
    "title": "Finish homework",
    "completed": false
  },
  {
    "userId": 7,
    "id": 4,
    "title": "Read a book",
    "completed": true
  },
  {
    "userId": 2,
    "id": 5,
    "title": "Pay bills",
    "completed": false
  },
  {
    "userId": 4,
    "id": 6,
    "title": "Call a friend",
    "completed": true
  },
  {
    "userId": 6,
    "id": 7,
    "title": "Clean the house",
    "completed": false
  },
  {
    "userId": 9,
    "id": 8,
    "title": "Go to the gym",
    "completed": true
  },
  {
    "userId": 8,
    "id": 9,
    "title": "Write a report",
    "completed": false
  },
  {
    "userId": 2,
    "id": 10,
    "title": "Cook dinner",
    "completed": true
  },
  {
    "userId": 1,
    "id": 11,
    "title": "Study for exams",
    "completed": false
  },
  {
    "userId": 3,
    "id": 12,
    "title": "Do laundry",
    "completed": true
  },
  {
    "userId": 5,
    "id": 13,
    "title": "Practice guitar",
    "completed": false
  },
  {
    "userId": 7,
    "id": 14,
    "title": "Plan a trip",
    "completed": true
  },
  {
    "userId": 9,
    "id": 15,
    "title": "Attend a meeting",
    "completed": false
  },
  {
    "userId": 6,
    "id": 16,
    "title": "Water the plants",
    "completed": true
  },
  {
    "userId": 4,
    "id": 17,
    "title": "Fix the car",
    "completed": false
  },
  {
    "userId": 8,
    "id": 18,
    "title": "Watch a movie",
    "completed": true
  },
  {
    "userId": 10,
    "id": 19,
    "title": "Visit the museum",
    "completed": false
  },
  {
    "userId": 1,
    "id": 20,
    "title": "Send an email",
    "completed": true
  }
]
200
GET  /todos/{todo_id}
Get a TO DO item
N/A
N/A
{
  "Content-Type": "application/json"
}
{
    "userId": 3,
    "id": {{pathParam 'todo_id'}},
    "title": "Buy groceries",
    "completed": false
}
401
POST  /login
Login example with failed attempt. Use 'fail' keyword in the password.
{
  "Content-Type": "application/json"
}
{
  "username": "user123",
  "password": "failed-password"
}
{
  "Content-Type": "application/json"
}
{
  "success": false,
  "error": {
    "code": "invalid_credentials",
    "message": "Invalid username or password."
  }
}
200
POST  /login
Login the user successfully and generate a JWT token.
{
  "Content-Type": "application/json"
}
{
  "username": "michael",
  "password": "success-password"
}
{
  "Content-Type": "application/json"
}
{
  "success": true,
  "message": "Login successful",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNjgwMjM5MDIyLCJleHAiOjI2MTkzMDAwMDAsImlzcyI6ImJlZWNlcHRvci5jb20iLCJhdWQiOiJCZWVjZXB0b3IgdXNlcnMifQ.D-wEdKyDTOk3GlHs8d2yjfYGZ9gYqWfx2wDPY7mTf-w"
}
 
sample-data
 
json