what is an api_ - application programming interface explained - aws
what is an api_ - application programming interface explained - aws
what is an api_ - application programming interface explained - aws
re:Invent Products Solutions Pricing Documentation Learn Partner Network AWS Marketplace Customer Enablement Events Explore More
Explore Free Application Integration Check out Application Integration Browse Application Integration Read Application Integration Blogs
Offers Services Trainings Read about the latest AWS Application
View free offers for Application Innovate faster with the most Get started on Application Integration Integration product news and best
Integration services in the cloud comprehensive set of Application training with content built by AWS practices
Integration services experts
What is an API?
What is GraphQL?
What is an API?
APIs are mechanisms that enable two software components to communicate with each other using a set of definitions and protocols. For example, the weather bureau’s software system
contains daily weather data. The weather app on your phone “talks” to this system via APIs and shows you daily weather updates on your phone.
There are four different ways that APIs can work depending on when and why they were created.
SOAP APIs
These APIs use Simple Object Access Protocol. Client and server exchange messages using XML. This is a less flexible API that was more popular in the past.
RPC APIs
These APIs are called Remote Procedure Calls. The client completes a function (or procedure) on the server, and the server sends the output back to the client.
Websocket APIs
Websocket API is another modern web API development that uses JSON objects to pass data. A WebSocket API supports two-way communication between client apps and the server. The
server can send callback messages to connected clients, making it more efficient than REST API.
REST APIs
These are the most popular and flexible APIs found on the web today. The client sends requests to the server as data. The server uses this client input to start internal functions and returns
output data back to the client. Let’s look at REST APIs in more detail below.
The main feature of REST API is statelessness. Statelessness means that servers do not save client data between requests. Client requests to the server are similar to URLs you type in your
browser to visit a website. The response from the server is plain data, without the typical graphical rendering of a web page.
The different terms around APIs, like Java API or service APIs, exist because historically, APIs were created before the world wide web. Modern web APIs are REST APIs and the terms can be
used interchangeably.
1. Integration
APIs are used to integrate new applications with existing software systems. This increases development speed because each functionality doesn’t have to be written from scratch. You can
use APIs to leverage existing code.
2. Innovation
Entire industries can change with the arrival of a new app. Businesses need to respond quickly and support the rapid deployment of innovative services. They can do this by making changes
at the API level without having to re-write the whole code.
3. Expansion
APIs present a unique opportunity for businesses to meet their clients’ needs across different platforms. For example, maps API allows map information integration via websites,
Android,iOS, etc. Any business can give similar access to their internal databases by using free or paid APIs.
4. Ease of maintenance
The API acts as a gateway between two systems. Each system is obliged to make internal changes so that the API is not impacted. This way, any future code changes by one party do not
impact the other party.
Private APIs
These are internal to an enterprise and only used for connecting systems and data within the business.
Public APIs
These are open to the public and may be used by anyone. There may or not be some authorization and cost associated with these types of APIs.
Partner APIs
These are only accessible by authorized external developers to aid business-to-business partnerships.
Composite APIs
These combine two or more different APIs to address complex system requirements or behaviors.
1. Security
API endpoints make the system vulnerable to attack. API monitoring is crucial for preventing misuse.
2. Performance
API endpoints, especially high traffic ones, can cause bottlenecks and affect system performance.
1. Authentication tokens
These are used to authorize users to make the API call. Authentication tokens check that the users are who they claim to be and that they have access rights for that particular API call. For
example, when you log in to your email server, your email client uses authentication tokens for secure access.
2. API keys
API keys verify the program or application making the API call. They identify the application and ensure it has the access rights required to make the particular API call. API keys are not as
secure as tokens but they allow API monitoring in order to gather data on usage. You may have noticed a long string of characters and numbers in your browser URL when you visit
different websites. This string is an API key the website uses to make internal API calls.
API specifications, like OpenAPI, provide the blueprint for your API design. It is better to think about different use cases in advance and ensure the API adheres to current API development
standards.
API designers prototype APIs using boilerplate code. Once the prototype is tested, developers can customize it to internal specifications.
API testing is the same as software testing and must be done to prevent bugs and defects. API testing tools can be used to strength test the API against cyber attacks.
While APIs are self-explanatory, API documentation acts as a guide to improve usability. Well-documented APIs that offer a range of functions and use cases tend to be more popular in a
service-oriented architecture.
Just as Amazon is an online marketplace for retail, API marketplaces exist for developers to buy and sell other APIs. Listing your API can allow you to monetize it.
Writing unit tests for checking business logic and functional correctness.
Writing explanations in simple, easy-to-read English. Documents generated by tools can become wordy and require editing.
Covering all the problems the API can solve for the users.
1. Obtaining an API key. This is done by creating a verified account with the API provider.
2. Set up an HTTP API client. This tool allows you to structure API requests easily using the API keys received.
3. If you don’t have an API client, you can try to structure the request yourself in your browser by referring to the API documentation.
4. Once you are comfortable with the new API syntax, you can start using it in your code.
Where can I find new APIs?
New web APIs can be found on API marketplaces and API directories. API marketplaces are open platforms where anyone can list an API for sale. API directories are controlled repositories
regulated by the directory owner. Expert API designers may assess and test a new API before adding it to their directory.
Rapid API – The largest global API market with over 10,000 public APIs and 1 million active developers on site. RapidAPI allows users to test APIs directly on the platform before
committing to purchase.
Public APIs – The platform groups remote APIs into 40 niche categories, making it easier to browse and find the right one to meet your needs.
APIForThat and APIList – Both these websites have lists of 500+ web APIs, along with in-depth information on how to use them.
Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. It handles all the tasks involved in
accepting and processing thousands of concurrent API calls, including traffic management, CORS support, authorization, and access control, throttling, monitoring, and API version
management.
What is GraphQL?
GraphQL is a query language that was developed specifically for APIs. It prioritizes giving clients exactly the data they request and no more. It is designed to make APIs fast, flexible, and
developer-friendly. As an alternative to REST, GraphQL gives front-end developers the ability to query multiple databases, microservices, and APIs with a single GraphQL
endpoint. Organizations choose to build APIs with GraphQL because it helps them develop applications faster. Read more about GraphQL here.
AWS AppSync is a fully managed service that makes it easy to develop GraphQL APIs by handling the heavy lifting of securely connecting to data sources like AWS DynamoDB, AWS
Lambda, and more AWS AppSync can push real-time data updates over Websockets to millions of clients. For mobile and web applications, AppSync also provides local data access when
devices go offline. Once deployed, AWS AppSync automatically scales GraphQL API execution engine up and down to meet API request volumes.
Amazon API Gateway comes with a full range of features to manage multiple APIs simultaneously and efficiently. You can make up to one million API calls for free by signing up at the
AWS Portal.
AWS AppSync offers fully managed GraphQL API setup, administration, and maintenance, with high-availability serverless infrastructure built-in. You pay only for what you use with no
minimum fees or mandatory service usage. To get started, please sign in to the AWS AppSync Console.
Check out additional product-related Sign up for a free account Start building in the console
resources Instantly get access to the AWS free tier. Get started building with API gateway in the AWS
Learn more about IDE Services Sign up management console.
Sign in
Learn About AWS Resources for AWS Developers on AWS Help Create an AWS Account
What Is AWS? Getting Started Developer Center Contact Us
What Is Cloud Computing? Training and Certification SDKs & Tools Get Expert Help
AWS Accessibility AWS Solutions Library .NET on AWS File a Support Ticket
AWS Inclusion, Diversity & Equity Architecture Center Python on AWS AWS re:Post
What Is DevOps? Product and Technical FAQs Java on AWS Knowledge Center
Amazon is an Equal Opportunity
What Is a Container? Analyst Reports PHP on AWS AWS Support Overview Employer: Minority / Women /
What Is a Data Lake? AWS Partners JavaScript on AWS Legal Disability / Veteran / Gender
What is Artificial Intelligence (AI)? AWS Careers Identity / Sexual Orientation /
Age.
What is Generative AI?
What is Machine Learning (ML)?
AWS Cloud Security
What's New
Blogs
Press Releases
Language | ﻋﺭﺑﻲBahasa Indonesia | Deutsch | English | Español | Français | Italiano | Português | Tiếng Việt | Türkçe | Ρусский | ไทย | 日本語 | 한국어 | 中文 (简体) | 中文 (繁體)
Privacy | Accessibility | Site Terms | Cookie Preferences | © 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.