Skip to main content
GET
/
target-materials
/
import requests

response = requests.get(
    "https://api.atomscale.ai/target-materials/",
    headers={"X-API-KEY": "YOUR_API_KEY"}
)
target_materials = response.json()
[
  {
    "id": 42,
    "sample_id": 42,
    "sample_name": "BaTiO3 on Si",
    "substrate": "Si",
    "layer_id": 1,
    "composition_string": "BaTiO3",
    "element_dict": { "Ba": 1, "Ti": 1, "O": 3 },
    "orientation": "001",
    "space_group": "P4mm",
    "mp_id": "mp-5020",
    "detail_notes_id": null,
    "detail_note_content": null,
    "sample_metadata": {},
    "user_id": "user_abc123",
    "user_name": "Jane Researcher",
    "version": "0.269.1",
    "last_updated": "2024-01-15T11:00:00Z"
  }
]
Returns the target materials for your organization. A target material is the intended layer stack and substrate for a sample. Each entry describes one layer of a material, including its composition and crystallographic details.

Response

Returns an array of target material objects. Key fields shown below (the full response includes additional metadata fields).
id
integer
Target material record ID
sample_id
integer
ID of the associated target material sample
sample_name
string
Name of the target material sample
substrate
string
Substrate the layers are grown on (e.g., Si)
layer_id
integer
Layer position within the stack
composition_string
string
Chemical composition of the layer (e.g., BaTiO3)
element_dict
object
Element counts or fractions that make up the layer
orientation
string
Crystallographic orientation of the layer, if known
space_group
string
Space group of the layer, if known
mp_id
string
Materials Project ID for the layer material, if matched
detail_notes_id
string
ID of the linked detail note, if any
detail_note_content
string
Free-text content of the linked detail note
sample_metadata
object
Arbitrary metadata attached to the target material sample
user_id
string
ID of the user who owns the record
user_name
string
Name of the user who owns the record
version
string
Schema version of the record
last_updated
string
ISO 8601 timestamp of the last update
import requests

response = requests.get(
    "https://api.atomscale.ai/target-materials/",
    headers={"X-API-KEY": "YOUR_API_KEY"}
)
target_materials = response.json()
[
  {
    "id": 42,
    "sample_id": 42,
    "sample_name": "BaTiO3 on Si",
    "substrate": "Si",
    "layer_id": 1,
    "composition_string": "BaTiO3",
    "element_dict": { "Ba": 1, "Ti": 1, "O": 3 },
    "orientation": "001",
    "space_group": "P4mm",
    "mp_id": "mp-5020",
    "detail_notes_id": null,
    "detail_note_content": null,
    "sample_metadata": {},
    "user_id": "user_abc123",
    "user_name": "Jane Researcher",
    "version": "0.269.1",
    "last_updated": "2024-01-15T11:00:00Z"
  }
]