Skip to content

Latest commit

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

MartDB-API

Welcome to the MartDB eCommerce Shopping Products API! Our API provides free access to a wide range of products from various categories, allowing you to retrieve detailed information about each product, including its name, description, price, images, reviews, and more.

Our API is currently deployed on Render and can be accessed through the following URL: https://martdb.onrender.com/. It is also being used by our eCommerce website, IndiMart, which is also deployed on Render and can be accessed through the following URL: https://indimart.onrender.com/.

To use our API, simply make HTTP requests to our endpoints, passing the necessary parameters to retrieve the desired information. Our API supports various HTTP methods, including GET, POST, PUT, and DELETE, allowing you to perform various operations on our product database.

API Reference

Get all products

 GET /products
ParameterTypeDescription
pagenumberOptional. Page number of products to fetch
limitnumberOptional. Page limit of products to fetch

Get product by id

 GET /products?id={id}
ParameterTypeDescription
idstringRequired. _Id of product to fetch

Get products by Category

 GET /products?cat=mobiles
ParameterTypeDescription
catstringRequired. category of product to fetch
pagenumberOptional. Page number of products to fetch
limitnumberOptional. Page limit of products to fetch

Get product by Name

 GET /products?name={title}
ParameterTypeDescription
namestringRequired. title of product to fetch

Get All Categories

 GET /category

Get Products by Search

 GET /search?q={query}
ParameterTypeDescription
qstringRequired. Search query for fetching the products

Get Autocomplete text by Search

 GET /search?a={text}
ParameterTypeDescription
astringRequired. text for fetching the autocomplete text

Get Single Random Product

 GET /random
ParameterTypeDescription
limitnumberOptional. limit of random products to fetch

Post Single Product

 POST /products
{
"title": "AVANT Men's Grey/Black Running Shoes - 8 UK",
"description": "MAXIMUM COMFORT: From rigorous running to high intensity training this shoe has got you covered. It has a soft cushioning to give the feet maximum comfort.The design ensures full comfort with spacious yet secure fit. It is lightweight and breathable with high density backing. The engineered backing across the vamp & collar provides stretch & comfort where needed",
"thumbnail": "https://m.media-amazon.com/images/I/61xJ6SfB-eL._SY450_.jpg",
"price": 1599,
"discountPrice": 649,
"brand": "AVANT",
"category": "mens-shoes",
"images": [
"https://m.media-amazon.com/images/I/61xJ6SfB-eL._SY450_.jpg",
"https://m.media-amazon.com/images/I/51jXZccor9L._SY450_.jpg",
"https://m.media-amazon.com/images/I/61Ya9D4xdGL._SY450_.jpg",
"https://m.media-amazon.com/images/I/617OZ-jgYlL._SY450_.jpg",
"https://m.media-amazon.com/images/I/51bjbbhBPxL._SY450_.jpg"
]
}

To access our API, you don't need to sign up for an API key. Our API documentation provides detailed instructions on how to make requests, as well as examples of the JSON responses you can expect to receive.

We hope you find our MartDB eCommerce Shopping Products API useful! If you have any questions or encounter any issues, please don't hesitate to contact us through our website or email.

About

MartDB is a REST API that provides a database for ecommerce shopping products. It allows you to create, read, update and delete products from your online store. MartDB is designed to be used in conjunction with an ecommerce website or mobile app, and provides a simple manage product data.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages