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-auth-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 Auth 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: Auth
x-displayName: 🔒 Auth
paths:
/auth/login:
post:
summary: Login
description: Authenticate a user.
operationId: loginUser
tags:
- Auth
x-code-samples:
- lang: javascript
label: JavaScript (Browser)
source: "const credentials = { username: 'john_doe', password: 'pass123' };\nfetch('https://fakestoreapi.com/auth/login', {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(credentials)\n})\n .then(response => response.json())\n .then(data => console.log(data));"
- lang: nodejs
label: Node.js (Axios)
source: "const axios = require('axios');\nconst credentials = { username: 'john_doe', password: 'pass123' };\naxios.post('https://fakestoreapi.com/auth/login', credentials)\n .then(response => console.log(response.data));"
- lang: php
label: PHP
source: "<?php\n $credentials = json_encode(['username' => 'john_doe', 'password' => 'pass123']);\n $ch = curl_init('https://fakestoreapi.com/auth/login');\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $credentials);\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/auth/login'' -H ''Content-Type: application/json'' -d ''{"username": "john_doe", "password": "pass123"}'''
- lang: python
label: Python
source: 'import requests
credentials = {''username'': ''john_doe'', ''password'': ''pass123''}
response = requests.post(''https://fakestoreapi.com/auth/login'', json=credentials)
print(response.json())'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Login'
responses:
'200':
description: Login successful
content:
application/json:
schema:
$ref: '#/components/schemas/LoginResponse'
'400':
description: Bad request
components:
schemas:
Login:
type: object
properties:
username:
type: string
password:
type: string
LoginResponse:
type: object
properties:
token:
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)