> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anysite.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /afishaboston/events

> Get a full Afisha Boston event by id or page URL: title, description, start and end dates, image, venue (name, address, city, state, postcode, country), organizer, ticket price range and currency, per-tier tickets (name, price, availability), event status, refund policy, ticket link, language and the event page URL.

**Price:** 1 credit

**💡 AI Hint:** Fetch a single Afisha Boston event by numeric id or by its event page URL (https://buy.afishaboston.com/events/afishaboston/{id}). Returns one item with id, title, description, image, start_at/end_at, event_status, price_min/price_max, currency, tickets (per-tier name/price/availability), venue, organizer, refund_policy, ticket_url, source_url and lang (ru/en).

**⚠️ Common errors:** 412: Event not found (well-formed but nonexistent id or URL)



## OpenAPI

````yaml /openapi/events-tickets.json post /api/afishaboston/events
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/afishaboston/events:
    post:
      tags:
        - /afishaboston
      summary: /afishaboston/events
      description: >-
        Get a full Afisha Boston event by id or page URL: title, description,
        start and end dates, image, venue (name, address, city, state, postcode,
        country), organizer, ticket price range and currency, per-tier tickets
        (name, price, availability), event status, refund policy, ticket link,
        language and the event page URL.


        **Price:** 1 credit


        **💡 AI Hint:** Fetch a single Afisha Boston event by numeric id or by
        its event page URL
        (https://buy.afishaboston.com/events/afishaboston/{id}). Returns one
        item with id, title, description, image, start_at/end_at, event_status,
        price_min/price_max, currency, tickets (per-tier
        name/price/availability), venue, organizer, refund_policy, ticket_url,
        source_url and lang (ru/en).


        **⚠️ Common errors:** 412: Event not found (well-formed but nonexistent
        id or URL)
      operationId: __api_afishaboston_events_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AfishabostonEventsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AfishabostonEvent'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AfishabostonEventsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        event:
          type: string
          minLength: 1
          description: Event id or event page URL
          examples:
            - '2202681'
            - https://buy.afishaboston.com/events/afishaboston/2202681
      type: object
      required:
        - event
    AfishabostonEvent:
      properties:
        '@type':
          type: string
          default: AfishabostonEvent
        id:
          type: integer
        description:
          anyOf:
            - type: string
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        start_at:
          anyOf:
            - type: string
            - type: 'null'
        end_at:
          anyOf:
            - type: string
            - type: 'null'
        event_status:
          anyOf:
            - type: string
            - type: 'null'
        price_min:
          anyOf:
            - type: number
            - type: 'null'
        price_max:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        tickets:
          items:
            $ref: '#/components/schemas/AfishabostonTicket'
          type: array
          default: []
        venue:
          anyOf:
            - $ref: '#/components/schemas/AfishabostonVenue'
            - type: 'null'
        organizer:
          anyOf:
            - $ref: '#/components/schemas/AfishabostonOrganizer'
            - type: 'null'
        refund_policy:
          anyOf:
            - type: string
            - type: 'null'
        ticket_url:
          anyOf:
            - type: string
            - type: 'null'
        source_url:
          anyOf:
            - type: string
            - type: 'null'
        lang:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - id
        - title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    AfishabostonTicket:
      properties:
        '@type':
          type: string
          default: AfishabostonTicket
        name:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        availability:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    AfishabostonVenue:
      properties:
        '@type':
          type: string
          default: AfishabostonVenue
        name:
          anyOf:
            - type: string
            - type: 'null'
        address:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        state:
          anyOf:
            - type: string
            - type: 'null'
        postcode:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    AfishabostonOrganizer:
      properties:
        '@type':
          type: string
          default: AfishabostonOrganizer
        name:
          anyOf:
            - type: string
            - type: 'null'
        url:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````