# How to retrieve metadata from my inventory?

**To retrieve metadata, please use the following command:**

Variables are month and year.

```
curl --location --request GET 'https://content.allrites.com/api/ritestream/metadata?type=json&month=july%202021&page=-1' \
--header 'api-token: your token'
```

{% hint style="info" %}
To get the API token, refer to this page "[**Where can I get the API token?**](https://rshelp.allrites.com/where-can-i-get-the-api-token)"
{% endhint %}

By adding the month variable **genre** and **category** returned will be limited to the contents of that particular month.

```
curl --location --request GET 'https://content.allrites.com/api/ritestream/genres?month=January%202022' \
--header 'api-token: your token'
```

```
curl --location --request GET 'https://content.allrites.com/api/ritestream/categories?month=January%202022' \
--header 'api-token: your token'

```

You can use [reqbin](https://reqbin.com/curl) to test this.

Images in the JSON response include our crop info to give good size and ratio.

<https://res.cloudinary.com/allrites/image/upload/q_auto:low/c_crop,h_768,w_537,x_5,y_0/c_scale,w_250/cjnrkwwqzkpjcyyasdv6>

If you want to retrieve the entire image, please remove the crop info like this.

<https://res.cloudinary.com/allrites/image/upload/cjnrkwwqzkpjcyyasdv6>
