# (Helix API) Videos Endpoint - "Upload" Query Parameter Issues

**URL:** <https://staging-discuss.dev.twitch.com/t/helix-api-videos-endpoint-upload-query-parameter-issues/12685>\
**Category:** API\
**Created:** [November 1, 2017, 9:31pm UTC](https://staging-discuss.dev.twitch.com/t/helix-api-videos-endpoint-upload-query-parameter-issues/12685 "2017-11-01T21:31:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Six](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/six/32/2334_2.png) [@Six](https://staging-discuss.dev.twitch.com/u/Six)\
**Post date:** [November 1, 2017, 9:31pm UTC](https://staging-discuss.dev.twitch.com/t/helix-api-videos-endpoint-upload-query-parameter-issues/12685/1 "2017-11-01T21:31:50Z")

</div>

While testing the [videos](https://dev.twitch.tv/docs/api/reference#get-videos) endpoint to make sure everything was working properly, I ran into a couple issues with the endpoint when trying to use the `type=upload` query parameter, and also the uploads in general.

## Requesting All Videos Omits Uploads

At the time of this post, when I request all videos from my channel I should be getting 122 videos back, two of those being uploaded videos. However, I only get 120 videos back.

> **Request**
>
> ![Videos All Request](https://d1d6mrmdu7ztse.cloudfront.net/uploads/default/original/2X/a/a752a31d74e6bb3e68c8bf66bfbc30ec92cdc4b2.png)

> **Response**
>
> ![image](https://d1d6mrmdu7ztse.cloudfront.net/uploads/default/original/2X/5/5da23bc0d30a0ee190ca16ed4fae21fb16d99d30.png)

Between the two expanded videos in the response, there should be a video from August 13, 2017 which is one of the two uploaded videos. However, it is missing. The same thing happened with the other upload. Both missing videos can be found on my [channel page](https://www.twitch.tv/rokuhodo_/videos/uploads), so I know they are actually there.

## Requesting Uploads Returns Cancelled/Deleted Uploaded Videos

When I specify `type=upload` to only get uploaded videos, the two missing videos are included in the response. However, _ **every** _ video that I have ever uploaded is returned in the response as well. Instead of getting only two videos in the response, I actually get 124 videos. I have either cancelled all 122 videos mid-way through the upload process and/or have been outright deleted by myself after the fact.

> **Request**
>
> ![Videos Upload Request](https://d1d6mrmdu7ztse.cloudfront.net/uploads/default/original/2X/7/71325c8176dd37016d9d5bd2593bd40078a4154e.png)

> **Response**
>
> ![image](https://d1d6mrmdu7ztse.cloudfront.net/uploads/default/original/2X/b/ba32519f162b74a0f11eae41006e61f63854d4a1.png)

Filtering by `archive` and `highlight` works as intended. This is all that I have noticed so far, but I will update this in the future if more issues are found.

---

<div class="post-metadata">

**Author:** ![geardrops](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/geardrops/32/3292_2.png) [@geardrops](https://staging-discuss.dev.twitch.com/u/geardrops)\
**Post date:** [November 7, 2017, 10:48pm UTC](https://staging-discuss.dev.twitch.com/t/helix-api-videos-endpoint-upload-query-parameter-issues/12685/2 "2017-11-07T22:48:35Z")

</div>

Hey there! Thanks for such a detailed writeup! I’ll be looking into this. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [December 7, 2017, 10:48pm UTC](https://staging-discuss.dev.twitch.com/t/helix-api-videos-endpoint-upload-query-parameter-issues/12685/3 "2017-12-07T22:48:37Z")

</div>

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