> For the complete documentation index, see [llms.txt](https://rocketteam.gitbook.io/rocketmemes-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rocketteam.gitbook.io/rocketmemes-api/reference/get-categories.md).

# Get Memes Categories

This feature is for retrieving categories of memes in RocketMeme Platform. Detaied look at the schema is seen below:

## Using the GraphQL API

Quickly fetch a list of meme categories on Rocketmemes

```graphql
query GetMemeCategories {
    meme_categories() {
        id
        category_title
        no_of_memes
        thumb_nail
    }
}
```

For getting paginated results, use an aggregate with `limit` and `offset` values set.

```graphql
query GetMemeCategories {
    meme_categories_aggregate(limit: 10, offset: 0) {
        nodes {
            id
            category_title
            no_of_memes
            thumb_nail
        }
    }
}
```

{% hint style="info" %}
**Good to know:** The graphql api gives more flexibility to what and what data is needed.
{% endhint %}

## Using the REST API

Still under development

{% hint style="info" %}
**Good to know:** This API was auto generated by Hasura
{% endhint %}
