എപിഐ സഹായക്കുറിപ്പുകള്‍

എലമെന്‍റ് ഡേറ്റാക്കായി സ്വതന്ത്ര റെസ്റ്റ് API. ഒരു എപിഐ കീ ആവശ്യമില്ല.

API കീ ആവശ്യമില്ല എല്ലാ ഉല്‍പ്പന്നങ്ങള്‍ക്കും CORS പ്രാവര്‍ത്തികമാക്കുന്നു JSON
https://api.periodictableofelements.org

ഈ API ഉപയോഗിക്കാന്‍ സ്വതന്ത്രമാണ്. നിങ്ങള്‍ Periodic ടെറ്ററേബിള്‍ എലമെന്റ്മെന്റ്സ്. ജോര്‍ജ്ജ് നിങ്ങളുടെ ആപ് അല്ലെങ്കില്‍ വെബ്സൈറ്റില്‍.

ഉദാഹരണം:

<a href="https://periodictableofelements.org">Data from PeriodicTableOfElements.org</a>

അല്ലെങ്കില്‍ വ്യക്തമായ ഒരു വാചകത്തില്‍.

Data provided by PeriodicTableOfElements.org

ബിന്ദുക്കള്‍

GET /elements/

എല്ലാ 118 മൂലകങ്ങളും ആറ്റം, വിഭാഗങ്ങള്‍, ഇലക്ട്രോണ്‍ ക്രമീകരണങ്ങള്‍, ചലനം/ ബില്ലിങ് പോയികള്‍, ടേബിള്‍ വിന്യാസത്തിന്റെ സ്ഥാനങ്ങള്‍ എന്നിവ ഉള്‍‌ക്കൊള്ളുന്ന കീ മൂലകങ്ങളുമായി തിരികെ നല്‍കുന്നു.

Rate limit: 200/hr
ഉദാഹരണത്തിനുള്ള മറുപടിComment
[
  {
    "atomic_number": 1,
    "symbol": "H",
    "name": "Hydrogen",
    "slug": "hydrogen",
    "atomic_mass": 1.008,
    "category": "nonmetal",
    "block": "s",
    "group_number": 1,
    "period": 1,
    "state_at_room_temp": "gas",
    "electronegativity": 2.2,
    "ionization_energy": 1312.0,
    "electron_affinity": -73.0,
    "atomic_radius": 53,
    "density": 0.00008988,
    "melting_point": 14.01,
    "boiling_point": 20.28,
    "discovery_year": 1766,
    "category_color": "#2ecc71",
    "cpk_hex_color": "FFFFFF",
    "grid_row": 1,
    "grid_column": 1,
    "electrons_per_shell": [1],
    "electron_configuration_semantic": "1s1"
  },
  ...
]
ശ്രമിക്ക്.
fetch('https://api.periodictableofelements.org/elements/')
  .then(r => r.json())
  .then(data => console.log(data));
GET /elements/{atomic_number}/

എല്ലാ ഫീള്‍ഡുകളും ഉള്‍പ്പെടെ പൂര്‍ണ്ണമായ വിവരങ്ങള്‍ ഒരു മൂലകത്തിനു തിരികെ നല്‍കുന്നു: ശാരീരിക ഗുണഗണങ്ങള്‍, വിവരങ്ങള്‍, ഐസോടോപ്പുകള്‍, ഉപയോഗങ്ങള്‍, തമാശകള്‍, കൂടുതല്‍ വിവരങ്ങള്‍.

Rate limit: 300/hr
Example Response — /elements/79/
{
  "atomic_number": 79,
  "symbol": "Au",
  "name": "Gold",
  "slug": "gold",
  "atomic_mass": 196.9666,
  "category": "transition_metal",
  "block": "d",
  "group_number": 11,
  "period": 6,
  "state_at_room_temp": "solid",
  "electronegativity": 2.54,
  "density": 19.3,
  "melting_point": 1337.33,
  "boiling_point": 3129.0,
  "discovery_year": -2500,
  "discovered_by": "Ancient civilizations",
  "electron_configuration": "1s2 2s2 2p6 3s2 3p6 3d10 4s2 4p6 4d10 5s1 4f14 5p6 5d10 6s1",
  "electron_configuration_semantic": "[Xe] 4f14 5d10 6s1",
  "oxidation_states": "+1, +3",
  "is_radioactive": false,
  "is_synthetic": false,
  ...
}
ശ്രമിക്ക്.
fetch('https://api.periodictableofelements.org/elements/79/')
  .then(r => r.json())
  .then(data => console.log(data));
GET /elements/quiz/

മൂലകങ്ങള്‍ സംബന്ധിച്ചുള്ള ഏതെങ്കിലുമൊരു ക്വിസിഷന്‍ തിരികെ നല്‍കുന്നു. ചോദ്യം തരം: ചിഹ്നം, തിരിച്ചറിയല്‍, ആറ്റം സംഖ്യകള്‍, വ്യ‌‌ക്തിത്വം, ഗുണവിശേഷ- അടിസ്ഥാനപരമായ സൂചനകള്‍ എന്നിവ ഉള്‍പ്പെടുത്തുന്നു.

Rate limit: 300/hr
ഉദാഹരണത്തിനുള്ള മറുപടിComment
{
  "type": "symbol",
  "question": "What element has the symbol Fe?",
  "choices": [
    {"name": "Iron", "atomic_number": 26},
    {"name": "Fluorine", "atomic_number": 9},
    {"name": "Francium", "atomic_number": 87},
    {"name": "Fermium", "atomic_number": 100}
  ],
  "answer": 26
}
ശ്രമിക്ക്.
fetch('https://api.periodictableofelements.org/elements/quiz/')
  .then(r => r.json())
  .then(data => console.log(data));
GET /elements/element-of-the-day/

ഇന്നത്തെ എലമെന്‍റിന്‍റെ വിശേഷതകള്‍ തിരികെ നല്‍കുന്നു. ഈ മൂലകത്തില്‍ ഓരോ ദിവസവും വരുത്തിയ മാറ്റങ്ങളും എല്ലാ 118 മൂലകങ്ങളും. ഒരു സംഗ്രഹവും തമാശയും ഉള്‍പ്പെടുത്തുന്നു.

Rate limit: 200/hr
ഉദാഹരണത്തിനുള്ള മറുപടിComment
{
  "atomic_number": 6,
  "symbol": "C",
  "name": "Carbon",
  "slug": "carbon",
  "category": "nonmetal",
  "category_color": "#2ecc71",
  "summary": "Carbon is a chemical element...",
  "fun_fact": "Carbon can form nearly 10 million different compounds...",
  "atomic_mass": 12.011,
  "discovery_year": -3750,
  "date": "2026-03-29"
}
ശ്രമിക്ക്.
fetch('https://api.periodictableofelements.org/elements/element-of-the-day/')
  .then(r => r.json())
  .then(data => console.log(data));
GET /elements/molar-mass/?formula={formula}

ഒരു രാസസൂചക സമവാക്യത്തിന്‍റെ ശേഖരം കണക്കുകൂട്ടുന്നു. അച്ചുപലകകളും സബ്സ്ക്രിപ്റ്റുകളും പിന്തുണയ്ക്കുന്നു (ഉദാ, Cacraptscripts (), H2SO4. എലമെന്‍റില്‍ നിന്നും വീണ്ടും ആരംഭിക്കുന്നു.

Rate limit: 300/hr
Example Response — /elements/molar-mass/?formula=H2O
{
  "formula": "H2O",
  "molar_mass": 18.015,
  "breakdown": [
    {
      "symbol": "H",
      "count": 2,
      "atomic_mass": 1.008,
      "subtotal": 2.016
    },
    {
      "symbol": "O",
      "count": 1,
      "atomic_mass": 15.999,
      "subtotal": 15.999
    }
  ]
}
ശ്രമിക്ക്.
fetch('https://api.periodictableofelements.org/elements/molar-mass/?formula=H2O')
  .then(r => r.json())
  .then(data => console.log(data));
GET /elements/export/json/

എല്ലാ 118 മൂലകങ്ങളും ജോണ്‍ ഫയലായി ഡൌണ്‍ലോട് ചെയ്യുന്നു. ആറ്റോമിക ഗുണഗണങ്ങള്‍, കണ്ടുപിടിയ്ക്കല്‍, എലെഞ്ചിന്‍ ക്രമീകരണങ്ങള്‍ എന്നിവ ഉള്‍പ്പെടുത്തുന്നു.

Rate limit: 20/hr മടങ്ങുന്നു: പ്രയോഗങ്ങള്‍/jsone അറ്റാച്മെന്‍റ്
നേരിട്ടുള്ള ഡൌണ്‍ലോഡ്
https://api.periodictableofelements.org/elements/export/json/
GET /elements/export/csv/

എല്ലാ 118 എലമെന്‍റുകളും സിവിഎസ് ഫയലായി ഡൌണ്‍ലോഡ് ചെയ്യുക. JSON എക്സ്പോര്‍ട്ട് ചെയ്യുക എന്ന നിലയില്‍, സ്ക്രിപ്റ്റുകള്‍ക്കും ഡേറ്റാ പരിശോധനയ്ക്കും അനുയോജ്യമാണ്.

Rate limit: 20/hr മടങ്ങുന്നു: വാചകം/csv അറ്റാച്മെന്‍റ്
നേരിട്ടുള്ള ഡൌണ്‍ലോഡ്
https://api.periodictableofelements.org/elements/export/csv/

പരിധികള്‍

Endpoint Limit
/elements/ 200 requests/hour
/elements/{n}/ 300 requests/hour
/elements/quiz/ 300 requests/hour
/elements/element-of-the-day/ 200 requests/hour
/elements/molar-mass/ 300 requests/hour
/elements/export/json/ 20 requests/hour
/elements/export/csv/ 20 requests/hour

സ്ട്രിങ്ങ് പരിധി ഒരു ഐപി വിലാസത്തിലാണു്. പരിധിയനുസരിച്ചു് പ്രഭാവം എച്ച്ടിപി 429 നല്‍കുന്നു (ഏറ്റവും പലരും ആവശ്യങ്ങള്‍).

കോഡ് ഉദാഹരണങ്ങള്‍

// Fetch all elements
fetch('https://api.periodictableofelements.org/elements/')
  .then(res => res.json())
  .then(elements => {
    console.log(`Loaded ${elements.length} elements`);
    elements.forEach(el => {
      console.log(`${el.symbol} - ${el.name} (${el.atomic_mass})`);
    });
  });

// Get a single element
fetch('https://api.periodictableofelements.org/elements/79/')
  .then(res => res.json())
  .then(gold => {
    console.log(`${gold.name}: ${gold.atomic_mass} u`);
  });

// Calculate molar mass
fetch('https://api.periodictableofelements.org/elements/molar-mass/?formula=H2SO4')
  .then(res => res.json())
  .then(data => {
    console.log(`${data.formula}: ${data.molar_mass} g/mol`);
  });

// Get element of the day
fetch('https://api.periodictableofelements.org/elements/element-of-the-day/')
  .then(res => res.json())
  .then(el => {
    console.log(`Today's element: ${el.name} (${el.symbol})`);
  });
# Fetch all elements
import requests

response = requests.get('https://api.periodictableofelements.org/elements/')
elements = response.json()
print(f'Loaded {len(elements)} elements')

for el in elements:
    print(f"{el['symbol']} - {el['name']} ({el['atomic_mass']})")

# Get a single element
gold = requests.get('https://api.periodictableofelements.org/elements/79/').json()
print(f"{gold['name']}: {gold['atomic_mass']} u")

# Calculate molar mass
data = requests.get(
    'https://api.periodictableofelements.org/elements/molar-mass/',
    params={'formula': 'H2SO4'}
).json()
print(f"{data['formula']}: {data['molar_mass']} g/mol")

# Get element of the day
el = requests.get(
    'https://api.periodictableofelements.org/elements/element-of-the-day/'
).json()
print(f"Today's element: {el['name']} ({el['symbol']})")

ഡൌണ്‍ലോഡ് ചെയ്യുക

ജോണ്‍

എല്ലാ 118 മൂലകങ്ങളും പൂര്‍ണ്ണ ഗുണഗണങ്ങളുള്ളവ. വെബ് ആപ്ലുകള്‍ക്കും സ്ക്രിപ്റ്റുകള്‍ക്കും ഇമേജാണ്.

ഡൌണ്‍ലോട് ചെയ്യുക

സിസ്‌ട്രാ

കീബോര്‍ഡ്-സുന്ദരമായ ഫോര്‍മാറ്റ്. ഗൂഗിള്‍ ഷീറ്റുകളില്‍ തുറക്കുക, അല്ലെങ്കില്‍ പന്‍ഡസ്.

സിഎംഎസ് ഡൌണ്‍ലോട് ചെയ്യുക