How to get Homepage meta description and title

Hi,

In my app I’m trying to get the shop’s ‘Homepage meta description’ and ‘Homepage meta title’.

I tried using /admin/metafields.json as appears on https://help.shopify.com/en/api/reference/metafield but this keeps returning empty.

My shop doesn’t have any other Meta fields currently.

Any ideas?

Maybe there is a need for a specific scope?

Thanks

Hi there,

The value that you are looking to edit is not actually considered a metafield in the same sense as metafields you would find on products or other store entities. Here is the guide from our documentation that covers adding a homepage meta description: https://help.shopify.com/en/manual/promoting-marketing/seo/adding-keywords

Cheers