---
title: "Parse a G-code job file and return retrieved information. If no file is specified, information about the file being printed is returned"
method: GET
path: "/rr_fileinfo"
---

# Parse a G-code job file and return retrieved information. If no file is specified, information about the file being printed is returned

`GET /rr_fileinfo`

## Query parameters

- `name` string

## Response `200`

File list result

- object
  - `err` number — Error code, either `0` on success or `1` on error
  - `fileName` string — Filename of the G-code file
  - `size` number — Size of the file
  - `lastModified` string, date-time — Datetime when the file was last modified
  - `height` number — Object height (in mm)
  - `layerHeight` number — Layer height (in mm)
  - `numLayers` number — Number of layers
  - `printTime` number — Expected time to print (in s)
  - `simulatedTime` number — Simulated time to print (in s)
  - `filament` number[] — Filament usage (in mm)
  - `printDuration` number — Current print duration (in s)
  - `thumbnails` object[] — Info about embedded thumbnails
    - `width` number — Width of the thumbnail (in px)
    - `height` number — Height of the thumbnail (in px)
    - `format` 'png' | 'qoi' | 'jpeg' — Thumbnail format
    - `offset` number — File offset (to be used with rr_thumbnail)
    - `size` number — Size of the thumbnail
  - `generatedBy` string — Application that generated the file

---

[API](https://skmtc.dev/duet3d/apis/reprapfirmware.md) · [All operations](https://skmtc.dev/duet3d/apis/reprapfirmware/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/duet3d/reprapfirmware/revisions/23ee8854e806/schema)
