> ## 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.

# /afishafi/events

> Get a full Afisha.fi event by id or event page URL: title, description, start and end dates, city, organizer, price and currency, ticket link, images and view count.

**Price:** 1 credit

**💡 AI Hint:** Fetch a single Afisha.fi event by numeric id or by its event page URL (https://www.afisha.fi/event/{id}). Returns one item with id, title, description, start_at/end_at (local Finland dates), city, organizer, price, currency (EUR), ticket_url, images, view_count, source_url and lang. Discover events via afishafi/events/search.

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



## OpenAPI

````yaml /openapi/events-tickets.json post /api/afishafi/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/afishafi/events:
    post:
      tags:
        - /afishafi
      summary: /afishafi/events
      description: >-
        Get a full Afisha.fi event by id or event page URL: title, description,
        start and end dates, city, organizer, price and currency, ticket link,
        images and view count.


        **Price:** 1 credit


        **💡 AI Hint:** Fetch a single Afisha.fi event by numeric id or by its
        event page URL (https://www.afisha.fi/event/{id}). Returns one item with
        id, title, description, start_at/end_at (local Finland dates), city,
        organizer, price, currency (EUR), ticket_url, images, view_count,
        source_url and lang. Discover events via afishafi/events/search.


        **⚠️ Common errors:** 412: Event not found (well-formed but nonexistent
        event id)
      operationId: __api_afishafi_events_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AfishafiEventsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AfishafiEvent'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AfishafiEventsPayload:
      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:
            - '597069'
            - https://www.afisha.fi/event/597069
      type: object
      required:
        - event
    AfishafiEvent:
      properties:
        '@type':
          type: string
          default: AfishafiEvent
        id:
          type: integer
        description:
          anyOf:
            - type: string
            - type: 'null'
        start_at:
          anyOf:
            - type: string
            - type: 'null'
        end_at:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        organizer:
          anyOf:
            - type: string
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        ticket_url:
          anyOf:
            - type: string
            - type: 'null'
        images:
          items:
            type: string
          type: array
          default: []
        view_count:
          anyOf:
            - type: integer
            - type: 'null'
        source_url:
          anyOf:
            - type: string
            - type: 'null'
        lang:
          type: string
          default: ru
      type: object
      required:
        - id
        - title
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      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

````