Local Selections Bracket API

The Bracket API from Local Selections — 1 operation(s) for bracket.

GitHub OpenAPI

Operations 1

POST /bracket Run a Decision Bracket round and get a result #

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/localselections-com:localselections-com-bracket-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

localselections-com-bracket-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LocalSelections Public Bracket API
  version: 1.6.0
  description: 'The public REST surface for LocalSelections'' decision engine — the same shared foundation an MCP server and chat-bot integrations sit on top of (PROJECT_OVERVIEW.md section 3.6). Every endpoint below is a thin wrapper around the same internal logic the browser app itself calls; authenticate with a per-caller API key, not a browser session. Keys are issued by application (Stage 311): a new key starts pending and works only after LocalSelections approves it (12 months), and the application must show "Powered by LocalSelections" linked to localselections.com on its registered public URL, which is checked weekly. Every response is `Cache-Control: no-store` and carries an `X-LocalSelections-Terms` header naming the terms. Each key carries one or more scopes minted at creation time via /account/api-keys — one real scope per endpoint (`spin`, `search`, `surprise_me`, `bracket`, `groups_host`, `groups_join`, `places`, `events`, `movies`), or the superset `all` — an out-of-scope call gets a 403, not a silent failure. Rate limits are tiered by the key owner''s subscription status (10 units/60s free, 120 units/60s subscribed; Stage 311) and cost-weighted per endpoint rather than a flat 1 per call — see each path and the 429 response for its real cost. Call GET /introspect at any time to see a key''s real current scopes, rate-limit usage, and commercial status without spending any of its budget. Keys minted before this per-endpoint scope model shipped (Stage 104) were migrated in place to the equivalent new scope(s), so no pre-existing key lost or gained access. Stage 196 added /places, /events, and /movies — direct, freeform read access to the same real local-data sources (Places, events, TMDB) the game mechanics above already narrow to a single pick, each result carrying a `detailUrl` to a real, permanent LocalSelections page when one exists, for a caller/agent that wants to link back to us rather than just narrate a result. Stage 198: because those three endpoints expose the real underlying database rather than a narrowed pick, non-commercial use of them is additionally capped by a per-key daily ceiling (50/40/75 calls per day for places/events/movies on a free key, the original 100/80/150 for a subscribed one; Stage 311 — a 429 with `error: "daily_limit_exceeded"`, distinct from the shared per-minute rate_limited response) — commercial use (primary purpose is revenue for the caller, mirroring how TMDB itself defines commercial use) requires contacting us directly for a paid license before a key is upgraded out of the free tier; `api_keys.commercial` (admin-set only, never self-service) governs the exemption. Use of this API is governed by the API Terms of Use (termsOfService below) — attribution, no caching/storing/redistributing/reselling data beyond a single request-response use, and immediate revocation on violation. Place data notices (Stage 234): the /places data comes from Overture Maps (Overture Maps Foundation, overturemaps.org) and includes Foursquare OS Places records licensed under Apache 2.0 — Foursquare''s NOTICE.txt text, the Overture source list and our notice of changes are reproduced in section 8 of the API Terms and on /legal. Chicago event data (Chicago Park District outdoor event permits, City of Chicago Data Portal): This site provides applications using data that has been modified for use from its original source, www.cityofchicago.org, the official website of the City of Chicago. The City of Chicago makes no claims as to the content, accuracy, timeliness, or completeness of any of the data provided at this site. The data provided at this site is subject to change at any time. It is understood that the data provided at this site is being used at one’s own risk. Full notice: https://localselections.com/legal'
  termsOfService: https://localselections.com/api-terms
servers:
- url: /api/v1
  description: Relative to whichever host this spec was fetched from.
security:
- ApiKeyAuth: []
tags:
- name: Bracket
paths:
  /bracket:
    post:
      summary: Run a Decision Bracket round and get a result
      description: 'Bracket is a swipe-to-keep/reject flow in the browser (fetch real candidates for one category, decide each one independently, tie-break if more than one is kept) — genuinely multi-step, unlike /spin''s single weighted pick, which is why Stage 42 originally left it out of this surface. This endpoint supports two shapes, chosen by whether `decisions` is supplied: omit it for the default "auto" mode, where the server fetches real candidates and runs the keep/reject pass itself (biased toward more-trending/closer/boosted places — or higher-rated for a movie-sourced category — not a coin flip), auto-resolving any tie with the same real data the interactive tie-break uses; or supply `decisions` — an array of `{ id, keep }` referencing candidate ids returned by a *prior* call to this same endpoint with identical categoryMode/optionId/lat/lng — to control the outcome yourself. This endpoint is otherwise stateless (no session is stored server-side): a same-parameters follow-up call typically returns the same candidate set thanks to the shared api_cache layer, but this isn''t guaranteed, so a `decisions` id that no longer matches a fetched candidate is simply ignored (treated as not kept). Every response includes the full per-candidate rating/trendingScore/distance/sponsored/kept breakdown, not just a bare winner — Stage 153: place-sourced candidates no longer carry a real Google rating (see /search''s description), so `trendingScore` (this app''s own free first-party selection/liked-history signal) is what actually drives their ranking and tie-break now. Requires the `bracket` scope. Costs 4 units of the key''s rate-limit budget per call — the heaviest of the six v1 endpoints, since it fetches and scores a full candidate list rather than narrowing to one pick.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                categoryMode:
                  type: string
                  enum:
                  - cuisine
                  - activity
                optionId:
                  type: string
                  description: e.g. "sushi" for cuisine, or "hike"/"bowling"/"museum"/"movie"/"live-music" for activity — game-night is excluded (no real per-candidate data).
                lat:
                  type: number
                  description: Required (with lng) for cuisine and most activity categories — not needed for movie.
                lng:
                  type: number
                decisions:
                  type: array
                  description: Explicit keep/reject per candidate id, from a prior call's `candidates`. Omitted = automatic resolution. Any candidate id not mentioned is treated as rejected.
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      keep:
                        type: boolean
                    required:
                    - id
                    - keep
              required:
              - categoryMode
              - optionId
      responses:
        '200':
          description: The category, every fetched candidate with its rating/trendingScore/distance/sponsored/kept breakdown, and the resolved outcome.
          content:
            application/json:
              schema:
                type: object
                properties:
                  mechanic:
                    type: string
                  categoryMode:
                    type: string
                  category:
                    type: object
                    properties:
                      id:
                        type: string
                      label:
                        type: string
                    required:
                    - id
                    - label
                  candidates:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        name:
                          type: string
                        rating:
                          type:
                          - number
                          - 'null'
                        distanceMiles:
                          type:
                          - number
                          - 'null'
                        trendingScore:
                          type: number
                          description: 'Stage 153: real first-party selection/liked-history weight (lib/games/placeTrending.ts) fed into ranking/tie-break in place of Google''s rating for a place-sourced candidate — always 0 for movie/event candidates.'
                        sponsored:
                          type: boolean
                        kept:
                          type: boolean
                          description: Whether this candidate was kept (explicitly via `decisions`, or by the automatic resolution pass).
                      required:
                      - id
                      - name
                      - rating
                      - distanceMiles
                      - trendingScore
                      - sponsored
                      - kept
                  outcome:
                    type: string
                    enum:
                    - no_candidates_found
                    - single_kept
                    - zero_kept_random_fallback
                    - multiple_kept_tiebreak
                  winner:
                    type:
                    - object
                    - 'null'
                    properties:
                      id:
                        type: string
                      label:
                        type: string
                  narrowed:
                    type:
                    - object
                    - 'null'
                    description: A concrete, real result for the winning category — shape depends on `source`.
                    properties:
                      source:
                        type: string
                        enum:
                        - place
                        - movie
                        - event
                        - game-night
                        - none
                      place:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          distanceMiles:
                            type:
                            - number
                            - 'null'
                          address:
                            type:
                            - string
                            - 'null'
                          mapsUri:
                            type: string
                            format: uri
                          trending:
                            type:
                            - object
                            - 'null'
                            properties:
                              contributorCount:
                                type: integer
                                description: Distinct users who were shown this place as their actual narrowed/won result, all-time.
                              likedCount:
                                type: integer
                                description: Subset of contributorCount who also left a real "liked" outcome vote.
                              recentContributorCount:
                                type: integer
                                description: Subset of contributorCount within the last 7 days.
                            required:
                            - contributorCount
                            - likedCount
                            - recentContributorCount
                            description: Null only if the trending lookup itself failed — otherwise always present, with 0s when there's no real history yet.
                          sponsored:
                            type: boolean
                            description: True when this place has an active, admin-approved vendor boost (Stage 28) — always ranked among places that would organically appear in this search, never inserted separately.
                          vendorDetails:
                            type:
                            - object
                            - 'null'
                            properties:
                              hours:
                                type:
                                - string
                                - 'null'
                              phone:
                                type:
                                - string
                                - 'null'
                              website:
                                type:
                                - string
                                - 'null'
                                format: uri
                              menuHighlights:
                                type:
                                - string
                                - 'null'
                            required:
                            - hours
                            - phone
                            - website
                            - menuHighlights
                            description: 'Stage 185: the claimed vendor''s own submitted hours/phone/website/menu highlights (Stage 184), when their listing is approved and at least one field has been submitted. Null otherwise. Takes display precedence over any Overture/Geoapify-sourced equivalent value for the same place.'
                          origin:
                            type: string
                            enum:
                            - overture
                            - geoapify
                            - google_places
                            description: 'Stage 191: which real source this place actually came from. Overture (local_selections.places, confidence-floored + deduped) and Geoapify (local_places) are tried first, free of any real API cost; Google Places is the fallback for whatever gap remains.'
                          detailUrl:
                            type:
                            - string
                            - 'null'
                            format: uri
                            description: 'Stage 196: a real, permanent LocalSelections detail page for this exact place, reusing that page''s own indexability rules (never a link to a page that would itself noindex, 301 elsewhere, or not exist). Null for every `google_places`-origin result (no permanent page exists for one) and for a local result that hasn''t cleared the stricter indexing confidence floor or has an unresolved cross-source duplicate. Only present on /places (not /search, which predates this field).'
                        required:
                        - id
                        - name
                        - mapsUri
                        - origin
                      title:
                        type: object
                        properties:
                          id:
                            type: string
                          title:
                            type: string
                          mediaType:
                            type: string
                            enum:
                            - movie
                            - tv
                          overview:
                            type:
                            - string
                            - 'null'
                          posterUrl:
                            type:
                            - string
                            - 'null'
                            format: uri
                          rating:
                            type:
                            - number
                            - 'null'
                          releaseDate:
                            type:
                            - string
                            - 'null'
                          tmdbUrl:
                            type: string
                            format: uri
                            description: Link to the title at its source provider — TMDB, or IMDb when a fallback served it (see `provider`).
                          provider:
                            type: string
                            enum:
                            - tmdb
                            - omdb
                            - tvmaze
                            description: Which provider produced this title. Absent means TMDB.
                          detailUrl:
                            type:
                            - string
                            - 'null'
                            format: uri
                            description: 'Stage 196: a real, permanent LocalSelections detail page for this exact title, reusing that page''s own indexability rule (a TMDB-provider title with enough real overview text). Null for a non-TMDB-provider title (no local page exists) or one without enough overview text to index. Only present on /movies (not /spin or /bracket''s narrowed/candidate titles, which predate this field).'
                        required:
                        - id
                        - title
                        - mediaType
                        - tmdbUrl
                      event:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          venueName:
                            type:
                            - string
                            - 'null'
                          date:
                            type:
                            - string
                            - 'null'
                          time:
                            type:
                            - string
                            - 'null'
                          distanceMiles:
                            type:
                            - number
                            - 'null'
                          address:
                            type:
                            - string
                            - 'null'
                          imageUrl:
                            type:
                            - string
                            - 'null'
                            format: uri
                          ticketUrl:
                            type: string
                            format: uri
                          origin:
                            type: string
                            enum:
                            - ticketmaster
                            - user_submitted
                            - municipal
                            - web_schema
                            - rss_ical
                            description: 'Stage 182/183/186: which source this event came from — never blended indistinguishably. "municipal" is an official city open-data event calendar (currently New York, NY and Los Angeles, CA). "web_schema"/"rss_ical" are found directly on a business''s own site (schema.org/JSON-LD markup, or a real structured RSS/iCal feed).'
                          originLabel:
                            type: string
                            description: 'Stage 196: human-readable form of `origin` (e.g. "Ticketmaster", "the venue''s own website"). Only present on /events (not /spin or /bracket''s narrowed/candidate events, which predate this field).'
                          detailUrl:
                            type:
                            - string
                            - 'null'
                            format: uri
                            description: 'Stage 196: a real, permanent LocalSelections detail page for this exact event, reusing that page''s own content floor (enough real name/date/location, not ended). Always null for a `ticketmaster`-origin event — resolving it would require a second, separately-billed Ticketmaster API call per event, multiplying real spend against the same shared daily ceiling every other Ticketmaster call already draws from; use `ticketUrl` (the original listing) for those instead. Only present on /events (not /spin or /bracket, which predate this field).'
                        required:
                        - id
                        - name
                        - ticketUrl
                        - origin
                      suggestion:
                        type: object
                        properties:
                          id:
                            type: string
                          name:
                            type: string
                          players:
                            type: string
                          blurb:
                            type: string
                        required:
                        - id
                        - name
                        - players
                        - blurb
                      reason:
                        type: string
                        description: Present only when source is "none" — why nothing was narrowed (e.g. missing lat/lng, no results found).
                    required:
                    - source
                  tieBreak:
                    type:
                    - object
                    - 'null'
                    description: Present only when outcome is "multiple_kept_tiebreak" — the kept subset that was compared, which one won, and the criteria used.
                    properties:
                      candidates:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                            rating:
                              type:
                              - number
                              - 'null'
                            distanceMiles:
                              type:
                              - number
                              - 'null'
                            trendingScore:
                              type: number
                              description: 'Stage 153: real first-party selection/liked-history weight (lib/games/placeTrending.ts) fed into ranking/tie-break in place of Google''s rating for a place-sourced candidate — always 0 for movie/event candidates.'
                            sponsored:
                              type: boolean
                            kept:
                              type: boolean
                              description: Whether this candidate was kept (explicitly via `decisions`, or by the automatic resolution pass).
                          required:
                          - id
                          - name
                          - rating
                          - distanceMiles
                          - trendingScore
                          - sponsored
                          - kept
                      winnerId:
                        type: string
                      criteria:
                        type: array
                        items:
                          type: string
                  decisionId:
                    type:
                    - string
                    - 'null'
                required:
                - mechanic
                - categoryMode
                - category
                - candidates
                - outcome
        '400':
          description: The request body failed validation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                - error
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                - error
        '403':
          description: The API key does not carry the scope this endpoint requires (see the "Requires the ... scope" note on each path, or call GET /introspect to see a key's real granted scopes).
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                - error
        '429':
          description: 'Rate limit exceeded for this API key. The budget is 10 units/60s for keys owned by an unsubscribed account (30 before Stage 311), 120 units/60s for a subscribed account''s keys (Stage 60) — shared across every endpoint, but each endpoint spends a different number of units per call rather than always 1 (Stage 104): search/groups_host/groups_join/places/movies cost 1, surprise_me/events cost 2, spin costs 3, bracket costs 4. Call GET /introspect to see a key''s real remaining budget before it runs out.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                - error
        '502':
          description: An upstream data source failed or returned nothing usable.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                - error
      tags:
      - Bracket
      operationId: postBracket
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'A per-caller API key issued via the authenticated (browser-session) POST /api/account/api-keys endpoint. `Authorization: Bearer <key>` is also accepted as an alternative to the X-API-Key header. Each key carries scopes (`all`, or one or more of `spin`/`search`/`surprise_me`/`bracket`/`groups_host`/`groups_join`/`places`/`events`/`movies`) that gate which paths below it may call — see each path''s description for its required scope, or GET /introspect to check a key''s real scopes directly.'