Movie Planner Library API

The Library API from Movie Planner — 2 operation(s) for library.

GitHub OpenAPI

Operations 2

GET /v1/library/unwatched Непросмотренные фильмы текущей комнаты #
GET /v1/library/query Гибкий AND-фильтр по своей библиотеке (жанр, актёр, оценка, план, тег…) #

Specifications

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/movie-planner-ru:movie-planner-ru-library-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

movie-planner-ru-library-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Movie Planner Unified Library API
  version: 1.2.2
  description: 'Единый API для Mini App, сайта movie-planner.ru, Chrome-расширения и

    нативных мобильных приложений (React Native).


    Билеты (`POST /v1/plans/{id}/tickets`) поддерживаются только для планов с `plan_type: cinema`.

    Для кино в `POST /v1/plans` передавайте реальное название и/или адрес кинотеатра; **не передавайте заглушки**

    вроде одного слова «Кинотеатр» без адреса — геокодер интерпретирует это как запрос и может выбрать случайную точку в городе.

    Если адрес пользователя ещё неизвестен, **опустите** `cinema_name` и `cinema_address`.

    При осмысленной строке и отсутствии координат сервер при `YANDEX_GEOCODER_API_KEY` нормализует адрес и подставит `cinema_lat` / `cinema_lon`.

    События в Google Calendar и .ics получают человекочитаемое описание (ссылка на Кинопоиск, кинотеатр, Яндекс.Карты).


    MCP Streamable HTTP: `/mcp` — те же Bearer-токены, что для `/v1` (инструменты для Cursor / Claude Desktop).


    Три группы авторизации:

    • `/api/miniapp/*` — Telegram Mini App (initData) ИЛИ Bearer JWT (RN).

    • `/api/site/*` — Bearer token из site_sessions.

    • `/v1/*` — версия API для агентов; Bearer = JWT, site session или OAuth token.

    Для OAuth: если при authorize указан непустой `scope`, на /v1 проверяются права

    (profile.read, movies.read/write, plans.read/write, calendar.read). Пустой scope у OAuth = полный доступ.

    • `/oauth/*` — OAuth2 code + PKCE: authorize (нужен уже залогиненный Bearer) и token.

    • `/api/extension/*` — chat_id query param (legacy).

    • `/api/auth/*` — регистрация / refresh / me, выдаёт JWT пары.

    • `/api/push/register` — FCM-токен устройств RN.

    • `/api/maps/*` — общие maps-подсказки (без авторизации).


    Стабильные поля в ответах всех плановых/фильмовых эндпоинтов совместимы,

    что даёт возможность генерировать единый клиент (openapi-typescript).'
servers:
- url: https://web-production-3921c.up.railway.app
  description: Production
security:
- BearerAuth: []
- SiteSession: []
tags:
- name: Library
paths:
  /v1/library/unwatched:
    get:
      tags:
      - Library
      summary: Непросмотренные фильмы текущей комнаты
      security:
      - BearerAuth: []
      - SiteSession: []
      responses:
        '200':
          description: ok
        '401':
          description: unauthorized
      operationId: getV1LibraryUnwatched
      x-operation-id-source: derived
  /v1/library/query:
    get:
      tags:
      - Library
      summary: Гибкий AND-фильтр по своей библиотеке (жанр, актёр, оценка, план, тег…)
      security:
      - BearerAuth: []
      - SiteSession: []
      parameters:
      - in: query
        name: actor
        schema:
          type: string
      - in: query
        name: director
        schema:
          type: string
      - in: query
        name: watched
        schema:
          type: string
          enum:
          - '0'
          - '1'
          - all
        description: 'Фильтр до пагинации: оценки, импорт КП и отметки просмотра учитываются как просмотренное.'
      - in: query
        name: has_rating
        schema:
          type: string
          enum:
          - '0'
          - '1'
          - all
      - in: query
        name: limit
        schema:
          type: integer
          maximum: 200
      - in: query
        name: offset
        schema:
          type: integer
      responses:
        '200':
          description: ok
        '401':
          description: unauthorized
      operationId: getV1LibraryQuery
      x-operation-id-source: derived
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    SiteSession:
      type: apiKey
      in: header
      name: Authorization
      description: Bearer <site_session_token>