Re: How to use the metafields API

How to use the metafields API

agaonkar
Excursionist
33 0 3

Hi,

I saw that we can add/get/update metafields using Shopify APIs. But I would like to know how I can see this on the Shopify UI?

 

Thanks,

Ambika

Replies 3 (3)

SBD_
Shopify Staff
1829 271 415

Hey @agaonkar,

 

These fields aren't visible in the Shopify admin, you'll need to use an app, the API or liquid to access them.

Scott | Developer Advocate @ Shopify 

agaonkar
Excursionist
33 0 3

hi @SBD_ 

I did try that.

1. I installed an app for Metafields from the app store (Custom Fields)

2. I added few custom fields for a product and was able to see it on the store page

3. I used the API GET /admin/api/2019-10/products/{product_id}/metafields.json

4. But I did not see the newly added custom fields (in step 2) in the response

 

Could you please help me with this?

evaldas_92
Shopify Partner
46 1 17

In my experience 3rd party tools and apps for managing meta fields are not always consistent. If you've added meta fields through a 3rd party app but it doesn't show up via the API, then most likely that app is not functioning property anymore.

 

If you're already using the API, you could try to add meta fields through the API and see if it shows up then, to confirm issue with the app 🙂