How to query/export data rows by Metadata?

For our automation workflow, It would be really nice to be able to filter and fetch all data row IDs by metadata fields either via the Python SDK or GraphQL queries.
Is this feature possible?

Right now, I believe the only way to do this is to export all data rows with `include_metadata=True for every dataset, then filter by the metadata attribute in Python. However, this seems very inefficient as every time we want to ‘query via metadata’ it requires exporting all data rows off Labelbox and looping through all items.

Hi, thanks for reaching out.

Please could you expand on your use case and what your next step would be after getting the DataRowIDs with certain metadata? Would it be ok if you can do this via the UI?

Meanwhile, I’m double checking with my team if this is possible.

This can be done with a combination of catalog and SDK as shown in this video

Doc for reference: Slices

Please let me know if you have any questions. I would be happy to assist.