---
title: "translatableResourcesByIds"
description: "Query translation data of a store using one or more resource IDs."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/localizations/queries/translatable-resources-by-ids'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/localizations/queries/translatable-resources-by-ids.md'
---
# translatableResourcesByIds

Query translation data of a store using one or more resource IDs.

- **Required Scopes:** `read_translation`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Required Permissions

* `read_translation`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `after`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Returns elements following the specified cursor. The `first` argument must also be specified when using this argument.

* `before`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Returns elements preceding the specified cursor. The `last` argument must also be specified when using this argument.

* `first`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  Returns the first n elements in the list. 

* `last`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  Returns the last n elements in the list. 

* `reverse`

  [Boolean](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  Whether to reverse the order of the list. 
  
  ● true: reverse
  
  ● false: do not reverse
  
  Default value: false

* `resourceIds`

  [[ID!]!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  List of unique identifiers for resources.

## Returns

* `edges`

  [[TranslatableResourceEdge!]](https://developer.shopline.com/docs/admin-graph-ql-api/localizations/objects/translatable-resource-edge.md)

  edges

* `pageInfo`

  [TranslatablePageInfo!](https://developer.shopline.com/docs/admin-graph-ql-api/localizations/objects/translatable-page-info.md)

  page info

## Examples

### Query original and up-to-date translation data for a specific market and language within multiple resources.

Query original and up-to-date translation data for a specific market and language within multiple resources.

**Request:**

```json
query MyQuery {
  translatableResourcesByIds(
    resourceIds: ["gid://shopline/Product/16065881455967920659531950", "gid://shopline/Product/16065881455967920659531951"]
    first: 10,
    reverse: false
  ) {
    edges {
      cursor
      node {
        resourceId
        translatableContent {
          digest
          key
          locale
          type
          value
        }
        translations(locale: "en", outdated: false, marketId: "2805979406510623080534") {
          value
          updatedAt
          outdated
          market {
            id
          }
          locale
          key
        }
      }
    }
    pageInfo {
      startCursor
      hasNextPage
      endCursor
    }
  }
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "translatableResourcesByIds": {
        "edges": [
          {
            "cursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ==",
            "node": {
              "resourceId": "gid://shopline/Product/16065881455967920659531950",
              "translatableContent": [
                {
                  "digest": "07ec01a6c4ea382ed6ae7671b7bcf358",
                  "key": "title",
                  "locale": "DEFAULT",
                  "type": "STRING",
                  "value": "Product title"
                }
              ],
              "translations": [
                {
                  "outdated": false,
                  "value": "Default corpus English - Product title",
                  "key": "title",
                  "locale": "en",
                  "market": {
                    "id": "DEFAULT"
                  }
                }
              ]
            }
          }
        ],
        "pageInfo": {
          "endCursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ==",
          "hasNextPage": "true",
          "startCursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ=="
        }
      }
    }
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

