RepositoryJavaScriptPHPhilippines
rookiemonkey

rookiemonkey/dummy-products-api

An api to fetch dummy e-commerce product :tshirt: :dress: :jeans: :womans_clothes: JSON data with placeholder images.

152stars
28forks
5issues
0views

DUMMY PRODUCTS REST API

Made With

This API aims to replicate the behaviour of various ecommerce website data and this is best for prototyping such kind of website. It provides dummy products with placeholder images with different sizes. I made this because I cannot find any api that can provide such dummy products, though there are some like ebay dev, however, its such as hassle to request an access and read through all the long documentation since all I need is a fake product as a placeholder. Faker js would do, however, I'm looking for something that matches at least the name of the product and its type/department. and here you go!

Documentation

if you found this very useful, Please don't forget to star this repo! :tada: A rookie like me will highly appreaciate it

FEATURES

  • each dummy product has 3 dummy images (sizes 150x150, 300x300, 600x600) relative to product type (images used has CC license)
  • each dummy product comes with description, prices, stock, ratings, and 5 reviews
  • each dummy product query has an option to include similar products relative to its type or department
  • with filters, you filter by stocks, sales, price, ratings with operators lt, gt, lte, gte (where in lt is 'less than', and lte 'less than or equal to', same pattern goes with gt & gte)
    • filters will only work on /products and /products/search routes
  • with search route, matches all product names depending on the query. You need to use query string keys term which will throw an error if not provided
  • with pagination, you need to use query string keys page and limit. You can use both at the same time or one at a time
    • pagination (page & limit) can be used with all routes except /departments and /products/:product_id
  • with checkout, it only emulates the post request when buying something. nothing is inserted on the database but returns an object of the transaction

SAMPLE

This is a dummy e-commerce website that consumes this API. This one is built using Vanilla JS wrapped with Typescript :tada: (just for experimentation)

You can visit the repo here You can visit the website here

Screenshot Screenshot Screenshot

TO DO LIST (OPEN FOR CONTRIBUTIONS)

  • dummy users
  • dummy cart
  • remove unnecessary routes to utilize query strings
  • add dimensions property on Product Model?
  • add discount property on Product Model?

CONTRIBUTING GUIDELINES

Please check this contributing guidlines

CONTRIBUTORS ✨

Thank you for all who contributed to this project!


Justin Balaguer

Author: Kevin Roi R. Basina

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
public-apis/public-apis

A collective list of free APIs

502.8k
Dec 2, 2026
RepositoryJavaScript
nodejs/node

Node.js JavaScript runtime ✨🐢🚀✨

124.1k
Nov 30, 2026
RepositoryTypeScript
strapi/strapi

🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable, and developer-first.

73.6k
Nov 28, 2026
RepositoryTypeScript
medusajs/medusa

The world's most flexible commerce platform for agents and developers

37.5k
Nov 30, 2026
RepositoryPython
lk-geimfari/mimesis

Mimesis is a Python library for generating fake but realistic data in multiple languages and locales.

4.9k
Nov 25, 2026
RepositoryPHP
bordoni/fakerpress

A WordPress plugin that implements an easy way to create fake data inside WordPress.

357
Nov 15, 2026
RepositoryElixir
GesJeremie/faker-elixir

[unmaintained] FakerElixir generates fake data for you.

150
May 22, 2022
RepositoryRust
svenstaro/dummyhttp

Super simple HTTP server that replies a fixed body with a fixed response code

140
Dec 1, 2026
RepositoryTypeScript
freeCodeCamp/freeCodeCamp

freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

459.9k
Dec 2, 2026