Skip to content

List ready files

GET/admin/v1/stores/{store_id}/media
  • products:read
  • content:read

List ready files, newest first, each with how many places use it and its flags.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

Query parameters

  • kindenum

    What a file is, which decides how it is delivered.

    • image
    • video
    • file
  • flagstring

    Comma-separated flags: missing_alt, small, unused. Only files carrying all of them.

  • qstring

    Substring of the file name or alt text.

  • limitinteger

    1–250, default 50.

  • cursorstring

    page.next_cursor from the previous page.

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Returns

200 A page of files.

Errors

  • 400bad_requestMalformed query or cursor.
  • 403forbiddenMissing permission.