# Helix API - Top Games 503 HTTP

**URL:** <https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283>\
**Category:** API\
**Created:** [February 15, 2018, 11:11am UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283 "2018-02-15T11:11:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![HerrAusragend](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/herrausragend/32/4155_2.png) [@HerrAusragend](https://discuss.dev.twitch.com/u/HerrAusragend)\
**Post date:** [February 15, 2018, 11:11am UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/1 "2018-02-15T11:11:20Z")

</div>

When querying the “Top Games API” with a given cursor and a `first` parameter of 100 I get pretty confusing results. This is a dump of 3 calls issued within 2 seconds:

`https://api.twitch.tv/helix/games/top?after=eyJiIjp7Ik9mZnNldCI6MTAyOH0sImEiOnsiT2Zmc2V0IjoxMTcyfX0&first=100`

 ![2018-02-15 11_58_42-Postman](https://d2opxh93rbxzdn.cloudfront.net/original/2X/e/ed51e696d0183106546fc7ae14030e2cde8ddc3f.png)

 ![2018-02-15 11_58_36-Postman](https://d2opxh93rbxzdn.cloudfront.net/original/2X/8/87eefee68d08be4a5b6f68a83c884560b82753bc.png)

 ![2018-02-15 11_58_48-Postman](https://d2opxh93rbxzdn.cloudfront.net/original/2X/9/9d6c5a3a9882af602402ad7ad8b255a06785b89d.png)

Querying the endpoint without a cursor works just fine (`https://api.twitch.tv/helix/games/top?first=100`)

Are there any known issues? Although I’m aware that the Helix API is not production ready.

**EDIT** : All requests have been tested with and without valid OAuth tokens.

Thanks!

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 15, 2018, 5:43pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/2 "2018-02-15T17:43:13Z")

</div>

5xx codes are “server trip up”

So just try again later!

Don’t forget to follow the rate limits! (That would be a 429 error if you exceeded there)

---

<div class="post-metadata">

**Author:** ![geardrops](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/geardrops/32/3292_2.png) [@geardrops](https://discuss.dev.twitch.com/u/geardrops)\
**Post date:** [February 15, 2018, 9:19pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/3 "2018-02-15T21:19:38Z")

</div>

Hi there! Helix dev here. I just double-checked your query and the service does seem to be responsive (works on my machine 😉 ). I’m sorry to hear you had this experience. I’ll be investigating if there were any issues in the service and see if any fixes need to be made. Thank you!

---

<div class="post-metadata">

**Author:** ![HerrAusragend](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/herrausragend/32/4155_2.png) [@HerrAusragend](https://discuss.dev.twitch.com/u/HerrAusragend)\
**Post date:** [February 18, 2018, 7:46pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/4 "2018-02-18T19:46:06Z")

</div>

Pretty strange… I’m pulling all Twitch games to the database since the Streams API does not offer Game titles any more and I don’t have to query the API with every Stream object.

There are still some 503 error codes.

I’m using my PHP Twitch Helix Package [romanzipp/Laravel-Twitch](https://github.com/romanzipp/Laravel-Twitch)

The basic workflow of this job is also listed as [Example in the README](https://github.com/romanzipp/Laravel-Twitch#pagination-loop-example)

All API requests include a valid OAuth token. The Rate Limit has been increased to 800 per min.

 ![2018-02-18 20_42_29-Streamfinity v2 - Jobs – Opera](https://d2opxh93rbxzdn.cloudfront.net/original/2X/c/cda9fdfccf9a86dc907b9930429599ec37cc6b20.png)

**Cursors:**

```plaintext
eyJiIjp7Ik9mZnNldCI6MjA0Mn0sImEiOnsiT2Zmc2V0IjoyMDU0fX0
eyJiIjp7Ik9mZnNldCI6MTk0Nn0sImEiOnsiT2Zmc2V0IjoyMDU0fX0
eyJiIjp7Ik9mZnNldCI6MTk0Nn0sImEiOnsiT2Zmc2V0IjoyMDU0fX0

```

---

<div class="post-metadata">

**Author:** ![Six](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/six/32/2334_2.png) [@Six](https://discuss.dev.twitch.com/u/Six)\
**Post date:** [February 18, 2018, 11:05pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/5 "2018-02-18T23:05:34Z")

</div>

I had a similar issue a while back that was never addressed:

> **[\[Helix API\] TopGames - 503 Service Unavailable](https://discuss.dev.twitch.com/t/helix-api-topgames-503-service-unavailable/13419?u=six)**
>
> Problem When making multi-paged requests to the new get-top-games endpoint, I get a 503 Service Unavailable after following the cursor. At first, each requests is executed and I get the expected 100 objects per response. Response However, when I...

---

<div class="post-metadata">

**Author:** ![geardrops](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/geardrops/32/3292_2.png) [@geardrops](https://discuss.dev.twitch.com/u/geardrops)\
**Post date:** [February 20, 2018, 6:40pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/6 "2018-02-20T18:40:08Z")

</div>

Thanks for bumping this back up, folks. I’m adding it to the list of things we need to investigate. We appreciate your patience!

---

<div class="post-metadata">

**Author:** ![Ague](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/ague/32/2428_2.png) [@Ague](https://discuss.dev.twitch.com/u/Ague)\
**Post date:** [February 20, 2018, 9:37pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/7 "2018-02-20T21:37:29Z")

</div>

If it makes you guys feel any better, I days worth of periodic 503 errors on different endpoints. So it’s not just you. I’ve talked with @geardrops about it, so hopefully things can get resolved quickly.

---

<div class="post-metadata">

**Author:** ![geardrops](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/geardrops/32/3292_2.png) [@geardrops](https://discuss.dev.twitch.com/u/geardrops)\
**Post date:** [March 9, 2018, 9:16pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/8 "2018-03-09T21:16:50Z")

</div>

We’ve investigated the issue and pushed a fix out, and now you should be getting 200 and empty data instead of 503s in this case!

Thanks, everyone!

---

<div class="post-metadata">

**Author:** ![Six](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/six/32/2334_2.png) [@Six](https://discuss.dev.twitch.com/u/Six)\
**Post date:** [March 10, 2018, 9:20am UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/9 "2018-03-10T09:20:16Z")

</div>

Just did a quick test and I’m no longer getting 503s.

---

<div class="post-metadata">

**Author:** ![Ague](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/ague/32/2428_2.png) [@Ague](https://discuss.dev.twitch.com/u/Ague)\
**Post date:** [March 15, 2018, 7:12pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/10 "2018-03-15T19:12:46Z")

</div>

Late to the party bc of irl stuff, but I haven’t seen any 503s in my logs for a while… thx @geardrops

---

<div class="post-metadata">

**Author:** ![geardrops](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/geardrops/32/3292_2.png) [@geardrops](https://discuss.dev.twitch.com/u/geardrops)\
**Post date:** [March 15, 2018, 8:39pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/11 "2018-03-15T20:39:11Z")

</div>

👍Glad to hear it!

---

<div class="post-metadata">

**Author:** ![HerrAusragend](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/herrausragend/32/4155_2.png) [@HerrAusragend](https://discuss.dev.twitch.com/u/HerrAusragend)\
**Post date:** [March 15, 2018, 9:07pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/12 "2018-03-15T21:07:11Z")

</div>

Can confirm! Awesome!

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [April 14, 2018, 9:07pm UTC](https://discuss.dev.twitch.com/t/helix-api-top-games-503-http/14283/13 "2018-04-14T21:07:22Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
