How to use the metafields API

New Member
26 0 0

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

0 Likes
Shopify Staff
Shopify Staff
240 33 37

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.

0 Likes
Highlighted
New Member
26 0 0

hi @scottydont 

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?

0 Likes
Tourist
5 0 2

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 :)

0 Likes