# ChemFYI

> Comprehensive chemistry reference — periodic table of 118 elements, chemical compounds, reactions, experiments, industrial applications, glossary terms, and guides. Interactive tools including molecular structure drawer, molar mass calculator, pH calculator, and more.

## Data Scope
- 118 chemical elements with atomic properties, electron configurations, and physical data
- Chemical compounds with formulas, IUPAC names, molar mass, PubChem CIDs, SMILES notation
- Chemical reactions with balanced equations, thermodynamic data, and reaction types
- Experiments with step-by-step protocols, safety warnings, and difficulty levels
- Industrial applications across 10 sectors (pharmaceutical, petrochemical, materials, etc.)
- Glossary terms organized by category (thermodynamics, organic chemistry, etc.)
- Guides in series with full markdown content and reading time estimates
- 10 interactive tools: structure drawer, molar mass, pH, dilution, ideal gas law, and more
- Element comparisons (N² pages) with side-by-side property analysis
- 15 languages supported with i18n

## 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 with featured elements and stats (e.g. `/`)
- `/elements/` — Browse all 118 elements (e.g. `/elements/`)
- `/element/{symbol}/` — Element detail page by symbol (e.g. `/element/fe/`)
- `/category/{slug}/` — Element category (e.g. alkali metals) (e.g. `/category/alkali-metals/`)
- `/periodic-table/` — Interactive periodic table (e.g. `/periodic-table/`)
- `/compare/` — Element comparison index (e.g. `/compare/`)
- `/compare/{symbol1}-vs-{symbol2}/` — Element comparison (e.g. `/compare/fe-vs-cu/`)
- `/compounds/` — Browse chemical compounds (e.g. `/compounds/`)
- `/compound/{slug}/` — Compound detail with structure and properties (e.g. `/compound/water/`)
- `/reactions/` — Browse chemical reactions (e.g. `/reactions/`)
- `/reaction/{slug}/` — Reaction detail with balanced equation (e.g. `/reaction/combustion-of-methane/`)
- `/reactions/type/{type}/` — Reactions by type (e.g. `/reactions/type/combustion/`)
- `/experiments/` — Browse experiments by category (e.g. `/experiments/`)
- `/experiment/{slug}/` — Experiment protocol with steps (e.g. `/experiment/flame-test/`)
- `/experiments/category/{cat}/` — Experiments by category (e.g. `/experiments/category/flame-test/`)
- `/applications/` — Industrial applications of chemistry (e.g. `/applications/`)
- `/application/{slug}/` — Application detail (e.g. `/application/haber-process/`)
- `/applications/sector/{sector}/` — Applications by sector (e.g. `/applications/sector/pharmaceutical/`)
- `/glossary/` — Chemistry glossary index (e.g. `/glossary/`)
- `/glossary/{slug}/` — Glossary term definition (e.g. `/glossary/electronegativity/`)
- `/guides/` — Chemistry guides (e.g. `/guides/`)
- `/guide/{slug}/` — Guide article (e.g. `/guide/introduction-to-organic-chemistry/`)
- `/tools/` — Interactive chemistry tools (e.g. `/tools/`)
- `/tool/{slug}/` — Tool page (e.g. `/tool/molar-mass-calculator/`)
- `/search/` — Search elements, compounds, reactions (e.g. `/search/?q=carbon`)

## Periodic Table
- [Interactive Periodic Table](https://chemfyi.com/periodic-table/)
- [All 118 Elements](https://chemfyi.com/elements/)
- [Element Categories](https://chemfyi.com/category/alkali-metals/)
- [Element Comparisons](https://chemfyi.com/compare/)

## Compounds & Reactions
- [Chemical Compounds](https://chemfyi.com/compounds/)
- [Chemical Reactions](https://chemfyi.com/reactions/)

## Interactive Tools
- [Molecular Structure Drawer](https://chemfyi.com/tool/structure-drawer/)
- [Molar Mass Calculator](https://chemfyi.com/tool/molar-mass-calculator/)
- [pH Calculator](https://chemfyi.com/tool/ph-calculator/)
- [Dilution Calculator (C1V1=C2V2)](https://chemfyi.com/tool/dilution-calculator/)
- [Ideal Gas Law Calculator (PV=nRT)](https://chemfyi.com/tool/ideal-gas-law-calculator/)
- [Mole-Mass-Particle Converter](https://chemfyi.com/tool/mole-converter/)
- [Radioactive Decay Calculator](https://chemfyi.com/tool/radioactive-decay-calculator/)
- [Electrochemical Cell Potential Calculator](https://chemfyi.com/tool/cell-potential-calculator/)

## Learn
- [Experiments](https://chemfyi.com/experiments/)
- [Industrial Applications](https://chemfyi.com/applications/)
- [Chemistry Glossary](https://chemfyi.com/glossary/)
- [Guides](https://chemfyi.com/guides/)

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

## REST API

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

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/api/v1/elements/` | List all elements (DRF, paginated) |
| GET | `/api/v1/elements/{symbol}/` | Element detail |
| GET | `/api/v1/compounds/` | List compounds (DRF, paginated) |
| GET | `/api/v1/reactions/` | List reactions (DRF, paginated) |
| GET | `/api/v1/experiments/` | List experiments (DRF, paginated) |
| GET | `/api/v1/applications/` | List industrial applications (DRF, paginated) |
| GET | `/api/v1/glossary/` | Glossary terms (DRF, paginated) |
| GET | `/api/v1/guides/` | Guides (DRF, paginated) |
| GET | `/api/v1/tools/` | Interactive tools (DRF, paginated) |
| GET | `/api/v1/faqs/` | FAQs (DRF, paginated) |
| GET | `/api/v1/search/?q={query}` | Unified search (DRF) |
| GET | `/api/v1/stats/` | Site statistics |
| GET | `/api/search/suggest/?q={query}` | Search autocomplete |

```bash
curl -s "https://chemfyi.com/api/v1/elements/"
```

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

## Developer Tools
- **PyPI**: `pip install chemfyi` — [chemfyi](https://pypi.org/project/chemfyi/) — Periodic table data, element lookup, compound formulas
- **Embed Widget**: [chemfyi-embed](https://widget.chemfyi.com)

## Science FYI Family

Part of [FYIPedia](https://fyipedia.com) developer tools ecosystem.
- [AlloyFYI](https://alloyfyi.com) — Metal alloys, compositions, properties
- [GemFYI](https://gemfyi.com) — Gemstones, mineralogy, grading, origins
- [StarFYI](https://starfyi.com) — Stars, constellations, exoplanets, deep-sky objects
- [MineralFYI](https://mineralfyi.com) — 6,215 minerals, crystal systems, Mohs hardness

## Images (CDN)

OG images for all entities at https://cdn.chemfyi.com/og/{type}/{slug}.png
- https://cdn.chemfyi.com/og/homepage.png

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