LiveScore

フリーミアム
Verified
よって Api Dojo | 更新済み 24 days ago | Sports
人気

9.9 / 10

レイテンシー

2,183ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

Football: Query for today data but api give me yesterday data

Rapid account: All About Sport
AllAboutSport
2 years ago

my time zone is : kenya time zone

I have query for today data but api give me yesterday data for football. how can i solve this issue.

end point is
https://livescore6.p.rapidapi.com/matches/v2/list-by-date?Category=soccer&Date=20220902

Rapid account: Apidojo
apidojo Commented 2 years ago

Hello,

The following endpoints now support “Timezone” parameter which helps to load matches correctly in different countries and timezones.
…/matches/v2/list-by-date
…/matches/v2/list-by-league
…/matches/v2/list-live

In addition, we have released lots of new endpoints which are :

…/leagues/v2/get-table

…/matches/v2/get-info
…/matches/v2/get-commentary
…/matches/v2/get-lineups
…/matches/v2/get-incidents
…/matches/v2/get-statistics
…/matches/v2/get-h2h
…/matches/v2/get-pregame-form
…/matches/v2/get-table

…/competitions/detail
…/competitions/get-table
…/competitions/get-player-stats
…/competitions/get-team-stats

…/teams/detail
…/teams/get-table
…/teams/get-player-stats
…/teams/get-team-stats

You may have a look at https://rapidapi.com/apidojo/api/livescore6 for more detail.

Regards.

Rapid account: Apidojo
apidojo Commented 2 years ago

Hello,

You did NOT check the official LiveScore app correctly as the app automatically detect your timezone and save the information at first. If you want to compare the response data from our endpoint, you need to follow as :
_ Open the Livescore app and change the timezone to UTC+7
_ Call the endpoint, then compare the result https://prnt.sc/2UIV6KuvUEt1

Regards.

Rapid account: All About Sport
AllAboutSport Commented 2 years ago

@apidojo can you help me plz, i am stuck for this issue?

Rapid account: All About Sport
AllAboutSport Commented 2 years ago

screen shot ![https://ibb.co/mF7w4hL]
this is https://www.livescore.com/en/ for today

screen shot ![https://ibb.co/J5vZ6yD]
this is result when i call your api

for **kenya time zone **

please help me how can i resolve this issue?

Rapid account: All About Sport
AllAboutSport Commented 2 years ago

You have to parse the datetime string and format it to your local timezone.

Date=20220902 in date parm i will send utc+7 time or else

i am not clear, can you explain more please

Rapid account: Apidojo
apidojo Commented 2 years ago

Hello,

It is because of different timezones. LiveScore uses UTC+7 as default timezone, and this API is as so. You have to parse the datetime string and format it to your local timezone.

Regards.

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿