#properties of api and what it is
1 messages · Page 1 of 1 (latest)
Wait imnot done
Also, don't pick all the tag like that. Choose only the one that are linked to your issue
Ohkay my bad
And find a more descriptive title that "api". It doesn't mean much.
Take a minute to read the #📄・posting-guidelines please.
What did I do wrong this time?
Same as inu just said, title, badly chosen tags, not much information about your goals and issues.
I think they said they weren't done to be fair
So probably they were about to elaborate
tags and title stay tho
True, but still, it's good to read them
I'm sorry bro I will comply lol let me.
Don't worry take your time, I just wanted you to know that this channel existed and had steps and tips to write good help queries so that we can properly help you
properties of api and what it is
I want to program something similar to this that collects stats for a particular player notice how stats is collected in fortnite for a players kills wins and assists
So they said I should look into api's( some random i forgot) and that the api tracks every piece of to data
What I dont understand is that what if fortnite didn't have an api then would I have to create it myself??
Coz in api's you send request and it sends info back.
Not really. If they didn't have an API you would not have been able to do it.
There is possible way of scrapping data in some cases but in the case of a video game like that, it would have not been possible.
So in short, no you would not have the possibility to build an API for fortnite if they didn't had one.
Ohkay what about real life sports??
I mean, technically you can build an API for anything, the issue is that would would have to manually update the data and it kinda loose the point.
As for real sport, it's usually someone who updates the scores and statistics manually in a system. If this system doesn't have a public API you can't do much except, again, enter the data manually
An API isn't magic, it's just a way for other system to connect to your system. The way you get the data is not realted to the API directly
https://en.m.wikipedia.org/wiki/API
https://en.m.wikipedia.org/wiki/Web_API
You understand?
Btw, this is unrelated to C++.
So what are you trying to say??
I'm saying that the data has to come from somewhere. It doesn't appear magically. In the case of fortnite, it comes from the game. The public API is simply a convenient way to allow other system to fetch those data.
So if I make an api given the assumption fortnite doesn't have one
That would be illegal or impossible or both??
Yea it would most likely be impossible and if you find a way to somehow get the data it would mostly likely be illegal (unless you have the consent of fortnite to use their data in that hypothetical way)
But, if they have a public API you don't have to worry about that. It means they open their data for you so you can get them and use them as you like.
But there's also sometime legal and ethical way to get data in other ways. It doesn't necessarily means that it's illegal. Best thing to do if you are worried about the legality of what you are doing, is to contact them directly and ask them.
For example, if someone simply updates manually (or semi manually) the system with the information they want and share it, it might not be a problem (depending on a lot of stuff)
It's quite common to have such API
Whats this about sports?
What about it?
I dont understand what you wre saying
You asked me how it work for real sport right? I said that it's most likely someone or some entity (like a company) that updates the score and stats in their system. Then, they have a public API that people can consume to get the score and stats.
Basically, what I understand from all that is that you are worried about the legality of doing something like that? My poing is that you can't access their data directly if they don't have their own public API and if you want to do something like the thing you send, you need to either manually update the data or find a way to get it from somewhere and depending on the method you use it can be allowed or not.
I googled there is a way to access info without spi its called web scraping
Please don't feel insulted.
Why would I feel insulted?
I have mentioned it at the beginning
Web scrapping is legal but sometime seen an unethical but it's, afik, legal.
Yeah that how do I learn that??
It's really popular so just google web scrapping and you should fine tutorials about it.
Of course it helps to have a background in web development or at least understand it well.
I just learnt c++ lol web development sounds super long with big words like proxy html and http
Well you'll ha a to learn web dev if you end goal is to make a web API
How much of it?
At least a bit more than the basic
Although, it's hard to quantify to be honest
But you know, don't stress to much about that. Go little by little and it should be alright
I googled they said I should master html??
I hve to balance my time sometimes I hve a goal in mind but I dont know dhat to learn to get that goal and simply slips through my fingers and I start crying
Berry humiliating
Whats humiliating??@balmy otter
What did I do wrong you making me feel bad
Nothing hahaha
Ohh
You understand web scraping?
How do I learn it?
Web scraping isn't usually done in isolation, so I suppose you should learn the following topics:
- Programming (choose a language and learn the concepts)
- Web Development (how the web works at a minimum, HTML, CSS, JS)
- Software development, such as basic data structures and parsing
You can find many courses for these topics online. I recommend Harvard Open Courses CS50 Intro to Computer Science