MASIGNASUKAv102
6510051498749449419

Programming API's In Python | PART-1

Programming API's In Python  |  PART-1
Add Comments
Thursday, February 14, 2019


Hello readers ..! In this post lets dive into  my personal favourite thing called API. API stands for Application Programming Interface , sounds great 😎 right ??.


There are variety of API's out there in the market. Some of them provide cool stuff like weather , Jokes , Movie details etc..

 API is provided by the developers to make secure access to its data. For example, you are building a project that deals with User location or some map services then to make it simpler we will use Maps API , so that it eliminates the infrastructure that contains geo codes etc.. Here the request is sent by the programme to match the set of rules provided by the API developer. When the query is matched, it results the response either in JSON or XML.The developer makes the API using REST( Representational state transfer) Rules.

  Here we are just confined for accessing data from an API. Now lets understand some of key terms.





Methods:

    These methods are useful for us in making CRUD operations.

  • GET
  • PATCH
  • PUT
  • DELETE
  • POST

  Headers:

      Headers alerts both the Requesting server and Response proving server to make  the process in insisted format (JSON / XML). It also checks the authentication details.

In the next post we will build python code that makes a request to an API to list the details of Agricultural markets like Location , min price , max price etc.. we will use Flask for this.

-----PART - 2

Adarshreddy Adelli

As an Engineering Lead with deep expertise in Artificial Intelligence, Cybersecurity, and Systems Architecture, I guide teams in building innovative, secure, and scalable solutions.I am passionate about tackling challenging technical problems, fostering engineering excellence, and delivering solutions that balance innovation, security, and performance. I actively share knowledge through blogging and community engagement, contributing to the advancement of AI and cybersecurity practices.