Mercantry Merchants API

The Merchants API from Mercantry — 2 operation(s) for merchants.

GitHub OpenAPI

Operations 2

GET /v1/merchants Filter-based merchant search (NOT ranked; deterministic order) #
GET /v1/merchants/{merchant_id} Full signal dump for one merchant — maximal data, zero opinion #

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/mercantry-org:mercantry-org-merchants-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mercantry-org-merchants-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Registry — agent-native merchant registry (REST mirror)…
  version: 1.0.0
  description: 'Structured merchant data and phone-fulfilled restaurant reservations for AI agents. San Francisco, CA, ~500 merchants. This REST surface mirrors the MCP server at POST /mcp (Streamable HTTP) — same data, same booking state machine. Honest by design: filter-based search in deterministic order (never ranked), transaction-verified feedback only, availability checked on the call at booking time (`performed_at_booking`). Reads are free and unauthenticated; API keys are optional and exist for abuse control, not gating. Errors are machine-actionable: every 4xx/5xx body carries a stable `error` code plus `field`/`allowed`/`example`/`message`/`docs` where known (schema AgentError); 429s set Retry-After.'
servers:
- url: https://mercantry.org
tags:
- name: Merchants
paths:
  /v1/merchants:
    get:
      summary: Filter-based merchant search (NOT ranked; deterministic order)
      description: 'Order: merchant_id ASC by default; distance ASC (ties by merchant_id) when lat/lng given with order_by=distance. The registry never ranks (REQ-DATA-2).'
      parameters:
      - name: neighborhood
        in: query
        schema:
          type: string
      - name: lat
        in: query
        schema:
          type: number
      - name: lng
        in: query
        schema:
          type: number
      - name: radius_km
        in: query
        schema:
          type: number
          default: 3
      - name: cuisine_tags
        in: query
        schema:
          type: string
        description: Comma-separated; matches ANY.
      - name: attribute_tags
        in: query
        schema:
          type: string
        description: Comma-separated; matches ALL.
      - name: price_band_min
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 4
      - name: price_band_max
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 4
      - name: open_at
        in: query
        schema:
          type: string
        description: ISO-8601 datetime; only merchants open then. Explicit offset = exact instant (evaluated per merchant timezone); naive = each merchant's local wall clock.
      - name: bookable_only
        in: query
        schema:
          type: boolean
      - name: party_size
        in: query
        schema:
          type: integer
          minimum: 1
      - name: sandbox
        in: query
        schema:
          type: boolean
        description: true = sandbox test merchants only; false = real merchants only; omitted = both.
      - name: order_by
        in: query
        schema:
          type: string
          enum:
          - merchant_id
          - distance
      - name: limit
        in: query
        schema:
          type: integer
          maximum: 100
      - name: offset
        in: query
        schema:
          type: integer
          minimum: 0
      responses:
        '200':
          description: Deterministically ordered page of compact merchant records.
          content:
            application/json:
              schema:
                type: object
                properties:
                  order:
                    type: string
                    enum:
                    - merchant_id
                    - distance
                  total:
                    type: integer
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/MerchantSummary'
        '400':
          description: invalid_open_at — unparseable open_at value.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
        '429':
          description: rate_limited — wait Retry-After seconds (also in retry_after_s), then resume.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
      tags:
      - Merchants
      operationId: getV1Merchants
      x-operation-id-source: derived
  /v1/merchants/{merchant_id}:
    get:
      summary: Full signal dump for one merchant — maximal data, zero opinion
      description: Every schema field plus structured hours, raw feedback history, aggregate feedback summary, platform-observed operational stats, and per-field provenance with timestamps.
      parameters:
      - name: merchant_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Full merchant record.
        '404':
          description: unknown_merchant
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
      tags:
      - Merchants
      operationId: getV1MerchantsByMerchantId
      x-operation-id-source: derived
components:
  schemas:
    MerchantSummary:
      type: object
      description: Compact merchant record returned by search. Deterministic order, never ranked.
      properties:
        merchant_id:
          type: string
          format: uuid
        name:
          type: string
        cuisine_tags:
          type: array
          items:
            type: string
        attribute_tags:
          type: array
          items:
            type: string
        neighborhood:
          type: string
        address:
          type: string
        lat:
          type: number
        lng:
          type: number
        price_band:
          type: integer
          minimum: 1
          maximum: 4
        reservation_policy:
          type: string
          enum:
          - walk_in_only
          - phone_reservations
          - accepts_reservations
          - requires_deposit
        bookable:
          type: boolean
          description: 'Derived: phone-verified AND accepts phone reservations AND not opted out AND no deposit required.'
        verification_status:
          type: string
          enum:
          - unverified
          - phone_verified
          - transaction_verified
        sandbox:
          type: boolean
          description: 'Sandbox test merchant: books end-to-end and returns a SIMULATED confirmation, never dialing a real venue. Never present a sandbox confirmation to a user as a real reservation.'
        distance_km:
          type: number
          description: Present only when a geo filter was supplied.
    AgentError:
      type: object
      description: Agent-actionable error, returned on every 4xx/5xx. `error` is a stable machine code — match on it exactly. Where known, `field` names the offending input, `allowed`/`example` say what would be accepted, `message` explains the fix, and `docs` links this document. 429s additionally set the Retry-After header and `retry_after_s`.
      required:
      - error
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: string
          description: Stable machine code, e.g. party_size_out_of_range, unknown_merchant, rate_limited.
        message:
          type: string
          description: What went wrong and what to do instead.
        field:
          type: string
          description: The offending request field, when the error is input-specific.
        allowed:
          type: string
          description: Accepted values/range for `field`, e.g. '1-8'.
        example:
          type: string
          description: An example of an accepted value.
        docs:
          type: string
          description: URL of this OpenAPI document.
        retry_after_s:
          type: integer
          description: Seconds to wait before retrying (429 only; mirrors the Retry-After header).
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Optional developer key from POST /v1/keys. Also accepted as Authorization: Bearer <key>.'
x-rate-limits:
  per_minute: 300
  headers:
  - X-RateLimit-Limit
  - X-RateLimit-Remaining
  - X-RateLimit-Reset
  on_429: Retry-After header (seconds) + retry_after_s/limit/remaining/reset in the body — wait exactly that long, then resume.
x-mcp:
  endpoint: /mcp
  transport: streamable-http
  note: Agents with MCP support should prefer the MCP endpoint; tools self-describe via tools/list.