7 Replies - 858 Views - Last Post: 23 February 2009 - 06:04 PM Rate Topic: -----

#1 tbonetc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-February 09

API Nightmare

Post icon  Posted 23 February 2009 - 12:48 PM

hi guys,

i'm very new to all this and am totally stuck with API (i don't really understand anything about it!).

I've been trying to make a chart for the most listened to bands from Northern Ireland in Last.Fm. this means that i would have to search for a list of bands that include any of a collection of tags ie Northern Ireland, NI, Belfast, Northern Irish etc

I've found out this is possible by using the follow link but have no idea how to go about getting a list from this.
http://www.last.fm/a...how?service=273

I'm ot even sure what language it is or how to put it on a webpage.

any help would be greatly appreciated... but please keep it simple if you can!!

Thanks very much for your time
Tristan

Is This A Good Question/Topic? 0
  • +

Replies To: API Nightmare

#2 F!st!cuffs  Icon User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 153
  • Joined: 15-July 08

Re: API Nightmare

Posted 23 February 2009 - 01:38 PM

The response is in XML and there's a number of ways you can get it onto your own web page.

You might need to be a little less vague to get a more detailed response or just knowing it is XML might be enough.

Hope it helps though.
Was This Post Helpful? 0
  • +
  • -

#3 tbonetc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-February 09

Re: API Nightmare

Posted 23 February 2009 - 02:06 PM

View PostF!st!cuffs, on 23 Feb, 2009 - 12:38 PM, said:

The response is in XML and there's a number of ways you can get it onto your own web page.

You might need to be a little less vague to get a more detailed response or just knowing it is XML might be enough.

Hope it helps though.



Thanks for the reply. sorry if i was vague.

was just told that i'd be able to compile a chart of the most listened to NI bands on Last.fm using this link.
http://www.last.fm/a...how?service=273

No idea how!!

Seems i can search for tags but i want a list of bands that have any of a number of tags. Some bands only have Northern Ireland, or some have Northern Irish, NI etc, so i want to combine these searches to get a list of all NI bands.

Any ideas?
Was This Post Helpful? 0
  • +
  • -

#4 F!st!cuffs  Icon User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 153
  • Joined: 15-July 08

Re: API Nightmare

Posted 23 February 2009 - 02:33 PM

your request would look something like this then

http://ws.audioscrob...ac220b7b2e0a026

This will give you the XML which you can then use as data for you chart

If you want to apply more than one tag just separate tags with a comma
EX: tag=Northern Ireland, NI, Northern Irish

That link that you posted has a list of all the available methods on the left so if you want all bands in NI you might need to use another method.
Was This Post Helpful? 0
  • +
  • -

#5 tbonetc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-February 09

Re: API Nightmare

Posted 23 February 2009 - 03:04 PM

Yeah, this looks very close to what i'm after!!...
but i can't seem to add more than one tag - i'm just putting it in the URL, is that correct?
also they seem to be in order of 'tagcount'...not sure what that is...looking for the most listened to... or if possible, most listened to within the past week.

REALLY APPRECIATE YOUR HELP!!!
Was This Post Helpful? 0
  • +
  • -

#6 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6106
  • View blog
  • Posts: 23,653
  • Joined: 23-August 08

Re: API Nightmare

Posted 23 February 2009 - 03:36 PM

Looks like it only takes one tag (it uses the last one provided in the URL), and there seems to be no way to do sorting.

EDIT: Looks like this is what you want, but the best you can do for granularity is the UK; Northern Ireland does not appear to be available.
Was This Post Helpful? 0
  • +
  • -

#7 tbonetc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-February 09

Re: API Nightmare

Posted 23 February 2009 - 04:19 PM

yeah, if i had that, only with the option of Northern Ireland or else multiple tags...thanks for trying anyway!

actually, sorry. i'm looking for bands that are from Northern Ireland... don't want bands from England, America etc in the chart.

This post has been edited by tbonetc: 23 February 2009 - 04:17 PM

Was This Post Helpful? 0
  • +
  • -

#8 tbonetc  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-February 09

Re: API Nightmare

Posted 23 February 2009 - 06:04 PM

do you think this is impossible?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1