fakestoreapi: Fake Ecommerce APIs

Tired of using the usual lorem ipsum placeholder text? Need free e-commerce data and API for your projects? Beeceptor's Fake Ecommerce APIs are here. These are free & hosted REST API that provides pseudo-real e-commerce data without the need to run any server-side code. Here's what you need to know about these APIs: - The data is crafted by hand to be used as golden data. - These APIs provide you with various entities/types of data in JSON format. This includes products, shopping carts, and user information. - You can quickly get started with Beeceptor's APIs by checking out the URLs and examples below.

Unlock the potential of fakestoreapi: Fake Ecommerce APIs use-cases with this sample API Design. Start with this prototype and effortlessly expand to tackle more advanced scenarios. Beeceptor empowers you to not only create prototypes but also to build and innovate further. Your imagination sets the limit – get started with Beeceptor today! .col-xs-4.col-md-2.text-center

fakestoreapi: Fake Ecommerce APIs API 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 fakestoreapi: Fake Ecommerce APIs APIs.

https://fake-store-api.mock.beeceptor.com



200
GET  /api/products
Get a list of products available in the e-commerce store.
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  {
    "product_id": 1,
    "name": "Smartphone",
    "description": "High-end smartphone with advanced features.",
    "price": 599.99,
    "unit": "Piece",
    "image": "https://example.com/images/smartphone.jpg",
    "discount": 10,
    "availability": true,
    "brand": "BrandX",
    "category": "Electronics",
    "rating": 4.5,
    "reviews": [
      {
        "user_id": 1,
        "rating": 5,
        "comment": "Great phone with a superb camera!"
      },
      {
        "user_id": 2,
        "rating": 4,
        "comment": "Good performance, but the battery life could be better."
      }
    ]
  },
  {
    "product_id": 2,
    "name": "Laptop",
    "description": "Powerful laptop for work and gaming.",
    "price": 999.99,
    "unit": "Piece",
    "image": "https://example.com/images/laptop.jpg",
    "discount": 5,
    "availability": true,
    "brand": "BrandY",
    "category": "Electronics",
    "rating": 4.7,
    "reviews": [
      {
        "user_id": 3,
        "rating": 5,
        "comment": "Excellent laptop for gaming and work tasks."
      },
      {
        "user_id": 4,
        "rating": 4,
        "comment": "Good value for the price."
      }
    ]
  },
  {
    "product_id": 3,
    "name": "Wireless Headphones",
    "description": "Premium wireless headphones with noise-cancellation.",
    "price": 149.99,
    "unit": "Piece",
    "image": "https://example.com/images/headphones.jpg",
    "discount": 15,
    "availability": true,
    "brand": "SoundMasters",
    "category": "Electronics",
    "rating": 4.8,
    "reviews": [
      {
        "user_id": 5,
        "rating": 5,
        "comment": "Top-notch sound quality and comfort."
      },
      {
        "user_id": 6,
        "rating": 4,
        "comment": "Impressive noise-cancellation, but a bit pricey."
      }
    ]
  },
  {
    "product_id": 4,
    "name": "Smartwatch",
    "description": "Feature-packed smartwatch with fitness tracking.",
    "price": 199.99,
    "unit": "Piece",
    "image": "https://example.com/images/smartwatch.jpg",
    "discount": 10,
    "availability": true,
    "brand": "TechWear",
    "category": "Wearables",
    "rating": 4.6,
    "reviews": [
      {
        "user_id": 7,
        "rating": 4,
        "comment": "Great value for the features it offers."
      },
      {
        "user_id": 8,
        "rating": 5,
        "comment": "Sleek design and accurate fitness tracking."
      }
    ]
  },
  {
    "product_id": 5,
    "name": "Professional DSLR Camera",
    "description": "High-quality DSLR camera for photography enthusiasts.",
    "price": 499.99,
    "unit": "Piece",
    "image": "https://example.com/images/camera.jpg",
    "discount": 5,
    "availability": true,
    "brand": "PhotoPro",
    "category": "Cameras",
    "rating": 4.9,
    "reviews": [
      {
        "user_id": 9,
        "rating": 5,
        "comment": "Exceptional image quality and versatility."
      },
      {
        "user_id": 10,
        "rating": 4,
        "comment": "A bit heavy, but the results are worth it."
      }
    ]
  },
  {
    "product_id": 6,
    "name": "Smart TV",
    "description": "High-definition smart TV with built-in streaming apps.",
    "price": 799.99,
    "unit": "Piece",
    "image": "https://example.com/images/tv.jpg",
    "discount": 8,
    "availability": true,
    "brand": "ViewTech",
    "category": "Electronics",
    "rating": 4.7,
    "reviews": [
      {
        "user_id": 11,
        "rating": 5,
        "comment": "Stunning picture quality and user-friendly interface."
      },
      {
        "user_id": 12,
        "rating": 4,
        "comment": "A great addition to our home entertainment setup."
      }
    ]
  },
  {
    "product_id": 7,
    "name": "Tablet",
    "description": "Compact tablet for productivity and entertainment.",
    "price": 299.99,
    "unit": "Piece",
    "image": "https://example.com/images/tablet.jpg",
    "discount": 12,
    "availability": true,
    "brand": "TabTech",
    "category": "Electronics",
    "rating": 4.4,
    "reviews": [
      {
        "user_id": 13,
        "rating": 4,
        "comment": "Good value for the price, but the battery life could be better."
      },
      {
        "user_id": 14,
        "rating": 5,
        "comment": "Ideal for both work and entertainment on the go."
      }
    ]
  },
  {
    "product_id": 8,
    "name": "Gaming Console",
    "description": "Next-gen gaming console for immersive gaming experiences.",
    "price": 399.99,
    "unit": "Piece",
    "image": "https://example.com/images/console.jpg",
    "discount": 10,
    "availability": true,
    "brand": "GameX",
    "category": "Gaming",
    "rating": 4.8,
    "reviews": [
      {
        "user_id": 15,
        "rating": 5,
        "comment": "Incredible gaming performance and graphics."
      },
      {
        "user_id": 16,
        "rating": 4,
        "comment": "A must-have for gaming enthusiasts."
      }
    ]
  },
  {
    "product_id": 9,
    "name": "Energy-Efficient Refrigerator",
    "description": "Modern refrigerator with energy-saving features.",
    "price": 599.99,
    "unit": "Piece",
    "image": "https://example.com/images/refrigerator.jpg",
    "discount": 5,
    "availability": true,
    "brand": "CoolTech",
    "category": "Appliances",
    "rating": 4.6
  } 
]
200
GET  /api/users
Get a list of all registered users.
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  { "user_id": 1, "username": "john_doe", "email": "john@example.com", "password": "hashed_password" },
  { "user_id": 2, "username": "jane_smith", "email": "jane@example.com", "password": "hashed_password" },
  { "user_id": 3, "username": "bob_johnson", "email": "bob@example.com", "password": "hashed_password" },
  { "user_id": 4, "username": "susan_wilson", "email": "susan@example.com", "password": "hashed_password" },
  { "user_id": 5, "username": "mike_anderson", "email": "mike@example.com", "password": "hashed_password" }
]
200
GET  /api/carts
Get a list of shopping buckets/carts. Only one object is returned to indicated logged in user.
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  { "cart_id": 1, "user_id": 1, "items": [ { "product_id": 1, "quantity": 2 }, { "product_id": 3, "quantity": 1 } ] }
]
200
GET  /api/orders/status\?order_id={order_id}
Check order status and retrieve order details
N/A
N/A
{
  "Content-Type": "application/json"
}
{
  "order_id": 1,
  "user_id": 1,
  "status": "Shipped",
  "total_price": 849.97,
  "items": [ { "product_id": 1, "quantity": 2 }, { "product_id": 3, "quantity": 1 } ]
}
200
GET  /api/orders
Get a list of orders placed by users and their status.
N/A
N/A
{
  "Content-Type": "application/json"
}
[
  { "order_id": 1, "user_id": 1, "items": [ { "product_id": 1, "quantity": 2 }, { "product_id": 3, "quantity": 1 } ], "total_price": 849.97, "status": "Shipped" },
  { "order_id": 2, "user_id": 2, "items": [ { "product_id": 2, "quantity": 1 }, { "product_id": 7, "quantity": 1 } ], "total_price": 1149.98, "status": "Delivered" },
  { "order_id": 3, "user_id": 3, "items": [ { "product_id": 4, "quantity": 1 }, { "product_id": 8, "quantity": 1 } ], "total_price": 599.98, "status": "Processing" },
  { "order_id": 4, "user_id": 4, "items": [ { "product_id": 5, "quantity": 1 }, { "product_id": 10, "quantity": 2 } ], "total_price": 1099.97, "status": "Shipped" },
  { "order_id": 5, "user_id": 5, "items": [ { "product_id": 6, "quantity": 1 }, { "product_id": 9, "quantity": 1 } ], "total_price": 1399.98, "status": "Delivered" }
]
200
PUT  /api/orders
Create a new order or update an existing.
{
  "user_id": 1,
  "items": [ { "product_id": 1, "quantity": 2 }, { "product_id": 3, "quantity": 1 } ]
}
N/A
{
  "Content-Type": "application/json"
}
{
  "order_id": 6,
  "status": "Placed",
  "message": "Order successfully placed."
}
 
sample-data