> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atomscale.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Photoluminescence Data

> Retrieve photoluminescence spectroscopy data

Returns processed photoluminescence (PL) data including energies, intensities, and detected peaks.

<ParamField path="data_id" type="string" required>
  The data entry UUID for the PL measurement
</ParamField>

## Response

<ResponseField name="data_id" type="string">
  Data entry UUID
</ResponseField>

<ResponseField name="id" type="string">
  PL results identifier
</ResponseField>

<ResponseField name="energies" type="array">
  Energy values (eV)
</ResponseField>

<ResponseField name="intensities" type="array">
  Intensity values corresponding to the energies
</ResponseField>

<ResponseField name="normalization_applied" type="boolean">
  Whether normalization has been applied to the intensity values
</ResponseField>

<ResponseField name="detected_peaks" type="array">
  Detected emission peaks in the spectrum
</ResponseField>

<ResponseField name="last_updated" type="string">
  ISO 8601 timestamp of last update
</ResponseField>

<RequestExample>
  ```python SDK theme={null}
  from atomscale import Client

  client = Client(api_key="YOUR_API_KEY")
  results = client.get(data_ids="d290f1ee-6c54-4b01-90e6-d701748f0851")
  pl = results[0]  # PhotoluminescenceResult
  print(pl.energies)
  print(pl.detected_peaks)
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://api.atomscale.ai/photoluminescence/d290f1ee-6c54-4b01-90e6-d701748f0851",
      headers={"X-API-KEY": "YOUR_API_KEY"}
  )
  pl_data = response.json()
  ```

  ```bash cURL theme={null}
  curl "https://api.atomscale.ai/photoluminescence/d290f1ee-6c54-4b01-90e6-d701748f0851" \
    -H "X-API-KEY: YOUR_API_KEY"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "id": "pl_001",
    "energies": [1.31, 1.38, 1.42, 1.46, 1.55],
    "intensities": [0.08, 0.52, 1.0, 0.45, 0.1],
    "normalization_applied": true,
    "detected_peaks": [
      {"energy": 1.424, "intensity": 1.0}
    ],
    "last_updated": "2024-01-15T10:35:00Z"
  }
  ```
</ResponseExample>
