How To Request Data From an Api GET

#1

Any example how to connect to an api sending GET vars and show the data on the UX?

The api (made with json) requests are formated like this “movie.apib/discover/movie?sort_by=popularity.desc” and it need an api key that you have to send using an http parameter like this “https://api.themoviedb.org/3/movie/550?api_key=##

that request will respond with a list of the movies sorted by popularity.

i need to get that response and list all the movies (or at least 20 of them).

Thanks

#2

Hi!

Here are some examples that uses fetch to GET data from a REST API:

#3

Hello to you people does someone has any idear how the registration code look like? i want to send a username and password to a xampp phpMyAdmin Mysql locale server but it’s not working. code1 functions_php_ index_php

#4

I think because you set your URL to localhost, you need to set the URL pointing to your computer with an IP address

#5

Hi @Ichan_mb i have tried but nothing is happening

#6

Test if the urls work via a browser or rest client, let us know the results.