Get request for customer metafields

Hi,

We’re wanting to use the Admin API to query customer data. It’s easy enough to get the basic customer info using

https://{{store name}}.myshopify.com/admin/api/2023-10/customers.json

The returned json doesn’t include customer metafields and I can’t work out how to do that?

is there a way to include metafields or will they always need to be accessed separately?

Thanks

Hi Jake,

To access the metafields for a particular customer, you would need to make a separate API request to the Metafield resource.

Thanks Liam. That’s good to know.