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-users-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 Users 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: Users
x-displayName: 👤 Users
paths:
/users:
get:
summary: Get all users
description: Retrieve a list of all users.
operationId: getAllUsers
tags:
- Users
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "fetch('https://fakestoreapi.com/users')\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/users')\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $response = file_get_contents('https://fakestoreapi.com/users');\n echo $response;\n?>"
- lang: curl
label: cURL
source: curl -X GET 'https://fakestoreapi.com/users'
- lang: python
label: Python
source: 'import requests
response = requests.get(''https://fakestoreapi.com/users'')
print(response.json())'
responses:
'200':
description: Success
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/User'
'400':
description: Bad request
post:
summary: Add a new user
description: Create a new user.
operationId: addUser
tags:
- Users
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "const user = { username: 'john_doe', email: 'john@example.com', password: 'pass123' };\nfetch('https://fakestoreapi.com/users', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(user)\n})\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\nconst user = { username: 'john_doe', email: 'john@example.com', password: 'pass123' };\naxios.post('https://fakestoreapi.com/users', user)\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $user = json_encode(['username' => 'john_doe', 'email' => 'john@example.com', 'password' => 'pass123']);\n $ch = curl_init('https://fakestoreapi.com/users');\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $user);\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/users'' -H ''Content-Type: application/json'' -d ''{"username": "john_doe", "email": "john@example.com", "password": "pass123"}'''
- lang: python
label: Python
source: 'import requests
user = {''username'': ''john_doe'', ''email'': ''john@example.com'', ''password'': ''pass123''}
response = requests.post(''https://fakestoreapi.com/users'', json=user)
print(response.json())'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/User'
responses:
'201':
description: User created successfully
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: Bad request
/users/{id}:
get:
summary: Get a single user
description: Retrieve details of a specific user by ID.
operationId: getUserById
tags:
- Users
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "fetch('https://fakestoreapi.com/users/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/users/1')\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $response = file_get_contents('https://fakestoreapi.com/users/1');\n echo $response;\n?>"
- lang: curl
label: cURL
source: curl -X GET 'https://fakestoreapi.com/users/1'
- lang: python
label: Python
source: 'import requests
response = requests.get(''https://fakestoreapi.com/users/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/User'
'400':
description: Bad request
put:
summary: Update a user
description: Update an existing user by ID.
operationId: updateUser
tags:
- Users
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "const user = { username: 'john_doe_updated', email: 'john.updated@example.com' };\nfetch('https://fakestoreapi.com/users/1', {\n method: 'PUT',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(user)\n})\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\nconst user = { username: 'john_doe_updated', email: 'john.updated@example.com' };\naxios.put('https://fakestoreapi.com/users/1', user)\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $user = json_encode(['username' => 'john_doe_updated', 'email' => 'john.updated@example.com']);\n $ch = curl_init('https://fakestoreapi.com/users/1');\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');\n curl_setopt($ch, CURLOPT_POSTFIELDS, $user);\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/users/1'' -H ''Content-Type: application/json'' -d ''{"username": "john_doe_updated", "email": "john.updated@example.com"}'''
- lang: python
label: Python
source: 'import requests
user = {''username'': ''john_doe_updated'', ''email'': ''john.updated@example.com''}
response = requests.put(''https://fakestoreapi.com/users/1'', json=user)
print(response.json())'
parameters:
- name: id
in: path
required: true
schema:
type: integer
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/User'
responses:
'200':
description: User updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: Bad request
delete:
summary: Delete a user
description: Delete a specific user by ID.
operationId: deleteUser
tags:
- Users
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "fetch('https://fakestoreapi.com/users/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/users/1')\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $ch = curl_init('https://fakestoreapi.com/users/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/users/1'
- lang: python
label: Python
source: 'import requests
response = requests.delete(''https://fakestoreapi.com/users/1'')
print(response.json())'
parameters:
- name: id
in: path
required: true
schema:
type: integer
responses:
'200':
description: User deleted successfully
'400':
description: Bad request
components:
schemas:
User:
type: object
properties:
id:
type: integer
username:
type: string
email:
type: string
password:
type: string
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)