API to fetch elements of the periodic table in JSON format. Uses Pandas for dumping .csv data to .json and Flask for API Integration. Deployed on "pythonanywhere.com". Checkout the following repo periodic-table-api-go written in golang for fast performance of API
The following document will specify how to use the API to fetch the periodic elements in JSON. Also it will state different methods throught which the elements can be fetch.
Data Object |
---|
symbol |
name |
atomicMass |
atomicNumber |
atomicRadius |
boilingPoint |
bondingType |
cpkHexColor |
density |
electronAffinity |
electronegativity |
electronicConfiguration |
groupBlock |
ionRadius |
ionizationEnergy |
meltingPoint |
oxidationStates |
standardState |
vanDerWaalsRadius |
yearDiscovered |
There are total of 6 methods by which you can fetch the data :
This will fetch all the 118 elements from periodic table.
This will fetch element from periodic table having atomic number 20. Replace 20 with any other atomic number to fetch that element from 118.
This will fetch element from periodic table having atomic name "Mercury". Replace "Mercury" with any other atomic name to fetch that element.
This will fetch element from periodic table having atomic symbol "H" i.e. Hydrogen. Replace "H" with any other atomic symbol to fetch that element.
This will fetch all elements from periodic table having Metallic bonding. Replace metallic with any other bonding type to fetch elements.
This will fetch all elements from periodic table belongs to metal group. Replace metal with any other bonding type to fetch elements.
This will fetch all elements from periodic table belongs to gas state. Replace gas with any other state to fetch elements.