# Testing mode

You can check how the Streams Charts API works before purchasing it.&#x20;

To do it, use <mark style="color:yellow;">`testing_mode=true`</mark> in the route field.&#x20;

For example, <mark style="color:yellow;">`testing_mode=true&platform=twitch&time=last-month`</mark>. As a result, you will get a response with fake data.

#### Use case

If you want to see stream data in the testing mode, you should perform the following request (use your token and client ID):

```
curl -X GET https://streamscharts.com/api/jazz/channels/xqc/streams/45870685068?platform=twitch&testing_mode=true \
-H 'Client-ID: XXXXXXXXXXXX' \
-H 'Token: YYYYYYYYYYYYYY'
```

*Use your Client ID and token instead of "XXXXXXXXXXXX" and "YYYYYYYYYYYYYY", which you can find* [*here*](https://streamscharts.com/api/token)*.*

The response you would get would be a JSON response with fake stats:

```json
{
"data":{
"platform": "twitch",
"channel_name": "twitchrivals",
"channel_display_name": "TwitchRivals",
"channel_id": "197886470",
"avatar_url": "https://static-cdn.jtvnw.net/jtv_user_pictures/4d7baea6-e3e4-4887-ad65-eee3388da27a-profile_image-300x300.png",
"stream_id": "41038213035",
"stream_status": "Twitch Rivals: Apex Legends Showdown",
"stream_start": "2022-07-26 20:46:26",
"stream_end": "2022-07-27 01:10:00",
"stream_language": "en",
"hours_watched": 75786,
"airtime_in_m": 270,
"peak_viewers": 25434,
"average_viewers": 16842,
"followers_gain": 2329,
"top_game_by_hw": "Apex Legends",
"top_game_by_hw_%": 100
}
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://streams-charts.gitbook.io/streams-charts-live-streaming-api-docs/testing-mode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
