Export recipe

Export Shopify metaobject entries to a CSV

Already have the file?

Drop it into the converter. It reads it in your browser and gives you a CSV.

Runs in your browser. Your file is never uploaded.

Convert my file

What the admin can’t do

Content > Metaobjects lists entries per definition, with no CSV import or export.

A bulk query asks Shopify to collect everything in the background and hand you one file to download. It reads data only; it can’t change your store. Shopify keeps the download link for 7 days.

Run it with Shopify CLI (recommended)

You need Shopify CLI installed on your computer. shopify store auth asks you to approve access in your browser, then shopify store bulk execute runs the export.

  1. Save the query below in a file named metaobjects.graphql.
  2. Run the two commands. The first opens your browser to approve access (scopes: read_metaobjects). The second waits for the export and saves it as metaobjects.jsonl.
metaobjects.graphql
{
  metaobjects(type: "YOUR_TYPE") {
    edges {
      node {
        id
        handle
        type
        displayName
        updatedAt
        fields {
          key
          type
          value
        }
      }
    }
  }
}
Terminal
shopify store auth --store your-store.myshopify.com --scopes read_metaobjects
shopify store bulk execute --store your-store.myshopify.com --version 2026-10 \
  --query-file metaobjects.graphql --watch --output-file metaobjects.jsonl

Or with Shopify’s GraphiQL app

  1. Install Shopify’s GraphiQL app on your store and tick these scopes: read_metaobjects. Choose API version 2026-10.
  2. Paste the mutation below and run it. Copy the id it returns.
  3. Paste the status query, put the id in it, and run it every minute or so until status is COMPLETED.
  4. Open the url it returns to download the .jsonl file.
Start the export
mutation {
  bulkOperationRunQuery(
    query: """
    {
      metaobjects(type: "YOUR_TYPE") {
        edges {
          node {
            id
            handle
            type
            displayName
            updatedAt
            fields {
              key
              type
              value
            }
          }
        }
      }
    }
    """
  ) {
    bulkOperation {
      id
      status
    }
    userErrors {
      field
      message
      code
    }
  }
}
Check the status
query {
  bulkOperation(id: "PASTE_THE_ID_HERE") {
    status
    errorCode
    objectCount
    url
    partialDataUrl
  }
}

Turn it into a CSV

  1. Open the JSONL to CSV converter.
  2. Drop in metaobjects.jsonl. It’s read in your browser; nothing is uploaded.
  3. Choose One row per entry, then click Download CSV.

Columns you get

handle
The entry’s handle.
displayName
The name shown in the admin.
fields.<key>
One column per field. File and reference fields hold an ID like gid://shopify/MediaImage/123.

Find your metaobject types first

Replace YOUR_TYPE with the type of the definition you want (for example color_swatch). This normal query lists them.

Query
query {
  metaobjectDefinitions(first: 50) {
    nodes {
      type
      name
      metaobjectsCount
    }
  }
}

Scopes: read_metaobject_definitions. This is a normal query, not a bulk one. In GraphiQL, paste the query and run it. With the CLI: shopify store execute --store your-store.myshopify.com --query-file query.graphql --output-file result.json. Paste or drop the result into the converter.

Limits

  • Run the bulk query once per type. The metaobjects query needs a type.
  • Reference fields come out as IDs, not names. List and JSON fields come out as their JSON text.
  • Every type and field in these queries was checked against Shopify’s GraphQL Admin API reference for version 2026-10. We haven’t run them on a live store. If Shopify returns an error, the message names the field or scope it’s missing.
  • Bulk queries allow up to five connections, two levels deep (Shopify bulk operation limits).

More recipes

Sources: metaobjects query, Metaobject, MetaobjectField, metaobjectDefinitions query. Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.