Public read-only JSON API for vacuum tube data. All endpoints are unauthenticated, CORS-open (Access-Control-Allow-Origin: *), and cacheable. Intended for AI agents, third-party apps, and research tools.
Tubeofile exposes structured tube data via a small set of REST-style endpoints. The typical workflow for an agent or script is:
/api/tubes/index once to discover all available tube type numbers./api/tubes/{type_number} for full data on specific tubes./rolls/{type_number}-roll.json.Type numbers containing / or , (e.g. 5A/152M, RL2,4P6) must be URL-encoded.
Lightweight listing of every tube in the database. Start here.
Response:
Full structured data for a single tube: specs, pinout, equivalents, similar tubes, and source references. Returns 404 if no matching tube exists.
Response shape:
Full-text search and filtering. Returns an array of summary tube objects.
Query parameters:
q — full-text search query (searches type_number, description, notes, manufacturer)autocomplete=1 — prefix autocomplete mode (requires q)type — filter by tube_type_key (e.g. power_triode, small_signal_triode, power_pentode, rectifier)base_id — filter by tube base UUID (use /api/tubes/index to discover base names)vh — filter by heater voltage (e.g. 2.5, 6.3, 12.6, other)dht — 1 for directly heated only, 0 for indirectly heated onlylimit — max results (default 50, max 200)offset — pagination offset (default 0)Pre-generated tube rolling (substitution) analyses are served as static JSON at /rolls/{type_number}-roll.json. Not every tube has a rolling report — only targets that were specifically analyzed.
Rolling report structure is documented in the rolling FAQ.
Access-Control-Allow-Origin: * so browser-side clients can read them.Cache-Control headers with sensible defaults (minutes for search, up to an hour for the index and per-tube data).Tubeofile publishes /llms.txt at the site root following the emerging convention for AI-agent discoverability. It contains the same overview as this page in a Markdown format optimized for LLM consumption.
Every tube HTML page also embeds schema.org Product JSON-LD with a mainEntityOfPage pointer to the corresponding API URL, so agents that land on an HTML page via search can hop directly to structured data.