Site
Home / Forum / Developers / AwayTeam_Id problem in latestsoccer.php

AwayTeam_Id problem in latestsoccer.php


Posted: 24 Aug 2019 16:59

hi6
Posts: 9
Joined: Aug 2019

Hi All,

I've just been trying to parse the results of the latestsoccer.php, and I'm seeing a problem with the formatting of the JSON for the away team id.

When calling https://www.thesportsdb.com/api/v1/json/...../latestsoccer.php

As you can see, the AwayTeam_Id is a structure rather than a string. This is causinig a problem for my JSON parser.

Is this a known issue, and is there a fix for it?

Thanks in advance

Posted: 25 Aug 2019 13:43

ovokx
Posts: 830
Joined: Jan 2017

Zag will confirm, but it looks like that the issue that you have on the way team on your example is because the away team is missing on our database

Posted: 25 Aug 2019 17:22

hi6
Posts: 9
Joined: Aug 2019

OK, great, that makes sense.

Is there a possible fix for this? Or a way that I could exclude these from the results (since I have no interest in these fixtures?

Thanks

Posted: 26 Aug 2019 08:09

zag
Posts: 1,558
Joined: Oct 2016

The fix would be to add the missing teams, If anyone can identify them I will try to add them.

Posted: 26 Aug 2019 09:11

hi6
Posts: 9
Joined: Aug 2019

OK, well after VPS (in the example above), I can try to send your through the various teams as I envounter them.

In the mean time, is it possible to do one of the following

a. supply an argument requesting that results with missing teams be omitted? or
b. supply an angument only requesting results from a particular league?

Thanks

PS I think TheSportsDB is really great, and I think you are offering a great service.


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 5 (Total: 5)