JSON API

Every reverse-lookup tool on this site is backed by a JSON endpoint you can call directly — GET requests, no key, no accounts. Responses are cached for an hour. Machine-readable spec: /openapi.json (OpenAPI 3.1). The full dataset also ships as /search-index.json if you'd rather compute locally.

GET /api/search

One query in, the same routing the site search box uses: designations (#7, 1/4-20, 6203-2RS, AS568-214, 1/2 NPT), measurements (17 x 40 x 12, .734 x .139, 1.315 od), and fastener callouts (1/4-20 x 1 SHCS).

Parameter Description Required
q The query string yes

Try it: /api/search?q=17%20x%2040%20x%2012

GET /api/drills/nearest

Ranked nearest standard drills in all four systems for a measured diameter.

Parameter Description Required
mm Measured diameter in millimeters no
in Measured diameter in inches (alternative to mm) no

Try it: /api/drills/nearest?mm=6.7

GET /api/threads/decode

Thread family, dimensions, pitch, tap drill, and clearance holes for a callout like 1/4-20 or M8x1.25.

Parameter Description Required
q The thread designation yes

Try it: /api/threads/decode?q=1%2F4-20

GET /api/o-rings/nearest

Closest AS568 dash numbers for a measured ID (or OD) and cross-section, grouped by CS series, with match quality.

Parameter Description Required
id Measured inside diameter, inches (or id_mm) no
od Measured outside diameter, inches (or od_mm); requires cs no
cs Measured cross-section, inches (or cs_mm) no

Try it: /api/o-rings/nearest?id=.734&cs=.139

GET /api/pipe/nearest

Likely NPS sizes for a measured outside diameter, and the schedule for a measured wall.

Parameter Description Required
od Measured OD, inches (or od_mm) yes
wall Measured wall thickness, inches (optional) no

Try it: /api/pipe/nearest?od=1.315

GET /api/bearings/nearest

Likely deep-groove designations for a measured bore, with optional OD and width, with per-dimension deltas and match quality.

Parameter Description Required
bore Measured bore, mm (or bore_in) yes
od Measured outside diameter, mm (optional) no
width Measured width, mm (optional) no

Try it: /api/bearings/nearest?bore=17.1&od=39.9&width=12

Conventions