# Periodic Table API

> Periodic Table retrieves chemical element data by element name or symbol. Responses include atomic number, category, phase, block, standard group and period positions, and CPK hex colors, with paid plans adding atomic mass and thermal metrics.

**Endpoint:** `GET https://api.apiverve.com/v1/periodictable`  
**Category:** Science  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/periodictable

## Overview

Pass either a chemical symbol or full element name to query the element directory. Each lookup returns classification details, physical state, discoverer history, and X/Y grid coordinates for table rendering. Paid plans include thermodynamic values like melting and boiling points, density, electron affinity, electronegativity, and electron shell configurations.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/periodictable?name=hydrogen" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The name of the chemical element to get information about. US and IUPAC spellings (aluminum or aluminium, cesium or caesium, sulfur or sulphur) and atomic numbers (26) are accepted |

## Response fields

- `count` — number · Number of elements returned in elements
  - `elements.0.name` — string · Chemical element name
  - `elements.0.appearance` — string · Physical appearance of the element
  - `elements.0.atomic_mass` — number · Atomic mass of the element · (premium)
  - `elements.0.boil` — number · Boiling point temperature in Kelvin · (premium)
  - `elements.0.category` — string · Classification category of element
  - `elements.0.density` — number · Element density at standard conditions · (premium)
  - `elements.0.discovered_by` — string · Name of element discoverer
  - `elements.0.melt` — number · Melting point temperature in Kelvin · (premium)
  - `elements.0.molar_heat` — number · Molar heat capacity value · (premium)
  - `elements.0.named_by` — string · Person who named the element
  - `elements.0.number` — number · Atomic number of the element
  - `elements.0.period` — number · Period position in periodic table
  - `elements.0.group` — number · Group position in periodic table
  - `elements.0.phase` — string · Physical state of element at standard conditions
  - `elements.0.source` — string · URL reference source for element info
  - `elements.0.summary` — string · Detailed summary about the element · (premium)
  - `elements.0.symbol` — string · Chemical symbol for the element
  - `elements.0.xpos` — number · X position coordinate in periodic table
  - `elements.0.ypos` — number · Y position coordinate in periodic table
  - `elements.0.wxpos` — number · Width X position in periodic table layout
  - `elements.0.wypos` — number · Width Y position in periodic table layout
  - `elements.0.shells` — array · Array of electron shell configurations · (premium)
  - `elements.0.electron_configuration` — string · Full electron configuration notation · (premium)
  - `elements.0.electron_configuration_semantic` — string · Semantic electron configuration notation · (premium)
  - `elements.0.electron_affinity` — number · Electron affinity in kJ/mol · (premium)
  - `elements.0.electronegativity_pauling` — number · Electronegativity on Pauling scale · (premium)
  - `elements.0.ionization_energies` — array · Array of ionization energy values · (premium)
  - `elements.0.cpk-hex` — string · CPK color hex code for element
  - `elements.0.block` — string · Block designation in periodic table

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 1,
    "elements": [
      {
        "name": "Hydrogen",
        "appearance": "colorless gas",
        "atomic_mass": 1.008,
        "boil": 20.271,
        "category": "diatomic nonmetal",
        "density": 0.08988,
        "discovered_by": "Henry Cavendish",
        "melt": 13.99,
        "molar_heat": 28.836,
        "named_by": "Antoine Lavoisier",
        "number": 1,
        "period": 1,
        "group": 1,
        "phase": "Gas",
        "source": "https://en.wikipedia.org/wiki/Hydrogen",
        "summary": "Hydrogen is a chemical element with chemical symbol H and atomic number 1. With an atomic weight of 1.00794 u, hydrogen is the lightest element on the periodic table. Its monatomic form (H) is the most abundant chemical substance in the Universe, constituting roughly 75% of all baryonic mass.",
        "symbol": "H",
        "xpos": 1,
        "ypos": 1,
        "wxpos": 1,
        "wypos": 1,
        "shells": [
          1
        ],
        "electron_configuration": "1s1",
        "electron_configuration_semantic": "1s1",
        "electron_affinity": 72.769,
        "electronegativity_pauling": 2.2,
        "ionization_energies": [
          1312
        ],
        "cpk-hex": "ffffff",
        "block": "s"
      }
    ]
  }
}
```

## Use cases

- **Interactive Table UI** — When building web-based periodic tables, developers plot tiles using provided grid coordinates and apply CPK hex values for element color schemes.
- **Chemistry Learning Apps** — Educational platforms display atomic numbers, physical phases, and discoverer records to students reviewing fundamental chemical properties in study flashcards.
- **Laboratory Sample Inventory** — Chemical inventory systems cross-reference raw element symbols against standardized names, blocks, and groups during reagent intake and cataloging.
- **Molecular Model Visualization** — Render 3D molecular structures in browser viewports by mapping chemical symbols directly to standardized CPK coloring codes and classification categories.

## SDKs

- **npm** — `npm install @apiverve/periodictable` (https://www.npmjs.com/package/@apiverve/periodictable)
- **PyPI** — `pip install apiverve-periodictable` (https://pypi.org/project/apiverve-periodictable/)
- **NuGet** — `dotnet add package APIVerve.API.PeriodicTable` (https://www.nuget.org/packages/APIVerve.API.PeriodicTable)
- **Source** — https://github.com/apiverve/periodictable-api

## More

- Full reference: https://docs.apiverve.com/ref/periodictable
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
