RapidAPI Profile picture
Jan 31 โ€ข 14 tweets โ€ข 2 min read
How to make your API secure.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
Building an API is one thing, and securing it is another.

If your API is vulnerable, the user's sensitive information will be at risk.

Hence, it's crucial to deliver a secure API.
If your API is not secure, the attackers can quickly access your network by exploiting vulnerabilities in your APIs.

Before deep-diving into making your API secure, let's first discuss what are some common attacks. ๐Ÿ‘‡๐Ÿป
๐Ÿ“Œ Code injection

As the term suggests, attackers inject code into a vulnerable computer program and change the course of execution.
๐Ÿ“Œ Cross-site scripting

In this security vulnerability, the attacker compromises the user's interaction by injecting malicious client-side code.
๐Ÿ“Œ Distributed Denial of Service (DDoS)

The attacker sends the excessive requests to API, making an API unavailable or down due to extreme traffic.
๐Ÿ“Œ Man-in-the-middle

The term is pretty intuitive. An attacker sits between the two communication end to exploit data and perform malicious activities.
๐Ÿ”น API Securing Methods

There are various ways to make your APIs secure from external attacks.

Let's discuss them. ๐Ÿ‘‡๐Ÿป
1๏ธโƒฃ Adequate Privilege

Any user or application accessing your API should only be provided a sufficient amount of access to perform their actions.
2๏ธโƒฃ Authentication And Authorization

A standard way to authenticate and authorize users add extra security.

It will help if you use the OAuth2.0 standard to ensure only authorized users access the data.
3๏ธโƒฃ Rating Limiting

The DDoS attack can bring down your API and, with it, crashes every application that relies on your API.

To prevent this, you can implement rate-limiting by setting a threshold.

For example, 100 requests per second per account.
4๏ธโƒฃ Validate Input

Always validate the input that the user is sending to access the data.

The attackers can send malicious code to the server that can crash it.

Hence validating input is a must.
5๏ธโƒฃ Firewall

Implement a web application firewall that understands API payloads.
With that being said, this is the end of this thread.

Follow @Rapid_API to read more excellent API-related content. ๐Ÿ’™๐Ÿ™

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with RapidAPI

RapidAPI Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Rapid_API

Feb 1
What exactly is an API?

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
API is the acronym for Application Programming Interface.

In simple terms, API is an interface that lets your application talk to another application.
API is a set of definitions and protocols that allow technology products and services to communicate.

This may not sound very clear. Let's break it down.
Read 15 tweets
Jan 31
Top 10 Artificial Intelligence APIs.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
1๏ธโƒฃ Extract Table - DocumentDev

- Extract information from PDF Tables instantly. Using the power of Artificial Intelligence and NLP.

RapidAPI.com/documentdev/apโ€ฆ
2๏ธโƒฃ Sentiments

- Sentiments API returns the sentiment score of any given text.

RapidAPI.com/connexun-srl-cโ€ฆ
Read 12 tweets
Jan 27
API development becomes a little easier if you know the correct terms and their correct meaning.

Here, we complied with widely used terms in API development.

Thread ๐Ÿงต
๐Ÿ“Œ API Key

An API key is a unique code that lets you call an API.

The only rule is that these keys must be unique and not easy to guess.

Generally, API keys contain lower case and upper case letters with numbers.
๐Ÿ“Œ API Token

The API token is a unique identifier of an application requesting access to your API.

An API token is a form of authentication similar to a username/password.
Read 17 tweets
Jan 26
Let's break down the process of building a REST API from scratch using Node.js and Express.

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
Head over to the following thread if you're not aware of REST API.

We are assuming you have Node.js installed on your machine. If you haven't installed it, click on the following link and install it simply.

nodejs.org/en/
Read 21 tweets
Jan 26
A brief introduction to API Testing. ๐Ÿงช

API testing is performed to test whether a particular API meets pre-defined parameters or not.

Let's talk more about API Testing ๐Ÿงต๐Ÿ‘‡๐Ÿป
API testing includes testing APIs in isolation to ascertain if they meet the functionality, reliability, latency, performance, security, and other essential parameters.
API testing commonly includes testing APIs with JSON or XML payload sent over HTTP, HTTPS, JMS, and MQ. These are widely used data formats and networking/messaging protocols.
Read 13 tweets
Jan 24
What exactly is an API Key?

Thread ๐Ÿงต๐Ÿ‘‡๐Ÿป
Let's first talk a bit about APIs.

API is an interface that allows the software to communicate via the internet. In simple terms, APIs are how apps talk to each other.
To call those APIs, you need an API key to establish a communication path between software.

An API key is a unique code for every user which lets you call an API.
Read 15 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

:(