API search not listing all videos?

Avatar image for numberthree
numberthree

23

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hey,

I'm using the following API query:

https://www.giantbomb.com/api/search?api_key=REDACTED&format=json&query=contradiction&resources=video

However I only get two videos as a result, when there should be more of them available - the Quick Look and its supplemental video are entirely missing. Similarly when searching with the term 'enforcer' there are no video results even though there's a Quick Look for the game "Enforcer: Police Crime Action" on the site.

Searching for game type resources returns both games (and others) as expected.

Avatar image for szlifier
szlifier

1518

Forum Posts

120

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

@numberthree: Search queries are unreliable for videos.

This one will do what you want:

http://www.giantbomb.com/api/videos/?api_key=...&filter=name:contradiction&sort=publish_date:desc

Avatar image for numberthree
numberthree

23

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@szlifier:

I was afraid that was going to be the case. I'm trying to figure out why an app (someone else's) is having problems finding videos and the reason seems to be that they're using the search to get both videos and games at the same time, resulting in missing videos.

Avatar image for szlifier
szlifier

1518

Forum Posts

120

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

@numberthree: I would try contacting the author, it shouldn't be hard to fix it.

If there's no support for the app it may become even more broken when the video API will be updated, which should've already happened, but there's a delay.