Export JSON annotations

labels = project.export_labels(download=True)

# Optionally, provide a date range as an optional parameter
# This will export only labels created between the supplied dates
# Date range can be formatted as "YYYY-MM-DD" or "YYYY-MM-DD hh:mm:ss"
labels = project.export_labels(download=True, start="2022-09-28", end="2022-10-04")

Annotation export formats

Classification - Radio

{
    "featureId": "ckmuuwmp4000a3g68rmku827s",
    "schemaId": "ckmuuvs5p5nj40y629l1570bi",
    "title": "Is it daytime?",
    "value": "is_it_daytime?",
    "answer": {
        "featureId": "ckmuuwmp400093g68qof3hnt8",
        "schemaId": "ckmuuvs7u5njg0y629iiuc216",
        "title": "Yes",
        "value": "yes"
    }
}

Classification - Checklist

{
  "featureId": "cl89b1d3g00013b6k8388lpol",
  "schemaId": "cl89b186w0xg107xkga0fdf4j",
  "scope": "global",
  "title": "Attributes",
  "value": "attributes",
  "answers": [
    {
      "featureId": "cl89b1dln00033b6ky6j9cb62",
      "schemaId": "cl89b186w0xg407xk4yvkf3o8",
      "title": "Crowded",
      "value": "crowded"
    },
    {
      "featureId": "cl89b1e3z00063b6kll28e559",
      "schemaId": "cl89b186w0xg607xk8ogy304a",
      "title": "Foot traffic",
      "value": "foot_traffic"
    },
    {
      "featureId": "cl89b1ekd000a3b6kbiipqxi7",
      "schemaId": "cl89b186w0xg807xke5kg606w",
      "title": "Vehicle traffic",
      "value": "vehicle_traffic"
    }
  ]
}

Classification - Free-form text

{
    "featureId": "ckmuzkkhw000a3g68xegct9wz",
    "schemaId": "ckmuzjtfa64bq0y839bn8ci4l",
    "title": "Free-form text",
    "value": "free-form_text",
    "answer": "Correct text answer"
}

Sample Label payload - Audio

[
    {
        "ID":"ckuzw2q8j00om0z940h5mg598",
        "DataRow ID":"ckuyk41ex02gy0zvi2yg49ut5",
        "Labeled Data":"https://storage.labelbox.com/ck9lrkuahv4no0740xvh19b7p%2Fe731037a-e9de-2cc2-ffb6-43af679e3656-Taylor%20Swift%20-%20Bad%20Blood%20(feat.%20Kendrick%20Lamar).mp3?Expires=1635966660273&KeyName=labelbox-assets-key-3&Signature=JzpFYV_gIAu2SltCBXE0lY47AyY",
        "Label":{
            "objects":[],
            "classifications":[
                {
                    "featureId":"ckuzw35hi00013e66y3n488v2",
                    "schemaId":"ckuzw2j6600o90z8qawks1mcj",
                    "title":"Who sings this?",
                    "value":"who_sings_this?",
                    "uiMode":"hotkey",
                    "answer":{
                        "featureId":"ckuzw35hi00003e66biwp6hjw",
                        "schemaId":"ckuzw2j7e00oq0z8qftr9evz1",
                        "title":"Taylor Swift",
                        "value":"taylor_swift"
                    }
                },
                {
                    "featureId":"ckuzw36ys00033e66vozh0tua",
                    "schemaId":"ckuzw2j6700ob0z8q50glabn1",
                    "title":"What genre is this?",
                    "value":"what_genre_is_this?",
                    "answers":[
                        {
                            "featureId":"ckuzw36ys00023e66tuoo50xv",
                            "schemaId":"ckuzw2j7c00og0z8q9xkb6a2o",
                            "title":"Pop",
                            "value":"pop"
                        },
                        {
                            "featureId":"ckuzw37hl00053e66mt2d3zpv",
                            "schemaId":"ckuzw2j7c00oi0z8q25wo7ecz",
                            "title":"Country",
                            "value":"country"
                        }
                    ]
                }
        ]
    },
    "Created By": "[email protected]",
    "Project Name": "Song Categorization",
    "Created At": "2021-10-20T19:09:41.000Z",
    "Updated At": "2021-10-20T19:09:41.359Z",
    "Seconds to Label": 3.202,
    "External ID": "Taylor Swift - Bad Blood (feat. Kendrick Lamar).mp3",
    "Agreement": -1,
    "Benchmark Agreement": -1,
    "Benchmark ID": null,
    "Dataset Name": "Taylor Swift",
    "Reviews": [],
    "View Label": "https://editor.labelbox.com?project=ckuzw15p700g70z8q0qjahpe7&label=ckuzw2q8j00om0z940h5mg598",
    "Has Open Issues": 0,
    "Skipped": false,
    "DataRow Workflow Info": {
      "taskName": "Done",
      "Workflow History": [
        {
          "actorId": "cl3lobugu14pw0796fau0dgad",
          "action": "APPROVE",
          "createdAt": "2022-09-29T15:46:23.269Z",
          "previousTaskId": "0ae49522-97f0-4a07-96c6-bd4d50963acd",
          "previousTaskName": "Initial review task"
        },
        {
          "actorId": "cl3lobugu14pw0796fau0dgad",
          "action": "REWORK",
          "createdAt": "2022-09-29T14:23:59.735Z",
          "previousTaskId": "4a0d7f40-0c3f-0cc8-adc4-fd818684facd",
          "previousTaskName": "Rework (all rejected)",
          "nextTaskId": "0ae49522-97f0-4a07-96c6-bd4d50963acd",
          "nextTaskName": "Initial review task"
        },
        {
          "actorId": "cl1qe5naj3g460z6e0owr6mwj",
          "action": "REJECT",
          "createdAt": "2022-09-29T13:39:01.077Z",
          "previousTaskId": "0ae49522-97f0-4a07-96c6-bd4d50963acd",
          "previousTaskName": "Initial review task",
          "nextTaskId": "4a0d7f40-0c3f-0cc8-adc4-fd818684facd",
          "nextTaskName": "Rework (all rejected)"
        },
        {
          "actorId": "cl3ucfsj22j8l073xaitnh1xe",
          "action": "MOVE",
          "createdAt": "2022-09-28T18:06:16.881Z",
          "previousTaskId": "ea78e526-e429-002e-8b80-b72c4b591152",
          "previousTaskName": "Initial labeling task",
          "nextTaskId": "0ae49522-97f0-4a07-96c6-bd4d50963acd",
          "nextTaskName": "Initial review task"
        },
        {
          "actorId": "cl3ucfsj22j8l073xaitnh1xe",
          "action": "MOVE",
          "createdAt": "2022-09-28T18:06:16.859Z",
          "nextTaskId": "ea78e526-e429-002e-8b80-b72c4b591152",
          "nextTaskName": "Initial labeling task"
        }
      ]
    }
  }
]