API returning no results

Post here any issues with the API or feature requests
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API returning no results

Post by Kode »

Not sure there is a problem? From the looks of it it's just not showing up yet, v3 requests without a personal api key only show images that were approved 7+days ago, with a personal api key that drops to around 48 hours, but whatever you are using has to support personal api keys. Additionally it doesn't look like the downloader is handling the error response correctly.

Hope that helps.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API returning no results

Post by Kode »

You an generate personal API keys at https://fanart.tv/get-an-api-key/
arjepsen
Posts: 6
Joined: Sun Jul 20, 2014 8:50 pm

Re: API returning no results

Post by arjepsen »

I'm trying to understand where things go wrong.
I'm using XBMC - I've ripped the cd's, and used musicbrainz picard to tag the files.
Looking at the logs, I can see that it finds the info from musicbrainz just fine.
However, it doesn't get the albumcovers from here.
Some cd's seem to get them fine, but some doesn't.
Another example is the same band "Solas" with their cd "The words that remain".
The albumcover does show up on the fanart website, and the info of the cd is in the musicbrainz database.
However, the url generated to fetch the cover doesn't seem to point to the right place:

16:25:53 T:2960 DEBUG: scraper: GetFanartTvAlbumThumbsByMBID returned <details><url function="ParseFanartTvAlbumThumbs" cache="fanarttv-albumimages-90bc79b1-c4c2-3034-992d-c5b705dc45d9.json">http://webservice.fanart.tv/v3/music/al ... ></details>
16:25:53 T:2960 DEBUG: CurlFile::Open(0A14FCA8) http://webservice.fanart.tv/v3/music/al ... d966a04f1/
16:25:53 T:2960 ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
16:25:53 T:2960 ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
16:25:53 T:2960 ERROR: ADDON::CScraper::Run: Unable to parse web site

As far as I can tell, the MBID is correct, so any idea what is wrong? What can I do?
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API returning no results

Post by Kode »

Nothing wrong at all, that image was only approved 4 days ago, therefore without a personal API key you will have to wait another 3 days before it shows up via the API.

If the program you are using supported personal API keys, and you had one set, that image would already show up as with a personal API key it's only around 48 hours.

So to reiterate, there is nothing wrong, if you want the image to show up sooner ask the developer of the app to support personal API keys.

Hope this helps.
arjepsen
Posts: 6
Joined: Sun Jul 20, 2014 8:50 pm

Re: API returning no results

Post by arjepsen »

ah ok.
I thought, that as soon as it was approved, and showed on the website, it would be available in XBMC.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API returning no results

Post by Kode »

arjepsen wrote:ah ok.
I thought, that as soon as it was approved, and showed on the website, it would be available in XBMC.
Nope, not unless a personal API key is used and the user is a VIP member.
prodigy4k-stp-01
Posts: 1
Joined: Tue Oct 20, 2015 7:33 pm

Re: API returning no results

Post by prodigy4k-stp-01 »

Hi,

All run good in the last weeks, now i have always the same message:

Code: Select all

{
    "status": "error",
    "error message": "Not found"
}

Code: Select all

19:38:46 T:6176   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/eb982cdb-787d-4452-be5c-f3a6fa8ee9be?api_key=***
19:38:53 T:6248   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/b11bc390-1938-4194-9b41-cac50c54fc43?api_key=***
19:38:59 T:7116   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/a97a9f93-09a3-3847-abbd-cca99444f2c4?api_key=***
19:39:05 T:9464   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/69d97d54-5b27-4602-ad1a-96a863869d8b?api_key=***
19:39:09 T:9464   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/69d97d54-5b27-4602-ad1a-96a863869d8b?api_key=***
19:39:16 T:7100   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/ab369af3-51f8-31b4-b18a-238e0379afd7?api_key=***
19:39:23 T:10696   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/b596362e-6f21-35ba-af96-fa7eacc15f37?api_key=***
19:39:31 T:2216   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/388962e0-ef25-3b37-90e2-79ccfc3017c7?api_key=***
19:39:37 T:9428   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/8eafb911-2771-4a99-8779-da61559c5300?api_key=***
19:39:38 T:9428   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/8eafb911-2771-4a99-8779-da61559c5300?api_key=***
19:39:46 T:5292   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/ab5480a9-0454-39cf-8dae-4a900fbc7b4b?api_key=***
19:39:52 T:7948   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/6f8531ca-1221-4065-adde-2799f218cb7f?api_key=***
19:40:00 T:1608   ERROR: CCurlFile::Open failed with code 404 for http://webservice.fanart.tv/v3/music/albums/1c8e3e5a-7d03-3b8a-9936-fed38190943e?api_key=***
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API returning no results

Post by Kode »

I wish someone had used the Chat with us function to mention this before today =/
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: API returning no results

Post by Kode »

should be fixed now
taxigps
Posts: 1
Joined: Sun Feb 28, 2016 3:06 am

Re: API returning no results

Post by taxigps »

have added fanart to movie ID: 18232, but returning no results when Kodi addon use API to get fanart by imdb ID:

http://webservice.fanart.tv/v3/movies/t ... 284d46bd8e
Post Reply