Mocki API

Mocki API as documented publicly: 5 operations. Contract generated from the documentation by API Evangelist (2026-10-18); not the provider's own document.

Operations 5

GET / GET / #
POST / POST / #
GET /fake GET /fake #
GET /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8 GET /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8 #
POST /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8 POST /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8 #

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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mocki:mocki-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

mocki-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Mocki API
  version: '2026-10-18'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-10-18: 5 operation(s) read from 3 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Mocki has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 5
    documentation: 0
    pages-with-code: 3
    pages-read: 3
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-10-18'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://mocki.io/fake-json-api
  - https://mocki.io/call-a-rest-api-in-react
  - https://mocki.io/call-a-rest-api-from-javascript
paths:
  /:
    get:
      operationId: get
      tags:
      - Api
      summary: GET /
      x-source: https://mocki.io/call-a-rest-api-in-react
      parameters:
      - name: message
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: javascript
        snippet: 'fetch(''https://myapi.com?message=hello'', { method: ''GET'' } )'
    post:
      operationId: post
      tags:
      - Api
      summary: POST /
      x-source: https://mocki.io/call-a-rest-api-in-react
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: javascript
        snippet: 'fetch(''https://myapi.com'', { method: ''POST'', headers: { accept: ''application/json'', body: JSON.stringify({ message: ''Hello
          World!'' })'
  /fake:
    get:
      operationId: get_fake
      tags:
      - Fake
      summary: GET /fake
      x-source: https://mocki.io/call-a-rest-api-in-react
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: javascript
        snippet: 'fetch(''http://localhost:3001/fake'', { method: ''GET'' })'
  /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8:
    get:
      operationId: get_v1_d4867d8b_b5d5_4a48_a4ab_79131b5809b8
      tags:
      - D4867D8B B5D5 4A48 A4Ab 79131B5809B8
      summary: GET /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8
      x-source: https://mocki.io/fake-json-api
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1D4867D8BB5D54A48A4Ab79131B5809B8Response'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://mocki.io/v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8\n Response : \n [\n {\n \"name\" : \"Harry Potter\" ,\n \"city\"\
          \ : \"London\" \n },\n {\n \"name\" : \"Don Quixote\" ,\n \"city\" : \"Madrid\" \n },\n {\n \"name\" : \"Joan of Arc\" ,\n \"city\"\
          \ : \"Paris\" \n },\n {\n \"name\" : \"Rosa Park\" ,\n \"city\" : \"Alabama\" \n }\n ]\n Get user \n If you want to simulate a detail\
          \ request for a single user you can create another endpoint in the"
    post:
      operationId: post_v1_d4867d8b_b5d5_4a48_a4ab_79131b5809b8
      tags:
      - D4867D8B B5D5 4A48 A4Ab 79131B5809B8
      summary: POST /v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8
      x-source: https://mocki.io/call-a-rest-api-from-javascript
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: javascript
        snippet: 'fetch(''https://mocki.io/v1/d4867d8b-b5d5-4a48-a4ab-79131b5809b8'', { method: ''POST'' } )'
components:
  schemas:
    PostRequest:
      type: object
      properties:
        message:
          type: string
    GetV1D4867D8BB5D54A48A4Ab79131B5809B8Response:
      type: object
      properties:
        name:
          type: string
        city:
          type: string
tags:
- name: Api
- name: D4867D8B B5D5 4A48 A4Ab 79131B5809B8
- name: Fake