Labelbox documentation

How to export labels

To export Labels via the Labelbox UI, follow these steps:

  1. Select a project.

  2. Go to the Export tab.

  3. Click Generate export.

  4. Download your export file from the Tasks menu in the top navbar.

Note

To export Labels via the Python SDK, see our Python SDK tutorials section.

Annotation type

Asset types supported

Export format

Segmentation mask

Images

See JSON

Bounding box

Images, Video

See JSON

Polygon

Images, Tiled imagery

See JSON

Point

Images, Tiled imagery, Video

See JSON

Polyline

Images

See JSON

Entity (NER)

Text

See JSON

Radio classification

Images, Tiled imagery, Video, Text

See JSON

Checklist classification

Images, Tiled imagery, Video, Text

See JSON

Dropdown classification

Images, Tiled imagery, Text

See JSON

Free-form text classification

Images, Tiled imagery, Text

See JSON

To access the URL containing the information for the labeled frames, place your API key in the authorization header. To see an example, see the authentication docs in our GraphQL section.

The endpoint this URL points to may return an HTTP 301 response. If this happens, the HTTP response will contain a Location header with the download URL.

If the label is skipped and has no data, the endpoint will return an HTTP 204 response.

"Label": {
    "frames": "<URL-TO-NDJSON-FILE>"
}

Bash example for accessing the frames:

curl -L -H "Authorization: Bearer $API_KEY"  $FRAMES_URL > $FRAMES_FILE_LOCATION

Python example for accessing the frames:

import requests

headers = {'Authorization': f"Bearer {API_KEY}"}
ndjson_response = requests.get(frames_url, headers=headers)

Each element in the NDJSON file represents a labeled frame in the video (unlabeled frames will not be included).