rezarahiminia / free-api-worldcup2022 Goto Github PK
View Code? Open in Web Editor NEWGrab your football API data for FIFA World Cup 2022 competition!
Grab your football API data for FIFA World Cup 2022 competition!
Hi, amazing job.
I wanted to know what's the rate limit?
Also, how do you keep it free? If that scales, would you be able to keep it free?
Regards
Do you already have a template for the home_scorers and away_scorers? How is the information going to be displayed? If you could provide a JSON example it would be great
Hello, in group D Mexico and Poland are repeated.
the end point is: http://api.cup2022.ir/api/v1/standings
I thank you very much in advance, very good job you did.
I look forward to your comments.
Hi, firstly I wanted to say great work, really appreciate everything that you've done here! I had a quick question, once all the teams have confirmed their squads, are you going to have individual player data? Thanks!
First at all, a big thaks for your work.
Some date and time seem to be wrong:
For example: Qatar VS Equator is on: 2022-11-21 19:00:00 instead of 2022-11-20 19:00:00
Cheers
Dim
hi!
great job! this is the only location I found such an API
My question:
Will it provide live scores? What is the expected delay?
Hey mate, thanks for the hard work and quick responses.
What are the expected values for time_elapsed on matches endpoints?
time_elapsed: "notstarted"
During the game I guess is going to be minutes:seconds? what about once the match ends?
time_elapsed: "finished"
perhaps?
Thanks again!
Will look for another service... Time constraint programmer... Good luck!
p.s. The service is returning the following:
{"error":"Not authorized to access this resource"}
Is this project still a WIP? Are you going to add player information? So which player played in which match who are the TOP scorers etc?
Are you also going to add team formations? so which player played at which location in the team?
just some questions/ideas ;)
Hey mate, great work with the API, is it possible to move it to a secure endpoint? (https) as this is causing issues when I try to access the endpoint from a https site.
The other one is that the Access-Control-Allow-Origin header seems is not enabled, so when I'm trying to access the endpoint from my dev machine I get a CORS error
Where i can found the docs for this api
Is this your limitation to requests per user or do you have to many total requests incoming?
Will you fix this?
Not a big issue but 'Nederland' is spelled 'Netherlands'
In the classification, in addition to the W and L, the D (Draw) is missing.
Thanks, nice work :)
Interested in knowing if those match feeds will be updated automatically and if so -- what to expect?
I want to use your API because of its nice structure for my own project and practice on the frontend. But I ran into a problem and it's cors, could you guide me with a little explanation of the method of use through the backend? Thanks for your help!
i have been trying to change the cURL request to JavaScript with a fetch method however, it is not working
sample
fetch('http://api.cup2022.ir/api/v1/user/login', {method: 'POST',
headers: {
'Content-Type': 'application/json'
},body: JSON.stringify({
'email': 'XXXXXXXX.com',
'password': 'XXXXXXXXXX'
})})
Hi, thanks for this API.
I would like to display a calendar, day by day of all the fixtures of the day.
Can we get a general schedule endpoint (chronological sorted?)
thanks!
There is a typo in the teams URL. There are two http://
https://github.com/raminmr/free-api-worldcup2022#request-2
Hey, I'm trying to make an android app with your API. Can you please explain the full forms of
"mp": "0", "w": "0", "l": "0", "pts": "0", "gf": "0", "ga": "0", "gd": "0",
It is in the Standings endpoint.
Please fix the broken link of the Iran flag URL. Thank you. I love your work by the way.
Currently, the match endpoint provides invalid dates of some provided matches. E. g. the match switzerland vs cameroon starts at "2022.11.24 10:00" according to the endpoint. And this isn't the only date which is incorrect. Can you please check your code and update it. Thank you. Besides this issue very good job so far!
it would be interesting to be able to pass url params to list by date
or change /match endpoint and make it list by date
Good evening, I try to consume any end point and it shows me Error: Request timed out, do you know if the service is down?
Cheers
Hello, like the title says, when I try to make a request to the match by ID endpoint, the error "Cannot read property 'home_team_id' of undefined" appears.
This is the request I'm making:
curl --location --request GET 'http://api.cup2022.ir/api/v1/match/1'
--header 'Authorization: Bearer ******'
Thank you for this great API!
The response returned by http://api.cup2022.ir/api/v1/standings is false
For example Switzerland is in H group instead of G group
I try to develop an app by using http://api.cup2022.ir/api/v1/match
but often receive Too many requests, please try again later.
error
Hi @Raminmr
If you will can you publish the project and as the developer community we can help make contributions to this wonderful work you have started?
Hi! We are trying to use the API but after a couple of days we are getting this error "Not authorized to access this resource". We registered and logged in, and the API was working just fine. After a couple of days, we tried to use it again but we keep getting that message. We tried logging in again and we are still getting the same message.
APi webserver is actually unreacheable http://api.cup2022.ir
In the teams
endpoint response, the USA team name is "America" while it should be "United States".
{
"_id": "629c9c6b5749c4077500eaaa",
"name_en": "America",
"name_fa": "آمریکا",
"flag": "https://upload.wikimedia.org/wikipedia/en/thumb/a/a4/Flag_of_the_United_States.svg/125px-Flag_of_the_United_States.svg.png",
"fifa_code": "USA",
"iso2": "US",
"groups": "B",
"id": "7"
}
i would like to use your api but your server has a big down time .. so can you help us by providing your data source ? thank you
Hi, nice work on your api. How many requests do i can? 😁
Hi, how do I know the timing is for which time zone and can we get the stadium, and city info? How about the live score of the matches? Thank you!
Access to fetch at 'http://api.cup2022.ir/api/v1/bydate' from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hi @Raminmr !
Just to be sure, will the API provide data for matches after the group stage?
As the title says, the matches by match day endpoint returns and empty array:
GET http://api.cup2022.ir/api/v1/bymatch/{id}
The single match endpoint throws an error (Bad Request)
GET http://api.cup2022.ir/api/v1/match/{id}
{"status":"error","message":"Cannot read property 'home_team_id' of undefined"}
Thanks for your hard work mate
At the example for request the teams the protocol is duplicated.
- curl --location --request GET 'http://http://api.cup2022.ir/api/v1/team' \
+ curl --location --request GET 'http://api.cup2022.ir/api/v1/team' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
Hey mate, once again thanks for your hard work, wondering what the options are for match type:
We get for group stage:
"type": "group",
any idea about next stages values yet?
Hello,
i'm using your API to study Power BI and in this morning when I refresh my datasets doent work. I check postman requests and a understand whats happening, my requests are not sending.
Is it my error or a problem in your API?
Sorry, i'm new in developer's world, so I don't understand much. And i'm brazilian and my english is terrible!
First congratulations for the work!
I'm consulting the API but it's only listing the ID = 1 in the stadiums, will this functionality be developed?
const registerUser = async () => {
let headersList = {
Accept: "*/*",
"User-Agent": "Thunder Client (https://www.thunderclient.com)",
"Content-Type": "application/json",
};
let bodyContent = JSON.stringify({
name: "Username",
email: "[email protected]",
password: "0123456789",
passwordConfirm: "0123456789",
});
let response = await fetch("http://api.cup2022.ir/api/v1/user", {
method: "POST",
body: bodyContent,
headers: headersList,
});
let data = await response.text();
console.log(data);
};
Please help me out...
Do I need to have a login flow?
Because I'm developing an Android App and it doesn't create the best user experience.
Hey @Raminmr thank you for this awesome project!
Are there any plans to track yello/red cards and assists during the matches?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.