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
Text entity (named entity)
{
"featureId":"cl2zji82m00043g6cunt8telp",
"schemaId":"cl2zjh37t0jrd08965lr80xva",
"color":"#1CE6FF",
"title":"Person",
"value":"person",
"version":1,
"format":"text.location",
"data":{
"location":{
"messageId":"2",
"start":0,
"end":22
}
}
}
Relationship
"relationships":[
{
"featureId":"cl2zjivad00203g6ck8nk7jrt",
"schemaId":"ckrdp1ln400003h6jq23cbjfl",
"data":
{
"source":"cl2zji82m00043g6cunt8telp",
"target":"cl2zjihh600053g6cztv2bblb",
"label":"Person"
},
"relationshipType":"unidirectional",
"version":1
}
]
Classification - Radio
{
"featureId": "cknp3d0hw00013g68wkjemi6o",
"schemaId": "cknp3ctst06nq0ycte8icc2l3",
"title": "user sentiment",
"value": "user sentiment?",
"messageId": "1",
"answer": {
"featureId": "cknp3d0hw00003g685c0nj5c1",
"schemaId": "cknp3cttx06oe0yct3f0d6pmz",
"title": "Positive",
"value": "Positive"
}
}
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
[
{
"ID":"cl2zjh5cy0jrk0896c8cibz7c",
"DataRow ID":"cl1l52wx403vs0zy1g35hcj9h",
"Labeled Data":"https://storage.googleapis.com/labelbox-developer-testing-assets/conversational_text/data.json",
"Label":{
"objects":[
{
"featureId":"cl2zji82m00043g6cunt8telp",
"schemaId":"cl2zjh37t0jrd08965lr80xva",
"color":"#1CE6FF",
"title":"Person",
"value":"person",
"version":1,
"format":"text.location",
"data":{
"location":{
"messageId":"2", //This matches the messageID on the import file
"start":0,
"end":22
}
}
},
{
"featureId":"cl2zjihh600053g6cztv2bblb",
"schemaId":"cl2zjh37t0jrd08965lr80xva",
"color":"#1CE6FF",
"title":"Person",
"value":"person",
"version":1,
"format":"text.location",
"data":{
"location":{
"messageId":"4",
"start":0,
"end":13
}
}
}
],
"classifications":[],
"relationships": [
{
"featureId":"cl2zjivad00203g6ck8nk7jrt",
"schemaId":"ckrdp1ln400003h6jq23cbjfl",
"data":{
"source":"cl2zji82m00043g6cunt8telp",
"target":"cl2zjihh600053g6cztv2bblb",
"label":"Person"
},
"relationshipType":"unidirectional",
"version":1
}
]
},
"Created By":"[email protected]",
"Project Name":"Convo Docs",
"Created At":"2022-05-10T02:35:24.000Z",
"Updated At":"2022-05-10T02:35:24.834Z",
"Seconds to Label":103.85499999999999,
"External ID":"Longer_Convo_Example",
"Agreement":-1,
"Benchmark Agreement":-1,
"Benchmark ID":null,
"Dataset Name":"Conversation 1.json",
"Reviews":[],
"View Label":"https://staging.labelbox.dev/editor?project=cl2zjfkt60jnv0896gb9367nd&label=cl2zjh5cy0jrk0896c8cibz7c",
"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"
}
]
}
}
]