api icon indicating copy to clipboard operation
api copied to clipboard

New API client for the Materials Project

Results 103 api issues
Sort by recently updated
recently updated
newest added

### Code snippet CCing @esoteric-ephemera since this is part an API question and part an MP workflow question intersecting with emmet. ```python from mp_api.client.routes.materials.tasks import TaskRester from monty.serialization import dumpfn...

bug

## Summary Major changes: - Allow the API client to return facet information for the task endpoint. - Added previously disabled query params for the task collection. - Disable "all_fields"...

### Python version 3.12.8 ### Pymatgen version 2025.1.24 ### Operating system version macOS 15.2 ### Current behavior The following code: ``` with MPRester(apikey) as mpr: mp_data = mpr.materials.summary.search( fields=["material_id", "deprecated",...

bug

Closes #964 but needs reorg of `tasks` and `build` documents on OpenData for next release @tsmathis.

Bumps the pip group with 1 update in the /requirements directory: [cryptography](https://github.com/pyca/cryptography). Updates `cryptography` from 44.0.0 to 44.0.1 Changelog Sourced from cryptography's changelog. 44.0.1 - 2025-02-11 * Updated Windows, macOS,...

dependencies

### Code snippet ```python task_doc = mpr.materials.tasks.search(['mp-2022247'], fields=mpr.tasks.available_fields)[0] ``` ### What happened? Running: `task_doc.fields_not_requested` Returns: ``` ['builder_meta', 'nsites', 'elements', 'composition', 'composition_reduced', 'formula_anonymous', 'volume', 'density', 'density_atomic', 'symmetry', 'tags', 'dir_name', 'state', 'structure',...

bug

### Problem Currently, the `mp-api` does not provide a built-in filter to identify materials based on their **crystal type**, such as **ionic crystals**. While I can query materials by formula,...

### Code snippet ```python with MPRester() as mpr: task_id = 'mp-19970' task_doc = mpr.materials.tasks.search([task_id], fields=['task_id', 'calcs_reversed', 'elements', 'entry'])[0] print(task_doc.entry) ``` ### What happened? I'm attempting to retrieve the entries in...

bug

Model context protocols (MCPs) are a generally architecture agnostic standard for allowing LLMs to access the key functionalities of an API or other walled-off data (or abstract functionality) Want to...