Track count per mix

123 views
Skip to first unread message

Francois Cartegnie

unread,
Jun 19, 2012, 9:28:24 AM6/19/12
to 8tracks public API
I'll just need the track count per mix. Can It be added ?

(I've seen the thread about tracks listing/stats per mix and licence
incompatibility, but I don't need those details)

Remi - 8tracks

unread,
Jun 20, 2012, 12:32:42 PM6/20/12
to 8tracks-p...@googlegroups.com
It could be useful yes. Let me add to my list...
--
Rémi Gabillet
8tracks CTO & co-founder

Francois Cartegnie

unread,
Jun 20, 2012, 2:38:56 PM6/20/12
to 8tracks public API
On 20 juin, 18:32, Remi - 8tracks <r...@8tracks.com> wrote:
> It could be useful yes. Let me add to my list...

My playlist is set once for all before playback, so I'll need to
schedule N "next" requests.
Without this, I'll have to add an arbitrary number of "next" tracks.

More globally, the major problem with the api is that it is requires
the client to be stateful.
One example: you have to keep track of the mix_id to be able to report
playback. (Not provided in play request).

Remi - 8tracks

unread,
Sep 17, 2012, 9:53:41 PM9/17/12
to 8tracks-p...@googlegroups.com
Hey Francois, it took a long time but we did add tracks_count &
duration to the API.

You can get them by including "length" in your requests, for instance:

http://8tracks.com/mixes/14.json?api_version=2.1&include=length

I hope this helps,

Remi

Matija Lukic

unread,
Sep 18, 2012, 7:56:53 PM9/18/12
to 8tracks-p...@googlegroups.com
Cool, a very nice new feature!

Does the same parameter apply when mixes.json is called? If not, could you please add it? It would be useful for the users to know how big are the mixes when choosing which one to play.

cheers,
Matija

Remi - 8tracks

unread,
Sep 18, 2012, 10:54:33 PM9/18/12
to 8tracks-p...@googlegroups.com
Thanks Matija, which call are you thinking about exactly?

Matija Lukic

unread,
Sep 19, 2012, 3:31:06 AM9/19/12
to 8tracks-p...@googlegroups.com
Hi,

something like this:  
--
Matija Lukić

+31 (0)6 8 444 95 84 (Netherlands)

Remi - 8tracks

unread,
Sep 21, 2012, 7:53:23 PM9/21/12
to 8tracks-p...@googlegroups.com
Unfortunately that's not possible yet but I'm hoping to improve our
API backend to allow this kind of query easily.

Mika

unread,
Jan 31, 2013, 9:56:30 AM1/31/13
to 8tracks-p...@googlegroups.com
Hey Remi.

I didn't find an answer in the API documentation, so I ask in this thread:
Is there yet a possible way to fetch the length of a mix when using the mixes.xml? Or do I have to query every mix on his own (/mixes/[id].xml)?

I would like to include the playing duration to my mix overview as easy as possible, so it would be great if tracks_count & duration would be part of the mixes.xml response too :)

Greets, Markus

Remi - 8tracks

unread,
Jan 31, 2013, 10:56:08 AM1/31/13
to 8tracks-p...@googlegroups.com
Hi Markus,

We have a newer API that lets you adjust which fields you want to be
returned but it's not fully baked yet.
For now, I just added these 2 fields (tracks_count and duration) to
all version 2 requests (to be deployed later today).

Happy to help!

Remi
> --
> You received this message because you are subscribed to the Google Groups
> "8tracks public API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 8tracks-public-...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Mika

unread,
Jan 31, 2013, 11:04:16 AM1/31/13
to 8tracks-p...@googlegroups.com
That's great, looking forward to it.
Thanks!

So i should be able to do a call like "http://8tracks.com/mixes.xml?api_version=2&tag=jazz&sort=recent&api_key=XXX" and fetch the duration property of the mixes.
Great :)

Greets, Markus
> email to 8tracks-public-api+unsub...@googlegroups.com.

Remi - 8tracks

unread,
Jan 31, 2013, 1:49:09 PM1/31/13
to 8tracks-p...@googlegroups.com
Yes Markus, that's right. Let me know if it's not working by tomorrow.
>> > email to 8tracks-public-...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>>
>>
>> --
>> Rémi Gabillet
>> 8tracks CTO & co-founder
>
> --
> You received this message because you are subscribed to the Google Groups
> "8tracks public API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 8tracks-public-...@googlegroups.com.

Mika

unread,
Feb 2, 2013, 1:18:05 PM2/2/13
to 8tracks-p...@googlegroups.com
Hey Remi, just wanted to tell you that it's working fine.
Just did the test and... voila :)

Thanks again for adding it.

Greets, Markus
>> > email to 8tracks-public-api+unsub...@googlegroups.com.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>>
>>
>> --
>> Rémi Gabillet
>> 8tracks CTO & co-founder
>
> --
> You received this message because you are subscribed to the Google Groups
> "8tracks public API" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 8tracks-public-api+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages