API ஆவணமாக்கல்
தளவமைப்பு தகவல்களுக்கான இலவச REST API. API விசை தேவையில்லை.
https://api.periodictableofelements.org
இந்த API தனிப்பட்ட, கல்வி மற்றும் வணிக திட்டங்களுக்கு பயன்படுத்த இலவசமாக உள்ளது. உங்கள் பயன்பாட்டில் அல்லது இணையத்தளத்தில் PeriodicTableOfElements.org க்கு ஒரு இணைப்பை சேர்க்க நாங்கள் கேட்கிறோம்.
உதாரணம்:
<a href="https://periodictableofelements.org">Data from PeriodicTableOfElements.org</a>
அல்லது வெற்று உரை:
Data provided by PeriodicTableOfElements.org
முடிவுப் புள்ளிகள்
அணு ஆரம், வகை, மின்னணு வடிவமைப்பு, உருகு/ கொதிப்பு புள்ளிகள் மற்றும் அட்டவணை உருவரையின் கட்ட நிலைகள் உள்ளிட்ட அனைத்து 118 தனிமங்களையும் முக்கிய பண்புகளுடன் திரும்பும்.
[
{
"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));
தனிமத்தின் முழுமையான தரவைத் திரும்பக் கொடுக்கிறது, அதாவது அனைத்து புலங்களையும்: இயல்பியல் பண்புகளை, கண்டுபிடிப்பு தகவல்களை, ஒற்றை அணுக்களை, பயன்பாடுகளை, சுவாரஸ்யமான தகவல்களை, மற்றும் பலவற்றை.
{
"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));
தனிமங்கள் பற்றிய ஒரு குறிப்பிடத்தக்க கேள்வியைத் திரும்பத் தரும். கேள்வி வகைகள்: குறியீடு அடையாளம், அணு எண் தேடல், வகைப் படுத்தல், மற்றும் பண்பு அடிப்படையிலான குறிப்புகள்.
{
"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));
இன்றைய குறிப்பிட்ட பொருளை திரும்பத் தரும். இந்த பொருள் தினமும் மாறும் மற்றும் 118 பொருள்களை சுற்றி வருகின்றது. சுருக்கம் மற்றும் சுவாரஸ்யமான தகவல்களை உள்ளடக்கியது.
{
"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));
வேதியியல் வாய்பாடுகளின் மோலர் நிறையை கணக்கிடுகிறது. அடைப்புக்குறிகள் மற்றும் கீழ்குறிப்புகளை ஆதரிக்கிறது (உதாரணமாக, Ca( OH) 2, H2SO4). தனிமத்தின் பிரிவினையை திரும்பத்தரும்.
{
"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));
அனைத்து 118 மூலக்கூறுகளையும் வடிவமைக்கப்பட்ட JSON கோப்பாக பதிவிறக்குகிறது. அணு பண்புகளை, கண்டுபிடிப்பு தகவல், மின்னணு வடிவமைப்பு மற்றும் பலவற்றை உள்ளடக்கியது.
https://api.periodictableofelements.org/elements/export/json/
அனைத்து 118 உறுப்புகளையும் CSV கோப்பாக பதிவிறக்குகிறது. JSON ஏற்றுமதி போலவே புலங்கள், விரிதாள்கள் மற்றும் தரவு பகுப்பாய்வுகளுக்கு ஏற்றது.
https://api.periodictableofelements.org/elements/export/csv/
விகித எல்லைகள்
விகித எல்லைகள் IP முகவரிக்கு ஒரு. எல்லையை மீறுவது HTTP 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 உறுப்புகளும் முழுமையான பண்புகளுடன். வலை பயன்பாடுகள் மற்றும் சிறு நிரல்களுக்கு மிகவும் பொருத்தமானது.
JSON பதிவிறக்கங்கள்