# The Cable Code > Decodes cable type designations (NYY-J 3x1,5, N2XSEYRY, H07RN-F 3G2,5, 12/2 NM-B, Cat6A S/FTP) into their layers, with the meaning and the source of every symbol, in 71 coding systems; designs, sizes, checks and rates cables by the standards. > Deterministic: no language model at runtime, except the datasheet and tender readers, where an LLM only copies values. A REST API and a remote MCP server, with free calls and x402 pay-per-call in USDC. This is the short index. The full guide, with every parameter, the pricing rules and how to read each answer, is https://thecablecode.com/llms-full.txt. Prices are in US dollars, paid with x402 v2 (scheme `exact`) in USDC on Base (`eip155:8453`); the 402 answer carries the requirements in the `PAYMENT-REQUIRED` header, the retry sends `PAYMENT-SIGNATURE`, and `X-Free-Remaining` counts the free calls left. Every API call takes `lang`, any of the site's 15 languages: en, tr, de, nl, sv, fr, es, da, no, fi, it, ro, pl, cs, ru. ## Docs - [Full agent guide](https://thecablecode.com/llms-full.txt): every endpoint with its parameters, how to read a decode, design, check, extraction, specification, drum and reference answer, the pricing rules and the sponsorship order - [OpenAPI 3.1](https://thecablecode.com/api/v1/openapi.json): the full contract, every route below with its 402 and 429 answers - [Paid routes OpenAPI](https://thecablecode.com/openapi.json): the pay-per-call routes only, at the root, for x402 directories - [Decode JSON Schema](https://thecablecode.com/api/v1/schema/decode-v1.json): thecablecode.decode/v1 - [Design JSON Schema](https://thecablecode.com/api/v1/schema/design-v1.json): thecablecode.design/v1 - [Check JSON Schema](https://thecablecode.com/api/v1/schema/check-v1.json): thecablecode.check/v1 - [Extract JSON Schema](https://thecablecode.com/api/v1/schema/extract-v1.json): thecablecode.extract/v1 - [Developer page](https://thecablecode.com/developers): quick start, MCP install, pricing and a live example - [MCP server card](https://thecablecode.com/.well-known/mcp.json): name, version and remote from the registry entry - [MCP server card, proposed path](https://thecablecode.com/.well-known/mcp/server-card.json): the same JSON - [security.txt](https://thecablecode.com/.well-known/security.txt): the security contact (RFC 9116) ## Agent API - [Decode](https://thecablecode.com/api/v1/decode?code=N2XSEYRY): `GET /api/v1/decode?code=`, the reading in every coding system that parses it, ranked, each symbol with its source; a Chinese GB/T name too (`ZR-YJV22 3x95`); 5 free a day, then $0.10 - [Batch decode](https://thecablecode.com/developers#batch): `POST /api/v1/decode/batch` with `{"codes": [...]}`, up to 500 designations answered in input order; always paid, $0.03 per code - [Design](https://thecablecode.com/developers#design): `GET /api/v1/design?sentence=` or `POST /api/v1/design` with a sentence, a spec or a design: the cable sized layer by layer with sources, ratings, weight, bending and pulling limits and files (STEP, PDF datasheet ...); 2 free a day, then $0.50 - [Designer presets](https://thecablecode.com/api/v1/design/presets): `GET /api/v1/design/presets`, every preset and every family `spec.standard` takes; free - [Check](https://thecablecode.com/developers#check): `GET /api/v1/check?designation=&standard=auto` or `POST /api/v1/check` with a designation, design or datasheet construction: every rule with required, found, pass / fail and its source; 2 free a day, then $0.50 - [Equivalents](https://thecablecode.com/developers#equivalents): `GET /api/v1/equivalents?code=&country=`, the cable rebuilt under other countries' standards and compared layer by layer; on the decodes' 5 free a day, then $0.10 - [Overhead conductor](https://thecablecode.com/overhead-conductors): `POST /api/v1/overhead` with an EN 50182 code or Annex F table row, each value with its table and page; on the decodes' 5 free a day, then $0.10 - [Datasheet reader](https://thecablecode.com/developers#extract): `POST /api/v1/extract` with a PDF, link or text: every cable size as a construction ready for the check; $2.00 per document, no free allowance - [Tender reader](https://thecablecode.com/developers#tender): `POST /api/v1/tender` starts a job (202), `GET /api/v1/tender/{job}` polls it, `DELETE /api/v1/tender/{job}` forgets it: every cable built and checked, the schedule, conflicts and gaps; $4.00 up to 20 pages, $2.00 per further 10 pages - [Specification](https://thecablecode.com/developers#spec): `POST /api/v1/spec`, the tender specification and required / offered schedule of one cable or up to 30; $2.00 for the first cable, $0.50 for each further one - [Specification requirements](https://thecablecode.com/api/v1/spec/requirements): `GET /api/v1/spec/requirements`, the requirement ids the specification takes, with their tests and options; free - [Drum](https://thecablecode.com/api/v1/drum?od=38&length=500): `GET /api/v1/drum?od=&length=`, the drums (reels) a length goes on, or what one drum takes; free - [Conduit fill](https://thecablecode.com/developers#calculations): `POST /api/v1/conduit-fill`, the smallest raceway trade size by NEC Chapter 9; free - [Burial depth](https://thecablecode.com/api/v1/burial?country=DE&u=0.6/1): `GET /api/v1/burial?country=&u=`, the minimum cover by country; free - [Fire class](https://thecablecode.com/api/v1/fire-class?country=GB&place=escape): `GET /api/v1/fire-class?country=&place=`, the lowest CPR class or NEC listing a country asks for there; free - [AWG and mm²](https://thecablecode.com/api/v1/convert?awg=4/0): `GET /api/v1/convert?awg=` or `mm2=`, by area and by resistance (4/0 AWG is not 95 mm²); free - [Not equivalent](https://thecablecode.com/api/v1/not-equivalent?text=THHN%20VW-1): `GET /api/v1/not-equivalent?text=`, fire tests that cannot be swapped, with each side's pass criteria; free - [Laying guide](https://thecablecode.com/api/v1/laying-guide): `GET /api/v1/laying-guide` and `GET /api/v1/laying-guide/{family}`, each family's laying rules with their sources; free - [Glossary](https://thecablecode.com/api/v1/glossary?q=bending%20radius): `GET /api/v1/glossary?q=` and `GET /api/v1/glossary/{slug}`, terms in the site's languages with definitions and sources; free - [Accessories](https://thecablecode.com/developers): `GET /api/v1/accessories?d=`, the MV termination and joint kinds whose kits from two or more makers fit the design; free - [Pull calculation](https://thecablecode.com/developers#calculations): `POST /api/v1/pull`, pull tensions, sidewall pressure and jam ratio; the verdict on the designs' 2 free a day, in full $0.50 - [Tray fill](https://thecablecode.com/developers#calculations): `POST /api/v1/tray`, NEC 392.22 tray fill and 392.80 ampacity; the verdict on the designs' 2 free a day, in full $0.50 - [Drum loading](https://thecablecode.com/developers#calculations): `POST /api/v1/drum/loading`, the drums on each truck or container; the verdict on the designs' 2 free a day, in full $0.50 - [Cold weather check](https://thecablecode.com/developers#calculations): `POST /api/v1/climate`, a place and month against the cable's laying limit; $0.50, no free part - [MV electrical values](https://thecablecode.com/developers#calculations): `POST /api/v1/electrical`, capacitance, charging current, reactance, a.c. resistance and dielectric loss; $0.50, no free part - [Economic size](https://thecablecode.com/developers#calculations): `POST /api/v1/economic`, the energy lost, its cost and the payback of a larger size; $0.50, no free part - [Commissioning sheet](https://thecablecode.com/developers#calculations): `POST /api/v1/commissioning`, the tests after installation as a PDF sheet; $0.50, no free part - [End preparation](https://thecablecode.com/developers#calculations): `POST /api/v1/prep`, cut depths, cut-back lengths, lugs, kits, fittings and the step sheet; the verdict on the designs' 2 free a day, in full $0.50 - [IEC 60287 rating](https://thecablecode.com/developers#calculations): `POST /api/v1/iec60287`, the rating of one MV or HV circuit with every step's clause; $5.00, no free part - [Degassing estimate](https://thecablecode.com/developers#calculations): `POST /api/v1/degas`, the oven days of an XLPE core by Fick diffusion, an estimate, never a standard's result; $5.00, no free part - [Equivalence report](https://thecablecode.com/developers#calculations): `POST /api/v1/equivalence`, an IEC cable against its NEC / UL counterpart, value by value with both sources; $0.50, no free part - [Call counters](https://thecablecode.com/api/v1/stats): `GET /api/v1/stats`, the home page's counters (decodes in all and this month, the designations decoded last); free, operational - [Health](https://thecablecode.com/api/v1/health): `GET /api/v1/health`, whether the server answers, its network and data version; free, operational ## MCP server - [Remote MCP server](https://thecablecode.com/mcp): `POST https://thecablecode.com/mcp`, streamable HTTP, stateless, no authentication, 25 tools; Server version 1.102.0; Claude Code: `claude mcp add --transport http thecablecode https://thecablecode.com/mcp`; a paid tool call carries x402 in `_meta["x402/payment"]`; how to add it in a chat app: see the full guide - [MCP resources](https://thecablecode.com/developers#mcp): free; `resources/list` gives 40 resources: thecablecode://laying-guide, thecablecode://glossary, thecablecode://changelog, the 14 laying guide families, the 23 tool guides; `resources/templates/list` gives 3 templates, thecablecode://laying-guide/{family}, thecablecode://glossary/{slug}, thecablecode://guide/{tool} - [decode_cable_code](https://thecablecode.com/developers#mcp): `decode_cable_code(code, lang)`, as GET /api/v1/decode; 5 free a day, then $0.10 - [design_cable](https://thecablecode.com/developers#design): `design_cable(sentence | spec | design, lang, formats, installation, fault_s, load, fault, cpc, nec, test_variant)`, as POST /api/v1/design; 2 free a day, then $0.50 - [find_equivalents](https://thecablecode.com/developers#equivalents): `find_equivalents(code | design, country, standard, lang)`, as GET /api/v1/equivalents; on the decodes' 5 free a day, then $0.10 - [overhead_conductor](https://thecablecode.com/overhead-conductors): `overhead_conductor(code | table, row, core)`, as POST /api/v1/overhead; on the decodes' 5 free a day, then $0.10 - [check_cable](https://thecablecode.com/developers#check): `check_cable(designation | design | construction, standard)`, as /api/v1/check; 2 free a day, then $0.50 - [extract_datasheet](https://thecablecode.com/developers#extract): `extract_datasheet(url | text, hint, standard)`, as POST /api/v1/extract; $2.00 per document - [write_specification](https://thecablecode.com/developers#spec): `write_specification(sentence | spec | design | cables, requirements, lang)`, as POST /api/v1/spec; $2.00 for the first cable, $0.50 for each further one - [read_tender](https://thecablecode.com/developers#tender): `read_tender(text, hint, lang)`, as POST /api/v1/tender; $4.00 up to 20 pages, $2.00 per further 10 pages - [pull_cable](https://thecablecode.com/developers#calculations): `pull_cable(sentence | spec | design, input, full, items, lang, pdf)`, as POST /api/v1/pull; the verdict on the free designs, in full $0.50 - [tray_fill](https://thecablecode.com/developers#calculations): `tray_fill(input, full, items, lang, pdf)`, as POST /api/v1/tray; the verdict on the free designs, in full $0.50 - [drum_loading](https://thecablecode.com/developers#calculations): `drum_loading(input, full, items, lang)`, as POST /api/v1/drum/loading; the verdict on the free designs, in full $0.50 - [cold_weather_check](https://thecablecode.com/developers#calculations): `cold_weather_check(sentence | spec | design, input, items, lang)`, as POST /api/v1/climate; $0.50 - [mv_electrical](https://thecablecode.com/developers#calculations): `mv_electrical(sentence | spec | design, input, items, lang)`, as POST /api/v1/electrical; $0.50 - [economic_size](https://thecablecode.com/developers#calculations): `economic_size(sentence | spec | design, input, items, lang)`, as POST /api/v1/economic; $0.50 - [commissioning_sheet](https://thecablecode.com/developers#calculations): `commissioning_sheet(sentence | spec | design, input, items, lang)`, as POST /api/v1/commissioning; $0.50 - [cable_prep](https://thecablecode.com/developers#calculations): `cable_prep(sentence | spec | design, input, full, items, lang, pdf)`, as POST /api/v1/prep; the verdict on the free designs, in full $0.50 - [iec60287_rating](https://thecablecode.com/developers#calculations): `iec60287_rating(sentence | spec | design, input, items, lang)`, as POST /api/v1/iec60287; $5.00 - [degassing_time](https://thecablecode.com/developers#calculations): `degassing_time(sentence | spec | design, input, items, lang)`, as POST /api/v1/degas; $5.00 - [equivalence_report](https://thecablecode.com/developers#calculations): `equivalence_report(sentence | spec | design, input, items, lang)`, as POST /api/v1/equivalence; $0.50 - [drum_fit](https://thecablecode.com/drum): `drum_fit(od, length | D d W free_height, kg, kind, system, max, allowance, freeboard, pool, reeling, layers, lagging, lang)`, as GET /api/v1/drum; free - [design_presets](https://thecablecode.com/api/v1/design/presets): `design_presets(lang)`, as GET /api/v1/design/presets; free - [burial_depth](https://thecablecode.com/burial-depth): `burial_depth(country, u, place, method)`, as GET /api/v1/burial; free - [fire_class](https://thecablecode.com/cpr-classes): `fire_class(country, place, lang)`, as GET /api/v1/fire-class; free - [awg_metric](https://thecablecode.com/awg-to-mm2): `awg_metric(awg | mm2, metal, k, lang)`, as GET /api/v1/convert; free - [conduit_fill](https://thecablecode.com/conduit-fill): `conduit_fill(raceway, nipple, cables)`, as POST /api/v1/conduit-fill; free ## Sponsorship for agents - [Sponsor slots](https://thecablecode.com/api/v1/ads/slots): `GET /api/v1/ads/slots`, the slots, targets, regions, prices and terms a business can buy; free - [Sponsorship quote](https://thecablecode.com/developers): `GET /api/v1/ads/quote?slot=&target=®ion=&billing=`, the price in USD, paid one to one in USDC; free - [Order a sponsorship](https://thecablecode.com/developers): `POST /api/v1/ads?slot=&target=®ion=&billing=`, validated first (free), then paid with x402 at the slot's price; the terms at https://thecablecode.com/sponsorship-terms - [Sponsorship status](https://thecablecode.com/developers): `GET /api/v1/ads/status?ref=`, the end date and the renewal price; free - [Renew a sponsorship](https://thecablecode.com/developers): `POST /api/v1/ads/renew?ref=&billing=month|year`, the same ad extended from its end date, paid with x402 ## For people - [Code page](https://thecablecode.com/c/NYY): `https://thecablecode.com/c/` (URL-encoded), one page per designation: its reading symbol by symbol, the symbol tables, standards and related types - [Code page in another language](https://thecablecode.com/tr/c/NYY): `https://thecablecode.com//c/` with `` one of tr, de, nl, sv, fr, es, da, no, fi, it, ro, pl, cs, ru (English has no prefix); the same pattern holds for the other pages - [Sitemap index](https://thecablecode.com/sitemap.xml): one sitemap per language (sitemap-en.xml, sitemap-tr.xml ...); the trends pages at https://thecablecode.com/trends/sitemap.xml - [The Cable Code](https://thecablecode.com/): the decoder with a 3D view of each cable, free - [Cable designer](https://thecablecode.com/cable-designer): a cable layer by layer or from a sentence, sized with every value's source, drawn in 3D; the tool itself is https://thecablecode.com/design/ (a JavaScript app) - [Calculations in the designer](https://thecablecode.com/cable-designer#calculations): voltage drop, sizing, grouping, the armour check, conduit fill and the tests after installation, free on screen - [Coding systems](https://thecablecode.com/standards): every coding system the decoder reads - [Guides](https://thecablecode.com/guides): the hub of every reference page - [Specification builder](https://thecablecode.com/specification): the project's requirements on top of the base standard and the specification in tender order - [Project requirements](https://thecablecode.com/requirements): one page per requirement a specification adds, with its constructions and tests - [Bid comparison](https://thecablecode.com/bids): each bidder's schedule against the buyer's, read in the browser - [Datasheet compliance check](https://thecablecode.com/compliance): a construction checked clause by clause; typed in by hand free - [Tender reader page](https://thecablecode.com/tender): a tender document read for people with Pro - [Cable drum calculator](https://thecablecode.com/drum): the drum a length needs, what a drum takes, the loading planner and the reeling derating - [Dimension pages](https://thecablecode.com/dimensions): layer thicknesses, diameters and weights per code, size and voltage (nominal calculation, not manufacturer data) - [Voltage drop calculator](https://thecablecode.com/voltage-drop): IEC 60364-5-52 Annex G, free - [Cable size calculator](https://thecablecode.com/cable-size): the smallest section by current and by voltage drop, free - [NEC conduit fill calculator](https://thecablecode.com/conduit-fill): NEC 2026 Chapter 9, free - [Cable burial depth by country](https://thecablecode.com/burial-depth): the minimum cover in 14 countries, one page per country - [NEC burial depth tables](https://thecablecode.com/nec-burial-depth-tables): NEC 2026 Tables 300.7(A) and 305.15(A) - [CPR fire classes](https://thecablecode.com/cpr-classes): what the classes mean and the lowest class a country asks for - [Minimum CPR class by country](https://thecablecode.com/minimum-cpr-class): one page per country - [Tests that are not equivalent](https://thecablecode.com/not-equivalent): one page per pair of fire tests that cannot be swapped - [NFPA 262](https://thecablecode.com/nfpa-262): the plenum cable flame and smoke test - [NFPA 502 tunnel cables](https://thecablecode.com/nfpa-502-tunnel-cables): cables in road tunnels - [NFPA 79 reeling drum derating](https://thecablecode.com/nfpa-79-reeling-derating): the Table 12.7.3 factors - [IEC 60502-2 tests after installation](https://thecablecode.com/iec-60502-2-test-after-installation): the voltage tests by rated voltage - [ISPM 15 for cable drums](https://thecablecode.com/ispm-15-cable-drums): treatment, mark and import rules - [Laying and handling guide](https://thecablecode.com/laying-guide): one page per cable family, every rule with its sources - [Glossary](https://thecablecode.com/glossary): laying, drum, accessory, earthing and test terms in the site's languages - [Minimum laying temperature](https://thecablecode.com/minimum-laying-temperature): by sheath and standard - [Bending radius and pulling tension](https://thecablecode.com/bending-radius-and-pulling-tension): by cable family and standard - [AWG to mm²](https://thecablecode.com/awg-to-mm2): by area and by resistance, one page per size - [Ship and offshore cables](https://thecablecode.com/ship-cables): IEC 60092-376 and JIS C 3410 - [Shore connection](https://thecablecode.com/shore-connection): IEC/PAS 60092-510 - [Overhead line conductors](https://thecablecode.com/overhead-conductors): EN 50182 conductors and the FprEN 50540 ACSS build - [Indian cable standards](https://thecablecode.com/india): IS 1554, IS 7098, IS 694 and their ratings - [Explainer videos](https://thecablecode.com/video): a tour of the site and short clips - [Cable search trends](https://thecablecode.com/trends): the codes people search for most - [Pricing](https://thecablecode.com/pricing): every plan for people, the licences and the per-call prices on one page - [For business](https://thecablecode.com/business/): the 3D cable engine as a licence - [Sponsor page](https://thecablecode.com/sponsor): what a business can sponsor, per region, with prices - [Sponsorship terms](https://thecablecode.com/sponsorship-terms): the terms of a sponsorship - [About](https://thecablecode.com/about): who runs the site and where the data comes from ## Optional - [Changelog](https://thecablecode.com/api/v1/changelog): `GET /api/v1/changelog`, what changed in the answers, dated, newest first (thecablecode.changelog/v1; also the MCP resource thecablecode://changelog); free - [MCP registry entry](https://thecablecode.com/developers#mcp): the official MCP registry lists the server as `io.github.exquad/thecablecode`; x402scan lists the pay-per-call routes of `thecablecode.com`