---
title: "Retrieves meta fields belong to an resource with options."
method: GET
path: "/admin/metafields.json"
tags: ["Metafield"]
---

# Retrieves meta fields belong to an resource with options.

`GET /admin/metafields.json`

## Query parameters

- `limit` integer
- `since_id` integer
- `created_at_min` string
- `created_at_max` string
- `updated_at_min` string
- `updated_at_max` string
- `fields` string
- `namespace` string
- `key` string
- `value_type` string

## Response `200`

OK

- APIResponseMetafieldsDto
  - `metafields` MetafieldDto[]
    - `description` string
    - `id` integer — A unique numeric identifier for the meta field. Each id is unique across the ShopBase system. No two metafield will have the same id, even if they're from different shops.
    - `key` string
    - `namespace` string
    - `owner_id` integer
    - `owner_resource` string
    - `updated_at` integer
    - `value` object
    - `value_type` string

---

[API](https://skmtc.net/shopbase/apis/shopbase-internal-api.md) · [All operations](https://skmtc.net/shopbase/apis/shopbase-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopbase/shopbase-internal-api/revisions/353ccde6240d/schema)
