#properties of api and what it is

1 messages · Page 1 of 1 (latest)

balmy otter
#

berry informative

#

what exactly are you asking @wise solstice

wise solstice
#

Wait imnot done

elder plinth
#

Also, don't pick all the tag like that. Choose only the one that are linked to your issue

wise solstice
#

Ohkay my bad

elder plinth
#

And find a more descriptive title that "api". It doesn't mean much.

#

Take a minute to read the #📄・posting-guidelines please.

wise solstice
elder plinth
#

Same as inu just said, title, badly chosen tags, not much information about your goals and issues.

balmy otter
#

I think they said they weren't done to be fair

#

So probably they were about to elaborate

#

tags and title stay tho

elder plinth
#

True, but still, it's good to read them

wise solstice
#

I'm sorry bro I will comply lol let me.

elder plinth
#

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

wise solstice
#

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.

elder plinth
#

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.

wise solstice
elder plinth
#

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

#

You understand?

Btw, this is unrelated to C++.

wise solstice
elder plinth
# wise solstice 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.

wise solstice
elder plinth
#

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.

elder plinth
#

It's quite common to have such API

elder plinth
#

What about it?

wise solstice
elder plinth
#

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.

wise solstice
elder plinth
#

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.

wise solstice
elder plinth
#

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.

wise solstice
elder plinth
#

Well you'll ha a to learn web dev if you end goal is to make a web API

elder plinth
#

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

wise solstice
elder plinth
#

You should indeed be familiar with html

#

Web scrapping is mostly reading html

wise solstice
balmy otter
#

Berry humiliating

wise solstice
balmy otter
#

No use talking about it anymore. His life has already been ruined.

#

I'm kidding lol

wise solstice
#

What did I do wrong you making me feel bad

balmy otter
#

Nothing hahaha

wise solstice
wise solstice
balmy otter
#

Why do you ask?

#

It's pretty much downloading and parsing Html or other data so yes?

wise solstice
balmy otter
#

Web scraping isn't usually done in isolation, so I suppose you should learn the following topics:

  1. Programming (choose a language and learn the concepts)
  2. Web Development (how the web works at a minimum, HTML, CSS, JS)
  3. 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