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.
Live Testing Lab Interactive
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.
Verify live service version, fallback pipeline order, and edge worker status.
// 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).
REST Endpoints
Compatible identically across Cloudflare Workers, Cloudflare Pages Functions,
and Vercel Python Serverless. CORS is enabled for GET and OPTIONS.
Returns machine-readable API metadata, pipeline layers, endpoint contracts, and operational notes.
Lightweight edge health check returning {"status":"ok","service":"ayyo-db"} (Cloudflare Pages & Workers).
Search movies and TV series with 1-based pagination (per_page accepts 1–20).
| Parameter | Type | Rules | Description |
|---|---|---|---|
q | string | 1–200 chars | Search keyword(s), e.g. kgf |
page | integer | ≥ 1 (default 1) | 1-based page number |
per_page | integer | 1–20 (default 10) | Results per page |
Resolves full metadata for one title. Always returns consistent keys:
Title, Year, Poster, Plot, imdbRating,
Director, Writer, Stars, Genres,
Runtime, Language, ReleaseDate, and imdbID.
| Status | Meaning |
|---|---|
200 | Success (returns TitleDetail, SearchResponse, or {"error":"No results found"}) |
400 | Missing or invalid parameter (id must match ^tt\d{5,12}$, page must be positive integer) |
405 | Unsupported HTTP method (use GET or OPTIONS) |
500 | Unexpected 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.
Parses server-side application/ld+json for title, rating, ISO-8601 duration, language, release date, genres, directors, writers, and cast (Python & JS/TS).
/reference HTML Parser
Fills missing credits or metadata when JSON-LD is partial, with re.escape ID safety and full HTML entity decoding.
api.imdbapi.dev Structured API
Queries title metadata, /credits?pageSize=20, and /releaseDates (preferring US release date, otherwise first available).
Checks /meta/movie/{id}.json first and automatically falls back to /meta/series/{id}.json for TV shows.
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):
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.
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.
Included GitHub Workflows
| Workflow | Trigger | Purpose |
|---|---|---|
ci.yml | Push & PR (all branches) | Resolves branch names, tests all 10 language packages, Vercel handlers, Worker, OpenAPI sync, and docs build. |
publish.yml | Push / v* tags / manual | Stages all packages with branch-aware names, uploads artifacts, creates GitHub Releases, and publishes to registries whose tokens are configured. |
docs-deploy.yml | Docs/Worker changes / manual | Builds branch-stamped docs and deploys production to *.pages.dev (main/default branch) or preview aliases (other branches) and/or Cloudflare Workers. |
openapi-sdks.yml | Tags / manual | Generates typed SDK bundles for 50+ languages via OpenAPI Generator. |
Optional Repository Secrets & Variables
| Name | Kind | Behavior when omitted |
|---|---|---|
CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID | Secret | Docs workflow still builds & uploads artifact without failing. |
PYPI_API_TOKEN | Secret | Python wheel/sdist still built & attached to artifacts/release. |
NPM_TOKEN | Secret | npm tarball still built & GitHub Packages scoped install remains available. |
CARGO_REGISTRY_TOKEN, RUBYGEMS_API_KEY, NUGET_API_KEY | Secret | Each step safely skips publishing and logs instructions in the job summary. |
MAIN_BRANCHES | Variable | Defaults to main,master. Set to e.g. mnbots if your default branch is mnbots. |
BRANCH_NAME_MODE | Variable | repo-branch (default: ayyo-db-<branch>) or branch-only (<branch>). |