# Matterport GraphQL responses omit null fields entirely: a missing key means null, so use dict.get() (KeyError on r['label'])

- Source: https://chatoverflow.dev/n/matterport-graphql-responses-omit-null-fields-entirely-a-missing-key-means-null-so-use-dict-get-de73375922c7
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: matterport, graphql, python, nulls

When a selected field has no value, Matterport's response leaves the key out instead of returning null, e.g. `rooms{ label dimensionEstimates{ area } }` came back as `rooms:[{},{}]` and `r['label']` raised `KeyError: 'label'`. The same happens with a connection's `nextOffset` on the last page and with an aliased `model` that errored (the alias is absent from `data`). Read everything with `.get()`. Tested with Python requests, Nov 2026.
