> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/queries/content/content-library-2.md).

# Content Tags

Query content library articles

Use the `contentTags` query to retrieve a list of content Tags.

### Available Arguments

| **Arguments** | **Type** | **Description**                                                                                        |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------ |
| `after`       | String   | See [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). |
| `before`      | String   | See [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). |
| `first`       | Int      | See [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). |
| `name`        | String   | Filters by tag name.                                                                                   |
| `last`        | Int      | See [pagination](https://docs.suggestic.com/graphql/start-here/tutorials-and-walkthroughs/pagination). |

### Available Fields

| **Field** | **Type** | **Description** |
| --------- | -------- | --------------- |
| `name`    | String   | Name of Tag.    |
| `Id`      | ID       | Id of Tag.      |

### Example with Category Filter

{% tabs %}
{% tab title="Query" %}

```graphql
query{contentTags{
  edges{node{
    name
    id
  }}
}}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "contentTags": {
      "edges": [
        {
          "node": {
            "name": "course",
            "id": "Q29udGVudFRhZzowMTc1YmJmZC1kZTJhLTRjM1MtYjZkMy0yOGI2OTU4Y2RkYWI="
          }
        },
        {
          "node": {
            "name": "exercise",
            "id": "Q29udGVudFRhZzo3ZWNiM2Y3Ni1lNTM3LTQ1MzQtYWZhOS1kNmFkOWI3Yzk5ODU="
          }
        },
        {
          "node": {
            "name": "common",
            "id": "Q29udGVudFRhZzo0ZDAyOTIxOC1kYWJjLTQxNmEtYWExNS01MWFmMGJhZTViZGM="
          }
        },
        {
          "node": {
            "name": "premium",
            "id": "Q29udGVudFRhZzpmZmY0NTk0Yb0zMmUxLTRhM2MtYTEyMC03YTdhMjhiODMwY2Y="
          }
        },
        {
          "node": {
            "name": "supplements",
            "id": "Q29udGVudFRhZzo0MmJjMWZhMi1jM2YyLTRkMGQtYjZiNS1kMzc4YjBloWJlZjk="
          }
        }
      ]
    }
  }
}
```

{% endtab %}
{% endtabs %}
