Sober Bars Listings API

The Listings API from Sober Bars — 2 operation(s) for listings.

GitHub OpenAPI

Operations 2

GET /listings Search and list listings #
GET /listings/{slug} Read one listing #

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/soberbars-fyi:soberbars-fyi-listings-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

soberbars-fyi-listings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sober Bars Listings API
  version: '1'
  description: The read API is free, needs no key and reads only. The admin routes under /admin/ need an admin session. Every read response carries `meta.attribution` and `meta.sources`.
servers:
- url: https://soberbars.fyi/api/v1
tags:
- name: Listings
paths:
  /listings:
    get:
      summary: Search and list listings
      operationId: getListings
      parameters:
      - name: q
        in: query
        required: false
        description: Search text, with at least one letter or digit. Matches name, categories, attributes, description and place. Typos fall back to close matches.
        schema:
          type: string
          minLength: 1
          maxLength: 200
      - name: country
        in: query
        required: false
        description: ISO 3166-1 alpha-2 country code, any case. A country the directory does not cover, as listed in /places, gives 400.
        schema:
          type: string
          pattern: ^[A-Za-z]{2}$
      - name: region
        in: query
        required: false
        description: Region slug, from /places.
        schema:
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
      - name: city
        in: query
        required: false
        description: City slug, from /places.
        schema:
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
      - name: category
        in: query
        required: false
        description: Category slug, from /categories. A parent slug also matches its children.
        schema:
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
      - name: sort
        in: query
        required: false
        description: '`relevance` needs `q` and is the default with it. `name` is the default without `q`. `recent` is newest first.'
        schema:
          type: string
          enum:
          - relevance
          - name
          - recent
      - name: limit
        in: query
        required: false
        description: Items per page.
        schema:
          default: 20
          type: integer
          minimum: 1
          maximum: 50
      - name: cursor
        in: query
        required: false
        description: '`page.nextCursor` from the previous response. Opaque. Send the same filters and `limit`.'
        schema:
          type: string
          minLength: 1
          maxLength: 200
      responses:
        '200':
          description: Success.
          headers:
            RateLimit-Limit:
              description: Requests allowed per window. 300.
              schema:
                type: string
            RateLimit-Policy:
              description: The policy as `limit;w=seconds`. `300;w=60`.
              schema:
                type: string
            Access-Control-Allow-Origin:
              description: '`*`. Any origin may read.'
              schema:
                type: string
            ETag:
              description: A weak validator. Send it back as `If-None-Match`.
              schema:
                type: string
            Cache-Control:
              description: '`public, max-age=60, s-maxage=300, stale-while-revalidate=600`.'
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                - page
                - meta
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/ListingItem'
                  page:
                    $ref: '#/components/schemas/Page'
                  meta:
                    $ref: '#/components/schemas/Meta'
      tags:
      - Listings
  /listings/{slug}:
    get:
      summary: Read one listing
      operationId: getListingsBySlug
      parameters:
      - name: slug
        in: path
        required: true
        description: The listing slug.
        schema:
          type: string
          minLength: 1
          maxLength: 100
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
      responses:
        '200':
          description: Success.
          headers:
            RateLimit-Limit:
              description: Requests allowed per window. 300.
              schema:
                type: string
            RateLimit-Policy:
              description: The policy as `limit;w=seconds`. `300;w=60`.
              schema:
                type: string
            Access-Control-Allow-Origin:
              description: '`*`. Any origin may read.'
              schema:
                type: string
            ETag:
              description: A weak validator. Send it back as `If-None-Match`.
              schema:
                type: string
            Cache-Control:
              description: '`public, max-age=60, s-maxage=300, stale-while-revalidate=600`.'
              schema:
                type: string
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - data
                - meta
                properties:
                  data:
                    $ref: '#/components/schemas/Listing'
                  meta:
                    $ref: '#/components/schemas/Meta'
      tags:
      - Listings
components:
  schemas:
    Page:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    Listing:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    ListingItem:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true
    Meta:
      type: object
      description: Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.
      x-ae-placeholder: true