Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint for Team Members. #99

Open
tfevens opened this issue May 15, 2013 · 20 comments
Open

Endpoint for Team Members. #99

tfevens opened this issue May 15, 2013 · 20 comments

Comments

@tfevens
Copy link

tfevens commented May 15, 2013

RE: #24 - List of teams

You mention that you will be adding an endpoint for getting the members of a team. This would be a great addition to have, and something that shouldn't be hard to implement, as you're already using this on the twitch site itself.

Any updates on this?

Thanks!

@nTraum
Copy link

nTraum commented May 20, 2013

Yes please, that would be awesome and pretty useful! 👍

@mpoon
Copy link
Contributor

mpoon commented May 20, 2013

We're still planning on doing this, but we have no ETA yet because this feature is being blocked by some infrastructure changes we need to make.

@Fire-
Copy link
Contributor

Fire- commented Jul 3, 2013

Though hard to find, a team API does exist and does work for now.

@nTraum
Copy link

nTraum commented Jul 3, 2013

Thanks @Fire- !

@tfevens
Copy link
Author

tfevens commented Jul 5, 2013

@Fire- - That's awesome! Thanks for the info!

@tfevens tfevens closed this as completed Jul 5, 2013
@Fire-
Copy link
Contributor

Fire- commented Jul 5, 2013

@tfevens you shouldn't close the issue, this still needs to be added to Kraken

@tfevens tfevens reopened this Jul 10, 2013
@tfevens
Copy link
Author

tfevens commented Jul 10, 2013

As requested :-)

@ghost
Copy link

ghost commented Jun 17, 2015

This issue still exists: You can't get team members from the kraken api.

@iaidan
Copy link

iaidan commented Dec 14, 2015

Still cant get list of team members on kraken?

@Earnestly
Copy link

Earnestly commented Apr 16, 2016

Is there any sane way to get a list of channels which are part of a given team?

It seems the old API is returning 404's now meaning this issue has become more necessary to solve.

Earnestly added a commit to Earnestly/home that referenced this issue Apr 17, 2016
Unfortunately they have provided no alternative yet[0] which means
supporting teams directly is out of the question.

However in the mean time I've added a -u flag to ditch which will scrape
the team page for each team listed in XDG_DATA_HOME/ditch/teams, append
the results to your streamers file and sort it leaving only unique
entries.

As this doesn't deal with caching -u will need to manually be triggered
sporadically.  This isn't quite so bad as teams rarely change.

This is not certainly not ideal but the alternative is too prohibitive
(scanning the entire twitch userbase and checking if each user is part
of the desired team) or wasteful (scraping the team pages every
innovation, wasting data usage and time).

0. justintv/Twitch-API#99
@ghost
Copy link

ghost commented Apr 18, 2016

+1, being able to get team members is important. Can we bring back http://api.twitch.tv/api/team/{teamname}/all_channels.json until a kraken endpoint is established?

This was referenced Apr 25, 2016
@chhopsky
Copy link

I too need this. This issue still exists. I'm currently scraping the team page which is a disgusting hack that I'm so upset at myself for doing.

@ed-george
Copy link

This feature seems long overdue, especially given the removal of http://api.twitch.tv/api/team/{teamname}/all_channels.json

Is there any official update on the roadmap for this feature? It seems pretty fundamental for teams

@Cronikeys
Copy link

tfw no team endpoint

@chhopsky
Copy link

it's probably time to accept that the API has been abandoned.

tfw parsing raw HTML : ^)

@ed-george
Copy link

I am a little saddened to see no real explanation of why this hasn't been implemented as of yet as I believe there would be a lot of use cases for this specific endpoint and there is clearly a demand for it.

We're still planning on doing this, but we have no ETA yet because this feature is being blocked by some infrastructure changes we need to make.

Given the time since the above comment, can we get any more information in whether that blocker was removed?

@SirRippovMaple
Copy link

The real explanation is right there:

this feature is being blocked by some infrastructure changes we need to make.

My experience is that these sort of changes do take a long time (longer with companies who operate at the scale that Twitch operates). And the necessary changes can also be blocked by other work.

@zoton2
Copy link

zoton2 commented Nov 17, 2016

Looks like this has been added on version 5 of the API which was recently released but hasn't been documented yet. The teams API endpoint for a specified team will also now contain an array named "users" which has the data of all the channels on the team. I'm not sure if this is final yet though because it's not paginated at all, so for example if you try to lookup the team endpoint for SpeedRunsLive (which has 300+ channels) and it has not been cached, the request is quite large and takes a good 10-15 seconds to actually be returned.

I mean I do not think that the "this feature is being blocked by some infrastructure changes we need to make" thing is/was true anymore, I'd be a bit worried if it was after the 4 year wait we have had to get this into a supported, non-deprecated endpoint and how many changes Twitch has gone through in that time period.

@Stanzilla
Copy link

Stanzilla commented Dec 14, 2016

Looks like that is indeed in v5, example

https://api.twitch.tv/kraken/teams/sdp/?client_id=XXXXX&api_version=5

@Cronikeys
Copy link

Is there a way to get streams and not users with v5? The dream would be one call instead of two

Earnestly added a commit to Earnestly/home that referenced this issue Jun 21, 2024
Unfortunately they have provided no alternative yet[0] which means
supporting teams directly is out of the question.

However in the mean time I've added a -u flag to ditch which will scrape
the team page for each team listed in XDG_DATA_HOME/ditch/teams, append
the results to your streamers file and sort it leaving only unique
entries.

As this doesn't deal with caching -u will need to manually be triggered
sporadically.  This isn't quite so bad as teams rarely change.

This is not certainly not ideal but the alternative is too prohibitive
(scanning the entire twitch userbase and checking if each user is part
of the desired team) or wasteful (scraping the team pages every
innovation, wasting data usage and time).

0. justintv/Twitch-API#99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests