{"id":1108,"date":"2021-07-19T04:58:16","date_gmt":"2021-07-19T04:58:16","guid":{"rendered":"https:\/\/www.sagaratechnology.com\/blog\/?p=1108"},"modified":"2021-10-19T06:31:56","modified_gmt":"2021-10-19T06:31:56","slug":"api-what-it-is-and-how-it-works","status":"publish","type":"post","link":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/","title":{"rendered":"API: What It is and How Does It Works"},"content":{"rendered":"\n<p><meta charset=\"utf-8\">API role in facilitating application development is this. Creating an application is a difficult and time-consuming task. But what if developers had access to those fundamental parts and didn&#8217;t have to start from the beginning? <\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fcb0a4aab0b\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fcb0a4aab0b\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/#APIs_are_acronyms_for_application_programming_interfaces\" >APIs are acronyms for application programming interfaces<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/#Types_of_APIs\" >Types of APIs<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/#What_is_API_Functions\" >What is API Functions<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"APIs_are_acronyms_for_application_programming_interfaces\"><\/span>APIs are acronyms for application programming interfaces<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>API stands for Application Programming Interface, and it is an interface that connects one application to another, either on the same platform or across platforms.<\/p>\n\n\n\n<p>This innovation enables developers to create applications that are based on current ones. APIs, in other words, assist developers in developing apps faster and more efficiently.<\/p>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"Types_of_APIs\"><\/span>Types of APIs<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>APIs are classified into four categories based on their access rights:<\/p>\n\n\n\n<ol><li>Access to a private API<br>The term &#8220;private API&#8221; refers to a programming interface that is not available to the general public. This kind was designed to fulfill the needs of internal application development in general. This type serves as a front-end interface for accessing data and application functions on the back end.<\/li><li>API that is open to the public<br>A public API, often known as an open API, is a programming interface that is available to the whole public. To construct their own apps more quickly, developers can use public APIs to gain access to the programming system behind an application or web service.<\/li><li>API collaborators<br>It is a form of interface that can be used by select parties that have been designated as business partners by the application or web service&#8217;s owner. This kind is not open to the public and requires specific credentials to view.<\/li><\/ol>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"What_is_API_Functions\"><\/span>What is API Functions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The fundamental purpose of the Application Programming Interface is to act as a link between client-side (client-side) and server-side (server-side) programs (server-side).<\/p>\n\n\n\n<ol><li>API for Application Access<br>When you use an application to obtain information, the program will use relevant service data. When you order a movie ticket through an app like Tiket or Traveloka, for example, the app will obtain data from the associated theater server.<\/li><li>Make a request to the server using the API<br>The request will be forwarded to the server after the program successfully reaches the API. As a result, booking apps like Tiket and Traveloka get data from the cinema servers rather than their own.<\/li><li>The Server Handles Requests<br>The server will look for the desired data after receiving and translating the request. Once the data is located, the server will return information, such as showtimes, seat availability, ticket prices, and so on, for the application to use.<\/li><li>Forwarding API Responses to Applications<br>After it has received the data, the information must be passed on to the user application. Well, ticketing apps like Traveloka and Tiket have partnered with a variety of theatres, so you can access information from multiple venues in one app.<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>API role in facilitating application development is this. Creating an application is a difficult and time-consuming task. But what if developers had access to those fundamental parts and didn&#8217;t have to start from the beginning? APIs are acronyms for application programming interfaces API stands for Application Programming Interface, and it is an interface that connects&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1109,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[123,124],"tags":[26,21,33],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>API: What It is and How Does It Works - Sagara Asia Blog<\/title>\n<meta name=\"description\" content=\"API enables developers to create applications that are based on current ones and assists them in developing apps faster and more efficiently.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"API: What It is and How Does It Works - Sagara Asia Blog\" \/>\n<meta name=\"twitter:description\" content=\"API enables developers to create applications that are based on current ones and assists them in developing apps faster and more efficiently.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/sagaratechnology.com\/blog\/wp-content\/uploads\/2021\/07\/APIs-What-It-Is-and-How-It-Works.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mutiara Aulia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"API: What It is and How Does It Works - Sagara Asia Blog","description":"API enables developers to create applications that are based on current ones and assists them in developing apps faster and more efficiently.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/","twitter_card":"summary_large_image","twitter_title":"API: What It is and How Does It Works - Sagara Asia Blog","twitter_description":"API enables developers to create applications that are based on current ones and assists them in developing apps faster and more efficiently.","twitter_image":"https:\/\/sagaratechnology.com\/blog\/wp-content\/uploads\/2021\/07\/APIs-What-It-Is-and-How-It-Works.png","twitter_misc":{"Written by":"Mutiara Aulia","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/#article","isPartOf":{"@id":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/"},"author":{"name":"Mutiara Aulia","@id":"https:\/\/sagaratechnology.com\/blog\/#\/schema\/person\/a0671a81af62b975af27b256fb0f6727"},"headline":"API: What It is and How Does It Works","datePublished":"2021-07-19T04:58:16+00:00","dateModified":"2021-10-19T06:31:56+00:00","mainEntityOfPage":{"@id":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/"},"wordCount":459,"commentCount":0,"publisher":{"@id":"https:\/\/sagaratechnology.com\/blog\/#organization"},"keywords":["application","programming","Technology"],"articleSection":["Bisnis Online","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/","url":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/","name":"API: What It is and How Does It Works - Sagara Asia Blog","isPartOf":{"@id":"https:\/\/sagaratechnology.com\/blog\/#website"},"datePublished":"2021-07-19T04:58:16+00:00","dateModified":"2021-10-19T06:31:56+00:00","description":"API enables developers to create applications that are based on current ones and assists them in developing apps faster and more efficiently.","breadcrumb":{"@id":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sagaratechnology.com\/blog\/api-what-it-is-and-how-it-works\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sagaratechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bisnis Online","item":"https:\/\/sagaratechnology.com\/blog\/category\/bisnis-online\/"},{"@type":"ListItem","position":3,"name":"API: What It is and How Does It Works"}]},{"@type":"WebSite","@id":"https:\/\/sagaratechnology.com\/blog\/#website","url":"https:\/\/sagaratechnology.com\/blog\/","name":"Sagara Asia Blog","description":"Dapatkan Informasi Seputar Teknologi dan Bisnis","publisher":{"@id":"https:\/\/sagaratechnology.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sagaratechnology.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sagaratechnology.com\/blog\/#organization","name":"Sagara Technology","url":"https:\/\/sagaratechnology.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sagaratechnology.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/sagaratechnology.com\/blog\/wp-content\/uploads\/2021\/10\/sagara-logo.jpeg","contentUrl":"https:\/\/sagaratechnology.com\/blog\/wp-content\/uploads\/2021\/10\/sagara-logo.jpeg","width":200,"height":200,"caption":"Sagara Technology"},"image":{"@id":"https:\/\/sagaratechnology.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/sagara-asia\/"]},{"@type":"Person","@id":"https:\/\/sagaratechnology.com\/blog\/#\/schema\/person\/a0671a81af62b975af27b256fb0f6727","name":"Mutiara Aulia","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sagaratechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ac7bf9ac39fd2b09d6921192612acd6c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ac7bf9ac39fd2b09d6921192612acd6c?s=96&d=mm&r=g","caption":"Mutiara Aulia"}}]}},"_links":{"self":[{"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/posts\/1108"}],"collection":[{"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=1108"}],"version-history":[{"count":3,"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/posts\/1108\/revisions"}],"predecessor-version":[{"id":1872,"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/posts\/1108\/revisions\/1872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/media\/1109"}],"wp:attachment":[{"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=1108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=1108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sagaratechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=1108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}