SlideShare a Scribd company logo
3
Most read
9
Most read
10
Most read
THE MATERIALS API
Shyue Ping Ong (MIT), Shreyas Cholia (LBL/NERSC)
What is The Materials API?




   An open platform for       Flexible and scalable to
    accessing Materials       cater to large number of
  Project data based on          collaborators, with     Simple to use and code
                                                                agnostic.
  REpresentational State          different access
Transfer (REST) principles.           privileges.
HTTP API design (REST)
                                        Unique Identifier. Eg.
                                        a formula (Fe2O3),
                                        id (1234) or chemical
                                        system (Li-Fe-O)
                                                            Property

https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy



              Preamble URL                          Data type
                                                    (vasp, exp,
                                                    etc.)
• RESTful API maps URLs to data objects
Why REST APIs?
¨    Big push towards RESTful HTTP APIs across the web.

¨    REST APIs provide programmatic access to data
      and resources to developers over the web

¨    Access to data as well defined objects allows users
      to develop their own custom applications and code

      Enables a thriving community built around data.
Access via an API key
¨    To maintain privileged access, each user has an
      associated API key (with certain defined access
      privileges).

¨    To get your key, login to materialsproject.org and go
      to www.materialsproject.org/profile

¨    All MP https requests must supply API key as:
      ¤  A x-api-key header, e.g., {‘X-API-KEY’: ‘MYKEY’}, or
      ¤  As a GET or POST variable, e.g., {‘API_KEY’: ‘MYKEY’}
Sample JSON output

GET https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy
Integration with pymatgen



 The Materials API




           Powerful Materials
             Analytics Tool
pymatgen
¨    The open source python library that powers the
      Materials Project.
      ¤  Defines  core Python objects for materials data
          representation.
      ¤  Provides a well-tested set of structure and
          thermodynamic analysis tools relevant to many
          applications.
      ¤  Establishes an open platform for researchers to
          collaboratively develop sophisticated analyses of
          materials data obtained both from first principles
          calculations and experiments.
Pymatgen now provides access to analysis functions as well as data
Materials API + pymatgen example
from pymatgen.matproj.rest import MPRester
 
#This initializes the REST adaptor. Put your own API key in.
a = MPRester("YOUR_API_KEY")
 
#This gives you the Structure corresponding to material id 2254 in the Materials Project.
structure = a.get_structure_by_material_id(2254)
 
#Entries are the basic unit for thermodynamic and other analyses in pymatgen.
#This gets all entries belonging to the Ca-C-O system.
entries = a.get_entries_in_chemsys(['Ca', 'C', 'O'])

#With entries, you can do many sophisticated analyses,
#like creating phase diagrams.
pd = PhaseDiagram(entries)
plotter = PDPlotter(pd)
plotter.show()
More information
¨    Materials API + pymatgen examples
      ¤    https://gist.github.com/gists/search?q=shyuep+materials+api
            +pymatgen

¨    The Materials API wiki
      ¤    https://materialsproject.org/wiki/index.php/The_Materials_API

¨    Python Materials Genomics
      ¤    http://packages.python.org/pymatgen/
      ¤    Shyue Ping Ong, William Davidson Richard, Anubhav Jain, Geoffroy
            Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent Chevrier,
            Kristin A. Persson, Gerbrand Ceder. Python Materials Genomics
            (pymatgen) : A Robust, Open-Source Python Library for Materials
            Analysis. (submitted)

More Related Content

PPT
The Php Life Cycle
PDF
First appeal under RTI Act 2005 against Registrar (J-I) Supreme Court of Indi...
PDF
El reinado de Isabel II: las regencias (1833-1843)
PDF
NANO266 - Lecture 12 - High-throughput computational materials design
PDF
ICME Workshop Jul 2014 - The Materials Project
PPT
Machine Learning and Inductive Inference
PDF
The Future of Materials, by Means of Example, Part 1: Packaging Solutions
PPTX
Artificial intelligence ppt
The Php Life Cycle
First appeal under RTI Act 2005 against Registrar (J-I) Supreme Court of Indi...
El reinado de Isabel II: las regencias (1833-1843)
NANO266 - Lecture 12 - High-throughput computational materials design
ICME Workshop Jul 2014 - The Materials Project
Machine Learning and Inductive Inference
The Future of Materials, by Means of Example, Part 1: Packaging Solutions
Artificial intelligence ppt

Viewers also liked (14)

PDF
World Economic Forum Annual Meeting 2006
PPTX
Manejo y seguridad del internet
PPT
Ο σχολικός μας κήπος
PPT
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015
PDF
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involved
PPTX
Recycle Game
PDF
ECRI-INSTITUTE - Camas de Parto
PPTX
Project ECHO (Extension for Community Health Outcomes)
PPT
Bigmarker - Οδηγίες για υλοποίηση Τηλεδιασκέψεων
PDF
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...
PPSX
The drowned love
PDF
Social Media Report - Snack Brands - Chips (India) September - October 2016
PPT
洞穴人的陰影
PPT
Mi examen final...
World Economic Forum Annual Meeting 2006
Manejo y seguridad del internet
Ο σχολικός μας κήπος
οδηγίες συμπλήρωσης αίτησης για το πρόγραμμα Teachers 4 europe 2014 2015
Welwyn Hatfield Dragons Apprentice: 5 reasons to be involved
Recycle Game
ECRI-INSTITUTE - Camas de Parto
Project ECHO (Extension for Community Health Outcomes)
Bigmarker - Οδηγίες για υλοποίηση Τηλεδιασκέψεων
Validación del Desempeño de los Dispositivos Médicos, Una Mirada desde la Ing...
The drowned love
Social Media Report - Snack Brands - Chips (India) September - October 2016
洞穴人的陰影
Mi examen final...
Ad

Similar to The Materials API (20)

PDF
The Materials Project Ecosystem - A Complete Software and Data Platform for M...
PPTX
grlc: Bridging the Gap Between RESTful APIs and Linked Data
PPTX
Adding Rules on Existing Hypermedia APIs
PPTX
Hypermedia for Machine APIs
ODP
Semantic web technologies applied to bioinformatics and laboratory data manag...
PPT
Accessing the Linked Open Data Cloud via ODBC
PDF
PPTX
Hypermedia System Architecture for a Web of Things
PPTX
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs
ODP
RESTing with JAX-RS
PDF
Arabidopsis Information Portal, Developer Workshop 2014, Introduction
PDF
RESTful Web services using JAX-RS
PDF
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
PDF
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
PDF
Rest with java (jax rs) and jersey and swagger
PPTX
ASP.NET Mvc 4 web api
PPT
Sword Crig 2007 12 06
PDF
Spark IT 2011 - Developing RESTful Web services with JAX-RS
PDF
JAX-RS JavaOne Hyderabad, India 2011
PPTX
RESTEasy
The Materials Project Ecosystem - A Complete Software and Data Platform for M...
grlc: Bridging the Gap Between RESTful APIs and Linked Data
Adding Rules on Existing Hypermedia APIs
Hypermedia for Machine APIs
Semantic web technologies applied to bioinformatics and laboratory data manag...
Accessing the Linked Open Data Cloud via ODBC
Hypermedia System Architecture for a Web of Things
OBA: An Ontology-Based Framework for Creating REST APIs for Knowledge Graphs
RESTing with JAX-RS
Arabidopsis Information Portal, Developer Workshop 2014, Introduction
RESTful Web services using JAX-RS
Fulfilling the Hypermedia Constraint via HTTP OPTIONS, The HTTP Vocabulary In...
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
Rest with java (jax rs) and jersey and swagger
ASP.NET Mvc 4 web api
Sword Crig 2007 12 06
Spark IT 2011 - Developing RESTful Web services with JAX-RS
JAX-RS JavaOne Hyderabad, India 2011
RESTEasy
Ad

More from University of California, San Diego (20)

PDF
A*STAR Webinar on The AI Revolution in Materials Science
PDF
NANO281 Lecture 01 - Introduction to Data Science in Materials Science
PDF
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...
PDF
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal Structures
PDF
NANO266 - Lecture 14 - Transition state modeling
PDF
NANO266 - Lecture 13 - Ab initio molecular dyanmics
PDF
NANO266 - Lecture 11 - Surfaces and Interfaces
PDF
NANO266 - Lecture 10 - Temperature
PDF
UCSD NANO106 - 12 - X-ray diffraction
PDF
UCSD NANO106 - 11 - X-rays and their interaction with matter
PDF
UCSD NANO106 - 10 - Bonding in Materials
PDF
UCSD NANO106 - 09 - Piezoelectricity and Elasticity
PDF
UCSD NANO106 - 08 - Principal Directions and Representation Quadrics
PDF
UCSD NANO106 - 07 - Material properties and tensors
PDF
NANO266 - Lecture 9 - Tools of the Modeling Trade
PDF
NANO266 - Lecture 8 - Properties of Periodic Solids
PDF
NANO266 - Lecture 7 - QM Modeling of Periodic Structures
PDF
UCSD NANO106 - 06 - Plane and Space Groups
PDF
UCSD NANO106 - 05 - Group Symmetry and the 32 Point Groups
PDF
UCSD NANO106 - 04 - Symmetry in Crystallography
A*STAR Webinar on The AI Revolution in Materials Science
NANO281 Lecture 01 - Introduction to Data Science in Materials Science
Creating It from Bit - Designing Materials by Integrating Quantum Mechanics, ...
UCSD NANO106 - 13 - Other Diffraction Techniques and Common Crystal Structures
NANO266 - Lecture 14 - Transition state modeling
NANO266 - Lecture 13 - Ab initio molecular dyanmics
NANO266 - Lecture 11 - Surfaces and Interfaces
NANO266 - Lecture 10 - Temperature
UCSD NANO106 - 12 - X-ray diffraction
UCSD NANO106 - 11 - X-rays and their interaction with matter
UCSD NANO106 - 10 - Bonding in Materials
UCSD NANO106 - 09 - Piezoelectricity and Elasticity
UCSD NANO106 - 08 - Principal Directions and Representation Quadrics
UCSD NANO106 - 07 - Material properties and tensors
NANO266 - Lecture 9 - Tools of the Modeling Trade
NANO266 - Lecture 8 - Properties of Periodic Solids
NANO266 - Lecture 7 - QM Modeling of Periodic Structures
UCSD NANO106 - 06 - Plane and Space Groups
UCSD NANO106 - 05 - Group Symmetry and the 32 Point Groups
UCSD NANO106 - 04 - Symmetry in Crystallography

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
master seminar digital applications in india
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Lesson notes of climatology university.
PDF
Classroom Observation Tools for Teachers
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Pre independence Education in Inndia.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
Cell Structure & Organelles in detailed.
Sports Quiz easy sports quiz sports quiz
O7-L3 Supply Chain Operations - ICLT Program
Complications of Minimal Access Surgery at WLH
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
master seminar digital applications in india
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
01-Introduction-to-Information-Management.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
TR - Agricultural Crops Production NC III.pdf
Lesson notes of climatology university.
Classroom Observation Tools for Teachers
Supply Chain Operations Speaking Notes -ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Anesthesia in Laparoscopic Surgery in India
human mycosis Human fungal infections are called human mycosis..pptx
Pre independence Education in Inndia.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Microbial disease of the cardiovascular and lymphatic systems

The Materials API

  • 1. THE MATERIALS API Shyue Ping Ong (MIT), Shreyas Cholia (LBL/NERSC)
  • 2. What is The Materials API? An open platform for Flexible and scalable to accessing Materials cater to large number of Project data based on collaborators, with Simple to use and code agnostic. REpresentational State different access Transfer (REST) principles. privileges.
  • 3. HTTP API design (REST) Unique Identifier. Eg. a formula (Fe2O3), id (1234) or chemical system (Li-Fe-O) Property https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy Preamble URL Data type (vasp, exp, etc.) • RESTful API maps URLs to data objects
  • 4. Why REST APIs? ¨  Big push towards RESTful HTTP APIs across the web. ¨  REST APIs provide programmatic access to data and resources to developers over the web ¨  Access to data as well defined objects allows users to develop their own custom applications and code Enables a thriving community built around data.
  • 5. Access via an API key ¨  To maintain privileged access, each user has an associated API key (with certain defined access privileges). ¨  To get your key, login to materialsproject.org and go to www.materialsproject.org/profile ¨  All MP https requests must supply API key as: ¤  A x-api-key header, e.g., {‘X-API-KEY’: ‘MYKEY’}, or ¤  As a GET or POST variable, e.g., {‘API_KEY’: ‘MYKEY’}
  • 6. Sample JSON output GET https://www.materialsproject.org/rest/v1/materials/Fe2O3/vasp/energy
  • 7. Integration with pymatgen The Materials API Powerful Materials Analytics Tool
  • 8. pymatgen ¨  The open source python library that powers the Materials Project. ¤  Defines core Python objects for materials data representation. ¤  Provides a well-tested set of structure and thermodynamic analysis tools relevant to many applications. ¤  Establishes an open platform for researchers to collaboratively develop sophisticated analyses of materials data obtained both from first principles calculations and experiments.
  • 9. Pymatgen now provides access to analysis functions as well as data
  • 10. Materials API + pymatgen example from pymatgen.matproj.rest import MPRester   #This initializes the REST adaptor. Put your own API key in. a = MPRester("YOUR_API_KEY")   #This gives you the Structure corresponding to material id 2254 in the Materials Project. structure = a.get_structure_by_material_id(2254)   #Entries are the basic unit for thermodynamic and other analyses in pymatgen. #This gets all entries belonging to the Ca-C-O system. entries = a.get_entries_in_chemsys(['Ca', 'C', 'O']) #With entries, you can do many sophisticated analyses, #like creating phase diagrams. pd = PhaseDiagram(entries) plotter = PDPlotter(pd) plotter.show()
  • 11. More information ¨  Materials API + pymatgen examples ¤  https://gist.github.com/gists/search?q=shyuep+materials+api +pymatgen ¨  The Materials API wiki ¤  https://materialsproject.org/wiki/index.php/The_Materials_API ¨  Python Materials Genomics ¤  http://packages.python.org/pymatgen/ ¤  Shyue Ping Ong, William Davidson Richard, Anubhav Jain, Geoffroy Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent Chevrier, Kristin A. Persson, Gerbrand Ceder. Python Materials Genomics (pymatgen) : A Robust, Open-Source Python Library for Materials Analysis. (submitted)