RapidAPI Profile picture
Mar 1 β€’ 10 tweets β€’ 3 min read
Anatomy of an API endpoint.

Thread πŸ§΅πŸ‘‡πŸ»
Before breaking the endpoints into multiple parts. Let's first see what exactly is an endpoint.

The endpoint is nothing but the URL to access resources.

Every API must have at least one endpoint.
A typical endpoint or URL starts with the scheme.

Scheme is nothing but the protocol for APIs.

For example, HTTPS, HTTP, FTP, SSL, etc. Anatomy of an endpoint showing scheme.
The next thing after the scheme is the domain.

The actual location where the request goes.

For example, in this case, we are requesting data from "example[dot]com" domain. Anatomy of an endpoint showing scheme and domain.
After scheme and domain, we have routes where the different resources can be found.

Consider domain as house and routes as rooms.

A single domain (house) can have multiple routes (rooms). Anatomy of an endpoint showing scheme, domain, and path.
The next thing we have is query parameters.

A particular endpoint can have more than one query parameter.

Parameters are nothing but extra information required by the API to process requests.
Query parameter starts with a question mark (?).

You can mention more than one query parameter using Ampersand (&) separator.

For example,

?authon=Joe&tag=API

Here, we are requesting all the posts from Joe having API tag. Anatomy of an endpoint showing scheme, domain, path, and que
Parameters are further divided into four categories.

β€’ Path Parameters
β€’ Query String Parameters
β€’ Header Parameters
β€’ Request Body Parameters

Check out this detailed Guide.

RapidAPI.com/guides/learn-a…
Endpoint won't allow you to insert empty space or special characters.

What if we want all the posts from John Doe?

In that case, we use URL encoding.

% + Hex ASCII value. Anatomy of an endpoint showing scheme, domain, path, and que
With that being said, that's pretty much it for this thread.

Follow @Rapid_API for more exclusive 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

Mar 3
A brief introduction to ten widely used HTTP Headers.

A Thread πŸ§΅πŸ‘‡πŸ»
In this thread, we are going to discuss:

β€’ Accept
β€’ Accept-Encoding
β€’ Authorization
β€’ Accept-Language
β€’ Content-Type
β€’ Content-Location
β€’ Content-Encoding
β€’ Content-Length
β€’ Content-Language
β€’ Cache-Control
Client and server can pass the extra bit of information with the request and response using HTTP headers.

HTTP headers are not case-sensitive.
Read 15 tweets
Mar 3
Top ten Food APIs you can use in your next project.

A Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ Recipe-Food-Nutrition

Over 365,000 recipes and 86,000 food products. Analyze food images by uploading a file or by a given URL.

πŸ”— RapidAPI.com/spoonacular/ap…
2️⃣ Tasty

Use the Tasty API to get data about recipes, ingredients, nutrition, and much more. You can also filter recipes according to the time they take.

πŸ”— RapidAPI.com/apidojo/api/ta…
Read 12 tweets
Mar 2
Building an API is not difficult as it sounds.

Let's create a quick number API using which we can fetch even, odd, and prime numbers.

Thread πŸ§΅πŸ‘‡πŸ»
Prerequisite:

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/
Let's start with creating an empty directory and initializing the project by running the following command. Creating an empty directory...
Read 21 tweets
Mar 2
Top ten Facial Recognition APIs.

Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ Mirror-AI

Upload photos and get personalized avatars and emojis for your users.

πŸ”— RapidAPI.com/mirror-dev-tea…
2️⃣ Face Detection

Use Face Detection API to detect the location of human faces in your images with optional extra features like Age and Gender.

πŸ”— RapidAPI.com/inferdo/api/fa…
Read 12 tweets
Mar 1
Everything you need to know about SOAP API.

Thread πŸ§΅πŸ‘‡πŸ»
SOAP is a necessary protocol that helped introduce the widespread use of APIs.

SOAP is the acronym for Simple Object Access Protocol.
SOAP is a standardized protocol that relies on XML to make requests and receive responses.

Even though SOAP is based on XML, the SOAP protocol is still in wide usage.
Read 18 tweets
Mar 1
Bitcoin, Blockchain, and Cryptocurrency cover a large portion of Web 3.0.

Here are the top five APIs that can make Web 3.0 more accessible and manageable. πŸš€

Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ BraveNewCoin

BraveNewCoin API provides the latest and historical cryptocurrency market data. This API has several endpoints which you can choose from.

πŸ”— RapidAPI.com/BraveNewCoin/a…
2️⃣ Blockchain Data

Gives access to more than 20 blockchains: blocks, transactions, transfers, smart contracts, and tokens.

πŸ”— RapidAPI.com/bitquery-bitqu…
Read 7 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!

Follow Us on Twitter!

:(