openapi: 3.0.3
info:
  title: VerifiedBKK Directory Feeds API v1
  version: 1.0.0
  description: |
    Free, read-only directory feeds served as static JSON. Use is subject to the Feed terms of use at /api/v1/feed-terms.html.
    Limits: fair-use is up to 60 requests per minute per client. Use ETag/If-None-Match and poll
    changes.json. Send a descriptive User-Agent with a contact URL (requested, not required); no key needed.
  contact:
    email: contact@verifiedbkk.com
servers:
  - url: /api/v1
    description: Static JSON feeds on verifiedbkk.com
paths:
  /listings.json:
    get:
      summary: Listings index (public fields + empty P0 envelopes)
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
  /listings.ndjson:
    get:
      summary: Same listings, one JSON object per line
      responses:
        "200":
          description: OK
          content:
            application/x-ndjson:
              schema:
                type: string
  /taxonomy.json:
    get:
      summary: Service taxonomy
      responses:
        "200":
          description: OK
  /areas.json:
    get:
      summary: Bangkok khet catalog + centroids + alias stubs
      responses:
        "200":
          description: OK
  /changes.json:
    get:
      summary: Dated changes stub
      responses:
        "200":
          description: OK

  /feed-terms.html:
    get:
      summary: Feed terms of use (EN)
      responses:
        "200":
          description: HTML page
