# UnitFYI

> Comprehensive unit conversion reference for developers, scientists, and engineers. 200 units across 20 measurement categories with Decimal-precision conversion, 157 glossary terms, 5 interactive tools, and N-squared comparison pages. All conversions computed on-the-fly with sub-millisecond pure-Python engine.

## Data Scope
- 200 units across 20 measurement categories (length, weight, temperature, volume, area, speed, time, data-storage, pressure, energy, frequency, force, power, angle, fuel-economy, data-transfer, density, torque, cooking, typography)
- Decimal-precision conversion engine — no floating-point rounding errors
- N-squared unit pair conversion pages (e.g. /length/meter-to-foot/)
- N-squared unit comparison pages (e.g. /length/compare/meter-vs-foot/)
- Specific value conversion (e.g. /length/meter-to-foot/100/)
- 157 glossary terms covering measurement science and metrology
- 5 interactive tools: converter, quick-convert, table-generator, comparison, recipe-converter
- 15 languages: en, ko, ja, zh-hans, es, fr, de, pt, ru, vi, tr, ar, hi, th, id

## URL Patterns
- Append `.md` to any URL for plain-text markdown format.
- i18n: URL prefix `/{lang}` for non-English (ko, ja, zh-hans, es, fr, de, pt, ru, vi, tr, ar, hi, th, id).
- `/` — Homepage — browse all 20 measurement categories (e.g. `/`)
- `/{category}/` — Category detail with all units (e.g. `/length/`)
- `/{category}/unit/{unit}/` — Unit detail page (e.g. `/length/unit/meter/`)
- `/{category}/{from}-to-{to}/` — Unit pair conversion page (N² pSEO) (e.g. `/length/meter-to-foot/`)
- `/{category}/{from}-to-{to}/{value}/` — Specific value conversion (e.g. `/length/meter-to-foot/100/`)
- `/{category}/compare/{a}-vs-{b}/` — Unit comparison page (N² pSEO) (e.g. `/length/compare/meter-vs-foot/`)
- `/glossary/` — Measurement glossary index (e.g. `/glossary/`)
- `/glossary/{slug}/` — Glossary term detail (e.g. `/glossary/metric-system/`)
- `/blog/` — Measurement science articles (e.g. `/blog/`)
- `/blog/{slug}/` — Blog article detail (e.g. `/blog/si-units-history/`)
- `/tools/` — Interactive tools index (e.g. `/tools/`)
- `/tools/{slug}/` — Tool page (e.g. `/tools/converter/`)
- `/search/` — Search units, categories, glossary (e.g. `/search/?q=meter`)

## Measurement Categories (20)
- [Length (meter, foot, mile, ...)](https://unitfyi.com/length/)
- [Weight (kilogram, pound, ounce, ...)](https://unitfyi.com/weight/)
- [Temperature (celsius, fahrenheit, kelvin)](https://unitfyi.com/temperature/)
- [Volume (liter, gallon, cup, ...)](https://unitfyi.com/volume/)
- [Area (sq meter, acre, hectare, ...)](https://unitfyi.com/area/)
- [Speed (m/s, km/h, mph, ...)](https://unitfyi.com/speed/)
- [Time (second, minute, hour, ...)](https://unitfyi.com/time/)
- [Data Storage (byte, KB, MB, GB, TB, ...)](https://unitfyi.com/data-storage/)
- [Pressure (pascal, bar, psi, atm, ...)](https://unitfyi.com/pressure/)
- [Energy (joule, calorie, BTU, kWh, ...)](https://unitfyi.com/energy/)
- [Frequency (hertz, kHz, MHz, GHz, ...)](https://unitfyi.com/frequency/)
- [Force (newton, dyne, pound-force, ...)](https://unitfyi.com/force/)
- [Power (watt, horsepower, BTU/h, ...)](https://unitfyi.com/power/)
- [Angle (radian, degree, gradian, ...)](https://unitfyi.com/angle/)
- [Fuel Economy (km/L, MPG, L/100km, ...)](https://unitfyi.com/fuel-economy/)
- [Data Transfer (bps, Kbps, Mbps, Gbps, ...)](https://unitfyi.com/data-transfer/)
- [Density (kg/m³, g/cm³, lb/ft³, ...)](https://unitfyi.com/density/)
- [Torque (N·m, ft·lb, kgf·m, ...)](https://unitfyi.com/torque/)
- [Cooking (mL, tsp, tbsp, cup, ...)](https://unitfyi.com/cooking/)
- [Typography (pixel, point, em, rem, ...)](https://unitfyi.com/typography/)

## Interactive Tools
- [Unit Converter](https://unitfyi.com/tools/converter/)
- [Quick Convert](https://unitfyi.com/tools/quick-convert/)
- [Conversion Table Generator](https://unitfyi.com/tools/table-generator/)
- [Unit Comparison](https://unitfyi.com/tools/comparison/)
- [Recipe Converter](https://unitfyi.com/tools/recipe-converter/)

## Reference
- [Measurement Glossary (157 terms)](https://unitfyi.com/glossary/)
- [Blog — Measurement Science Articles](https://unitfyi.com/blog/)

## Embed Widget
- [UnitFYI Widget Docs](https://widget.unitfyi.com)
- [unitfyi-embed on npm](https://www.npmjs.com/package/unitfyi-embed)
- [unitfyi-embed on GitHub](https://github.com/fyipedia/unitfyi-embed)

## REST API

Free REST API. No authentication required. JSON responses. CORS enabled.

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/api/convert/?from={unit}&to={unit}&value={n}` | Convert a value between units |
| GET | `/api/categories/` | List all 20 measurement categories |
| GET | `/api/categories/{slug}/` | Category detail with all units |
| GET | `/api/units/` | List all 200 units |
| GET | `/api/unit/{slug}/` | Unit detail with conversion factors |
| GET | `/api/convert/table/` | Conversion table for a category |
| GET | `/api/glossary/` | List all glossary terms |
| GET | `/api/glossary/{slug}/` | Glossary term detail |
| GET | `/api/blog/posts/` | Blog posts list |
| GET | `/api/blog/posts/{slug}/` | Blog post detail |
| GET | `/api/tools/` | List interactive tools |
| GET | `/api/search/` | Search units, categories, glossary |
| GET | `/api/v1/glossary/` | Glossary terms (DRF ViewSet, paginated) |
| GET | `/api/v1/tools/` | Tools (DRF ViewSet) |
| GET | `/api/v1/faqs/` | FAQs (DRF ViewSet) |
| GET | `/api/v1/search/?q={query}` | Unified search (DRF) |
| GET | `/api/v1/stats/` | Site statistics |

```bash
curl -s "https://unitfyi.com/api/convert/?from=meter&to=foot&value=100"
```

[API Docs](https://unitfyi.com/developers/) · [OpenAPI Spec](https://unitfyi.com/api/openapi.json)

## Developer Tools
- **PyPI**: `pip install unitfyi` — [unitfyi](https://pypi.org/project/unitfyi/) — Unit conversion with Decimal precision, 220 units (v0.1.2)
- **npm**: `npm install unitfyi` — [unitfyi](https://www.npmjs.com/package/unitfyi) — TypeScript unit conversion utilities (v0.1.1)
- **Embed Widget**: [unitfyi-embed](https://widget.unitfyi.com)

## Utility FYI Family

Part of [FYIPedia](https://fyipedia.com) developer tools ecosystem.
- [TimeFYI](https://timefyi.com) — Timezone ops, business hours, sunrise/sunset
- [HolidayFYI](https://holidayfyi.com) — Holiday dates, Easter calculation, 200+ countries
- [NameFYI](https://namefyi.com) — Korean romanization, Five Elements, CJK strokes

## Images (CDN)

OG images at https://cdn.unitfyi.com/og/
- https://cdn.unitfyi.com/og/homepage.png

## Full Index
- [Full content index](https://unitfyi.com/llms-full.txt)
- [XML Sitemap](https://unitfyi.com/sitemap.xml)