Content Search

Search for strings in your project using GraphQL.

Example Query:

  query Search($searchStringsFilter: SearchStringsFilter!) {
    searchStrings(searchStringsFilter: $searchStringsFilter) {
      content {
        source {
          hashcode
        }
        translations {
          translationForms {
            translationText
            pluralForm
          }
        }
      }
      totalCount
      totalWordCount
      __typename
    }
  }
post/strings-view-service-graphql-api/v2/projects/{projectId}/graphql

Request

  • Base URL
    https://api.smartling.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.

Example:84c012a33

Request body

object required

Response

OK

Example response

{
  "data": {
    "searchStrings": {
      "content": [
        {
          "source": {
            "hashcode": "d41d8cd98f00b204e9800998ecf8427e"
          },
          "translations": [
            {
              "translationForms": [
                {
                  "translationText": "El rápido zorro marrón salta sobre el perro perezoso.",
                  "pluralForm": "ONE"
                }
              ]
            }
          ]
        }
      ],
      "totalCount": 198,
      "totalWordCount": 644,
      "__typename": "StringGroup"
    }
  }
}

Changes

    • breaking

      added the pattern ^[a-z0-9]{9}$ to the path request parameter projectId

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the ///// response's property type changed from string to no type for status

    • info

      for the path request parameter projectId, the format was generalized from uuid to no format

    • info

      added to the ///// response property allOf list for the response status

    • info

      endpoint added