Yondry Campaigns API

The campaigns API from Yondry, for campaigns.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /api/v1/campaigns/active Get Active Campaign #
GET /api/v1/campaigns/{slug}/venues Get Campaign Venues #

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/yondry-app:yondry-app-campaigns-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

yondry-app-campaigns-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Yondry Campaigns API
  version: 0.1.0
tags:
- name: Campaigns
paths:
  /api/v1/campaigns/active:
    get:
      tags:
      - Campaigns
      summary: Get Active Campaign
      description: 'The campaign live right now, or 204 when there is none.


        204 rather than an empty object so the app can branch on the status code

        and render nothing without parsing a body. Off-season and

        kill-switch-disabled are deliberately indistinguishable from out here.


        Builds that do not send ui=1 hardcode the pumpkin wording, so they are

        only shown a campaign marked legacy_app_safe; for anything else they get

        the same 204 as off-season, and show no card rather than the wrong one.'
      operationId: get_active_campaign_api_v1_campaigns_active_get
      parameters:
      - name: ui
        in: query
        required: false
        schema:
          type: boolean
          description: Sent as ui=1 by builds that render `ui`; older builds omit it.
          default: false
          title: Ui
        description: Sent as ui=1 by builds that render `ui`; older builds omit it.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/CampaignResponse'
                - type: 'null'
                title: Response Get Active Campaign Api V1 Campaigns Active Get
        '204':
          description: No campaign is currently active
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/campaigns/{slug}/venues:
    get:
      tags:
      - Campaigns
      summary: Get Campaign Venues
      description: 'Up to 8 genuine anchor venues near the caller, pinned first then nearest.


        404 when the slug is not the live campaign — including when it is a real

        campaign that is out of season, since a stale app build asking for last

        year''s event should get the same answer as one asking for nonsense.'
      operationId: get_campaign_venues_api_v1_campaigns__slug__venues_get
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
          title: Slug
      - name: lat
        in: query
        required: true
        schema:
          type: number
          maximum: 90.0
          minimum: -90.0
          title: Lat
      - name: lng
        in: query
        required: true
        schema:
          type: number
          maximum: 180.0
          minimum: -180.0
          title: Lng
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignVenuesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    CampaignResponse:
      properties:
        slug:
          type: string
          title: Slug
        title:
          type: string
          title: Title
        subtitle:
          type: string
          title: Subtitle
        active_from:
          type: string
          format: date-time
          title: Active From
        active_to:
          type: string
          format: date-time
          title: Active To
        preset_chips:
          items:
            type: string
          type: array
          title: Preset Chips
        default_companion:
          type: string
          title: Default Companion
        chip_companions:
          additionalProperties:
            type: string
          type: object
          title: Chip Companions
        ui:
          $ref: '#/components/schemas/CampaignCopyResponse'
      type: object
      required:
      - slug
      - title
      - subtitle
      - active_from
      - active_to
      - preset_chips
      - default_companion
      - chip_companions
      - ui
      title: CampaignResponse
      description: The campaign currently live — what the app's home card renders from.
    CampaignVenue:
      properties:
        place_id:
          type: string
          title: Place Id
        name:
          type: string
          title: Name
        address:
          anyOf:
          - type: string
          - type: 'null'
          title: Address
        lat:
          type: number
          title: Lat
        lng:
          type: number
          title: Lng
        distance_km:
          type: number
          title: Distance Km
        rating:
          anyOf:
          - type: number
          - type: 'null'
          title: Rating
        user_rating_count:
          anyOf:
          - type: integer
          - type: 'null'
          title: User Rating Count
        website_url:
          anyOf:
          - type: string
          - type: 'null'
          title: Website Url
        opening_hours:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          title: Opening Hours
        likely_car_only:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Likely Car Only
        nearest_station_km:
          anyOf:
          - type: number
          - type: 'null'
          title: Nearest Station Km
        is_pinned:
          type: boolean
          title: Is Pinned
          default: false
      type: object
      required:
      - place_id
      - name
      - lat
      - lng
      - distance_km
      title: CampaignVenue
      description: One candidate anchor venue.
    CampaignCopyResponse:
      properties:
        emoji:
          type: string
          title: Emoji
        cta_label:
          type: string
          title: Cta Label
        venues_label:
          type: string
          title: Venues Label
        count_singular:
          type: string
          title: Count Singular
        count_plural:
          type: string
          title: Count Plural
        empty_title:
          type: string
          title: Empty Title
        empty_message:
          type: string
          title: Empty Message
        empty_action_label:
          type: string
          title: Empty Action Label
      type: object
      required:
      - emoji
      - cta_label
      - venues_label
      - count_singular
      - count_plural
      - empty_title
      - empty_message
      - empty_action_label
      title: CampaignCopyResponse
      description: The card, picker and empty-state wording. See seasonal_campaigns.CampaignCopy.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CampaignVenuesResponse:
      properties:
        slug:
          type: string
          title: Slug
        venues:
          items:
            $ref: '#/components/schemas/CampaignVenue'
          type: array
          title: Venues
      type: object
      required:
      - slug
      - venues
      title: CampaignVenuesResponse
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
    HTTPBearer:
      type: http
      scheme: bearer