Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/fake-store-api:fake-store-api-products-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: FakeStore Products API
description: A free fake API for testing and prototyping e-commerce applications.
version: old-version-production
contact:
email: support@fakestoreapi.com
url: https://fakestoreapi.com/docs
x-logo:
url: /icons/logo.png
href: /
servers:
- url: https://fakestoreapi.com
tags:
- name: Products
x-displayName: 🛒 Products
paths:
/products:
get:
summary: Get all products
description: Retrieve a list of all available products.
operationId: getAllProducts
tags:
- Products
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "fetch('https://fakestoreapi.com/products')\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\naxios.get('https://fakestoreapi.com/products')\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $response = file_get_contents('https://fakestoreapi.com/products');\n echo $response;\n?>"
- lang: curl
label: cURL
source: curl -X GET 'https://fakestoreapi.com/products'
- lang: python
label: Python
source: 'import requests
response = requests.get(''https://fakestoreapi.com/products'')
print(response.json())'
responses:
'200':
description: Success
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Product'
'400':
description: Bad request
post:
summary: Add a new product
description: Create a new product.
operationId: addProduct
tags:
- Products
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "const product = { title: 'New Product', price: 29.99 };\nfetch('https://fakestoreapi.com/products', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(product)\n})\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\nconst product = { title: 'New Product', price: 29.99 };\naxios.post('https://fakestoreapi.com/products', product)\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $product = json_encode(['title' => 'New Product', 'price' => 29.99]);\n $ch = curl_init('https://fakestoreapi.com/products');\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $product);\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n $response = curl_exec($ch);\n curl_close($ch);\n echo $response;\n?>"
- lang: curl
label: cURL
source: 'curl -X POST ''https://fakestoreapi.com/products'' -H ''Content-Type: application/json'' -d ''{"title": "New Product", "price": 29.99}'''
- lang: python
label: Python
source: 'import requests
product = {''title'': ''New Product'', ''price'': 29.99}
response = requests.post(''https://fakestoreapi.com/products'', json=product)
print(response.json())'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Product'
responses:
'201':
description: Product created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Product'
'400':
description: Bad request
/products/{id}:
get:
summary: Get a single product
description: Retrieve details of a specific product by ID.
operationId: getProductById
tags:
- Products
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "fetch('https://fakestoreapi.com/products/1')\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\naxios.get('https://fakestoreapi.com/products/1')\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $response = file_get_contents('https://fakestoreapi.com/products/1');\n echo $response;\n?>"
- lang: curl
label: cURL
source: curl -X GET 'https://fakestoreapi.com/products/1'
- lang: python
label: Python
source: 'import requests
response = requests.get(''https://fakestoreapi.com/products/1'')
print(response.json())'
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Product'
'400':
description: Bad request
put:
summary: Update a product
description: Update an existing product by ID.
operationId: updateProduct
tags:
- Products
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "const product = { title: 'Updated Product', price: 39.99 };\nfetch('https://fakestoreapi.com/products/1', {\n method: 'PUT',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(product)\n})\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\nconst product = { title: 'Updated Product', price: 39.99 };\naxios.put('https://fakestoreapi.com/products/1', product)\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $product = json_encode(['title' => 'Updated Product', 'price' => 39.99]);\n $ch = curl_init('https://fakestoreapi.com/products/1');\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n curl_setopt($ch, CURLOPT_POSTFIELDS, $product);\n curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);\n $response = curl_exec($ch);\n curl_close($ch);\n echo $response;\n?>"
- lang: curl
label: cURL
source: 'curl -X PUT ''https://fakestoreapi.com/products/1'' -H ''Content-Type: application/json'' -d ''{"title": "Updated Product", "price": 39.99}'''
- lang: python
label: Python
source: 'import requests
product = {''title'': ''Updated Product'', ''price'': 39.99}
response = requests.put(''https://fakestoreapi.com/products/1'', json=product)
print(response.json())'
parameters:
- name: id
in: path
required: true
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Product'
responses:
'200':
description: Product updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/Product'
'400':
description: Bad request
delete:
summary: Delete a product
description: Delete a specific product by ID.
operationId: deleteProduct
tags:
- Products
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "fetch('https://fakestoreapi.com/products/1', {\n method: 'DELETE'\n})\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\naxios.delete('https://fakestoreapi.com/products/1')\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $ch = curl_init('https://fakestoreapi.com/products/1');\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');\n $response = curl_exec($ch);\n curl_close($ch);\n echo $response;\n?>"
- lang: curl
label: cURL
source: curl -X DELETE 'https://fakestoreapi.com/products/1'
- lang: python
label: Python
source: 'import requests
response = requests.delete(''https://fakestoreapi.com/products/1'')
print(response.json())'
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'200':
description: Product deleted successfully
'400':
description: Bad request
components:
schemas:
Product:
type: object
properties:
id:
type: integer
title:
type: string
price:
type: number
format: float
description:
type: string
category:
type: string
image:
type: string
format: uri
x-provenance:
method: harvested
publisher: Fake Store API
source: https://fakestoreapi.com/docs-data
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)