AD Ayyo-db v2.0.0 ayyo-db-arena-27523a2f-ayyo-db
Test API OpenAPI GitHub
Universal IMDb SDK • Edge-ready • OpenAPI 3.1

One IMDb API.
Every programming language.

Ayyo-db turns your resilient 5-layer IMDb search and title detail aggregator into native packages across 10 ecosystems (plus 50+ languages via OpenAPI 3.1), with automated branch-aware package names and turnkey Cloudflare Pages & Workers support.

10 + 50
Native SDKs + OpenAPI
5 Layers
IMDb fallback merge
ayyo-db-arena-27523a2f-ayyo-db
Active package name
0 Deps
Py, JS, Go, PHP, Rb, .NET

Live Testing Lab

Test IMDb keyword search with visual poster cards, tap any card for full details, inspect raw JSON, generate code in your language, or run the automated 7-check test suite right in this page.

Recent:
200 OK 0 ms 0 B
Enter a movie/series title or pick a sample chip above, then press Search.
Raw JSON Response
// Click Search, Fetch Detail, or GET /api to inspect the live response.

Branch-Aware Package Naming

GitHub Actions resolves the package name automatically from the branch being built: on your main branch (configured via MAIN_BRANCHES, default main,master), it publishes using the repository name only (ayyo-db). On any other branch, it appends the sanitized branch name (ayyo-db-<branch>) so branches never collide and can be installed side by side.

Ecosystem Package / Artifact Name Import / Usage

Install & Quickstart

Every snippet below updates automatically when you change the branch above. All native clients support both direct mode (no server needed) and hosted API mode (pass your Cloudflare Pages/Worker or Vercel URL).

Install
Example

REST Endpoints

Compatible identically across Cloudflare Workers, Cloudflare Pages Functions, and Vercel Python Serverless. CORS is enabled for GET and OPTIONS.

GET /api

Returns machine-readable API metadata, pipeline layers, endpoint contracts, and operational notes.

GET /health

Lightweight edge health check returning {"status":"ok","service":"ayyo-db"} (Cloudflare Pages & Workers).

GET /api/search?q=<query>&page=1&per_page=10

Search movies and TV series with 1-based pagination (per_page accepts 1–20).

ParameterTypeRulesDescription
qstring1–200 charsSearch keyword(s), e.g. kgf
pageinteger≥ 1 (default 1)1-based page number
per_pageinteger1–20 (default 10)Results per page
GET /api/search?id=<imdb_id>

Resolves full metadata for one title. Always returns consistent keys: Title, Year, Poster, Plot, imdbRating, Director, Writer, Stars, Genres, Runtime, Language, ReleaseDate, and imdbID.

StatusMeaning
200Success (returns TitleDetail, SearchResponse, or {"error":"No results found"})
400Missing or invalid parameter (id must match ^tt\d{5,12}$, page must be positive integer)
405Unsupported HTTP method (use GET or OPTIONS)
500Unexpected server error

5-Layer Detail Fallback Pipeline

IMDb HTML fluctuates across regions and anti-bot checks. Ayyo-db merges fields strictly from non-empty values (only filling N/A slots) and skips duplicate upstream calls.

1
IMDb Title Page JSON-LD

Parses server-side application/ld+json for title, rating, ISO-8601 duration, language, release date, genres, directors, writers, and cast (Python & JS/TS).

2
Structural Regex & /reference HTML Parser

Fills missing credits or metadata when JSON-LD is partial, with re.escape ID safety and full HTML entity decoding.

3
api.imdbapi.dev Structured API

Queries title metadata, /credits?pageSize=20, and /releaseDates (preferring US release date, otherwise first available).

4
Cinemeta (Movie & Series)

Checks /meta/movie/{id}.json first and automatically falls back to /meta/series/{id}.json for TV shows.

5
IMDb Suggestion Minimal Fallback

Returns at least title, year, poster, and imdbID so client cards never crash or render blank.

Pyrogram Telegram Bot Example

Drop-in upgrade using the native Python package (works in either direct mode or hosted API mode):

bot.py (Python / Pyrogram)

OpenAPI 3.1 (50+ Languages)

Need Kotlin, Swift, Elixir, Scala, Lua, Perl, Haskell, R, OCaml, C++, or PowerShell? Generate a branch-named client directly from the validated OpenAPI 3.1 schema or trigger the OpenAPI SDKs GitHub Actions workflow.

Generate any language SDK locally

Cloudflare Deployment & GitHub Workflows

Deploy both the interactive documentation AND the live edge API on either Cloudflare Pages or Cloudflare Workers. The workflow automatically aligns the project's production branch so your default/main branch serves directly on the root *.pages.dev URL.

Local build & deploy commands

Included GitHub Workflows

WorkflowTriggerPurpose
ci.ymlPush & PR (all branches)Resolves branch names, tests all 10 language packages, Vercel handlers, Worker, OpenAPI sync, and docs build.
publish.ymlPush / v* tags / manualStages all packages with branch-aware names, uploads artifacts, creates GitHub Releases, and publishes to registries whose tokens are configured.
docs-deploy.ymlDocs/Worker changes / manualBuilds branch-stamped docs and deploys production to *.pages.dev (main/default branch) or preview aliases (other branches) and/or Cloudflare Workers.
openapi-sdks.ymlTags / manualGenerates typed SDK bundles for 50+ languages via OpenAPI Generator.

Optional Repository Secrets & Variables

NameKindBehavior when omitted
CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_IDSecretDocs workflow still builds & uploads artifact without failing.
PYPI_API_TOKENSecretPython wheel/sdist still built & attached to artifacts/release.
NPM_TOKENSecretnpm tarball still built & GitHub Packages scoped install remains available.
CARGO_REGISTRY_TOKEN, RUBYGEMS_API_KEY, NUGET_API_KEYSecretEach step safely skips publishing and logs instructions in the job summary.
MAIN_BRANCHESVariableDefaults to main,master. Set to e.g. mnbots if your default branch is mnbots.
BRANCH_NAME_MODEVariablerepo-branch (default: ayyo-db-<branch>) or branch-only (<branch>).