Setting API limit/sorting doesn't work

Post here any issues with the API or feature requests
Post Reply
kassan
Posts: 2
Joined: Wed Jul 16, 2014 11:28 am

Setting API limit/sorting doesn't work

Post by kassan »

Hi,

I want to get a one, most popular art for a series:

http://fanart.tv/webservice/series/API_ ... N/all/1/1/
http://fanart.tv/webservice/series/API_ ... thumb/1/1/

but it's returning all images without sorting and limits. Is there something wrong with my API call format?
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Setting API limit/sorting doesn't work

Post by Kode »

where did you even get that url from?

The new API doesn't support sorting or limits, that should be done by the calling app, you can currently target a section using a queryvar of imagetype, for example http://webservice.fanart.tv/v3/tv/75682 ... e=tvbanner but I don't know wether that will stay.
User avatar
zorensen
Admin
Admin
Posts: 116
Joined: Wed May 07, 2014 9:02 pm
Location: Norway
Contact:

Re: Setting API limit/sorting doesn't work

Post by zorensen »

Well, the API will always return the image with the most votes at top - in other words; the most popular image. However, you need to define what kind of image you want to pull from the API. So it's actually gives you the most popular images. If the images doesn't have any votes, then it will display them in the order they were uploaded ;)

As Kode says, you need to define what kind of image you're looking for and you can't get all types of images from one artist/tv show/movie ;)

I've never seen the URL your giving us here though...
"If you can't explain it simply, you don't understand it well enough." Albert Einstein

- Getting started
- Navigating Fanart.tv
- Why Your Image May be Denied
- Moderation Time
- Music Fanart Rules
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Setting API limit/sorting doesn't work

Post by Kode »

zorensen wrote:As Kode says, you need to define what kind of image you're looking for and you can't get all types of images from one artist/tv show/movie ;)
Theres no real reason to define the image type though as it will still be accessed in the exact same way
kassan
Posts: 2
Joined: Wed Jul 16, 2014 11:28 am

Re: Setting API limit/sorting doesn't work

Post by kassan »

On fanart.tv site [bottom] there is a link to "TV API", that's where I found this URL. I just overlooked this reddish hint about a new API :)

Thanks for your answers, it's all clear now.
Post Reply