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-carts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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: Fake Store Auth Carts API
description: Fake Store API exposes a sample REST API for e-commerce data including products, carts, users, and authentication. It is intended for prototyping, teaching, and integration testing — write operations return fabricated responses and do not persist data on the server.
version: 1.0.0
contact:
name: Fake Store API
url: https://fakestoreapi.com/
license:
name: MIT
servers:
- url: https://fakestoreapi.com
description: Production
tags:
- name: Carts
description: Shopping cart operations.
paths:
/carts:
get:
tags:
- Carts
summary: List carts
operationId: listCarts
parameters:
- $ref: '#/components/parameters/Limit'
- $ref: '#/components/parameters/Sort'
- in: query
name: startdate
schema:
type: string
format: date
description: Start date for filtering carts
- in: query
name: enddate
schema:
type: string
format: date
description: End date for filtering carts
responses:
'200':
description: Array of carts
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Cart'
post:
tags:
- Carts
summary: Create a cart
operationId: createCart
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CartInput'
responses:
'200':
description: Created cart (fabricated)
content:
application/json:
schema:
$ref: '#/components/schemas/Cart'
/carts/{id}:
parameters:
- $ref: '#/components/parameters/CartId'
get:
tags:
- Carts
summary: Get a cart
operationId: getCart
responses:
'200':
description: Cart
content:
application/json:
schema:
$ref: '#/components/schemas/Cart'
put:
tags:
- Carts
summary: Replace a cart
operationId: replaceCart
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CartInput'
responses:
'200':
description: Updated cart (fabricated)
content:
application/json:
schema:
$ref: '#/components/schemas/Cart'
patch:
tags:
- Carts
summary: Partially update a cart
operationId: updateCart
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CartInput'
responses:
'200':
description: Updated cart (fabricated)
content:
application/json:
schema:
$ref: '#/components/schemas/Cart'
delete:
tags:
- Carts
summary: Delete a cart
operationId: deleteCart
responses:
'200':
description: Deleted cart (fabricated)
content:
application/json:
schema:
$ref: '#/components/schemas/Cart'
/carts/user/{userId}:
parameters:
- in: path
name: userId
required: true
schema:
type: integer
description: User ID
get:
tags:
- Carts
summary: List carts for a user
operationId: listCartsByUser
responses:
'200':
description: Array of carts for the user
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Cart'
components:
parameters:
Limit:
in: query
name: limit
schema:
type: integer
minimum: 1
description: Maximum number of results to return
Sort:
in: query
name: sort
schema:
type: string
enum:
- asc
- desc
description: Sort order for results
CartId:
in: path
name: id
required: true
schema:
type: integer
description: Cart ID
schemas:
CartInput:
type: object
required:
- userId
- date
- products
properties:
userId:
type: integer
date:
type: string
format: date
products:
type: array
items:
type: object
properties:
productId:
type: integer
quantity:
type: integer
Cart:
type: object
properties:
id:
type: integer
userId:
type: integer
date:
type: string
format: date
products:
type: array
items:
type: object
properties:
productId:
type: integer
quantity:
type: integer