Forums / Developer Forum
Order: Newest / Oldest
API Errors
Globalfootball (Dynamos) 2 years ago
I tried your API and found a few issues....

1. Many of the methods return empty results, for ex: all the methods under league, team, community etc.
2. When we get the link for each match, that URL didn't work.
3. When we want to get channel based data, we need channel i'd.... How do we get the channel i'd?
Lee (Kidderminster Harriers) 2 years ago
You shouldn't be getting empty results anywhere, judging from your questions in (3.) it sounds more like you are missing required parameters. The error returned will usually tell you what parameters are missing, and the documentation explains which parameters for each method are required.

Don't forget you need to append your API key (?Api_key =your API KEY) to each request; the only possible reason you will be getting empty results set for say community.GetDFTable (which requires no extra parameters) will be if your API key is invalid.

To get channel ID's use Channel.GetIdents

Link: www.footytube.com/openfooty/service.php?package=Ch...

There are similar methods for getting league and team channel id's all of which are documented.

Not sure what you mean by match URL's not working, no other API users have reported any of these problems, so if the above doesn't solve your issues, please lodge a support request with us and we'll look into it.
Globalfootball (Dynamos) 2 years ago
Please check this url

[Removed]

Which has both the valid and required parameters given, yet it return empty?

Can you please explain this?

Thanks
Lee (Kidderminster Harriers) 2 years ago
Please don't post your API key in public, it is unique and private to you. We will need to disable this shortly and send you a new one.

With regard to your error, are you sure you have a valid league I. D? I enter 8 (prem I. D) and badges are returned using your API key. It could also be that we do not have a badge for this particular league, hence you are getting an empty resultset. What league are you trying to get badges for (is there a badge for it on the frontend of footytube)?

I'll get the tech team to chase up, incase there is another problem.
Cissou (Olympique Marseille) 2 years ago
Hi,
I am seeing the same issue with the World Cup Fixtures.
I use my API key, league_id 72.

Link: api.openfooty.org/1.0/league.getFixtures?api_key=M...

That returns an empty resultset. Note that my API KEY works just fine for the WorldCup Table and Teams.

Thanks for your help!
Matt (Southampton) 2 years ago
Fixtures on non commercial API keys only return fixtures 2 weeks in advance. I. E. 2 weeks from start of the World Cup you will receive the first fixtures
Cissou (Olympique Marseille) 2 years ago
Oh, yeah, I forgot about that. Thanks!



   
Kick4Life - changing lives through football