Web JSON APIs using JSON

Web JSON APIs using JSON

Lesson Details:
November 30, 2020


I: Introduction

Web development is a set of computer programming techniques used to create software applications and websites. The most common process used in web development is the client-server model, where a web server serves content for end-users. For example, if you happen to be a developer and need to build an application for a client, the client might be the one providing the information about the idea for the website and its structure, while you can be in charge of developing and maintaining it.

II: Body

A: Web json apis using json

Web json apis are simply APIs that use json data to exchange information between client and server. A good example of such an API is the Instagram API which allows you to access data from their database through simple HTTP requests.

Json is a lightweight format for structuring data that is frequently used with web services. It is usually sent as an encoded string using application/json as its media type. Json is also very easy to parse. All major programming languages have built-in support for it or can easily be extended to support it.

One of the most popular web development languages is PHP. It has native support for json data and can easily be used with cURL to download data from web json APIs.

Now let's assume that we want to receive some information about a specific user on Instagram. We can use this url to do so: https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS_TOKEN (replace ACCESS_TOKEN with your access token).

III: Conclusion

That's it! You've now learned how to use json data with some basic examples! Json really simplifies passing data around!

loader
Course content