You can always enhance your development skills by creating projects. πŸš€

Let's see How to Create an Emotion Recognition App using React and RapidAPI.
πŸ§΅πŸ‘‡πŸ» Homepage of emotion recogni...
Step 1: Connect to the Facial Emotion Recognition API πŸ–‡οΈ

We will be using the free Facial Emotion Recognition API for this particular project. Head over to the Pricing page (RapidAPI.com/cloud-actions-…) and click on the β€œSubscribe” button of the Basic plan. The basic plan of Facial Em...
Step 2: Test the API on RapidAPI Playground πŸ§ͺ

The Facial Emotion Recognition API has only one endpoint that allows us to make a POST request using the image URL.

Add image URL inside source and URL inside sourceType parameter.

Great, click on the β€œTest Endpoint” button. Make an API call after addi...
After hitting the β€œTest Endpoint” button, you will see the API response in the third section of API Playground. The response of Facial Emot...
You’ll get an object with two keys - the first key contains all the emotion values, and the second key will contain the Face Annotations.

We need the `emotions` key, which contains seven different emotion values.
Step 3: Create React App

Create a React application by running the following command:

`npx create-react-app emotion-recognition`

Head over to React docs (reactjs.org) if you're not familiar with React.
Step 4: Create a Form Inside App.js File

Go to the emotion-recognition folder > src > App.js, and create a form with an URL input field and a submit button.

Here, the user can enter the image URL and get the desired result. function App() {   return (...
Run the application to check the output by running the following command from the root of the project:

`npm start` Image
Step 5: Copy-paste the code snippet from RapidAPI Hub

You are all set to integrate Facial Emotion Recognition API code into our application. You don’t even need to write the code. RapidAPI provides the code snippet in 20 programming languages with 40 libraries’ support.
Go to the Facial Emotion Recognition (RapidAPI.com/cloud-actions-…) API homepage and copy the code snippet from the third section of the API playground.

Select the JavaScript language and fetch method from the dropdown menu and click on the β€œCopy Code” button.
Create a function `fetchData()` in the App.js file and paste the code inside that function.
Step 6: Validate the Form and Make API Request

We are almost done! We need to validate the form to enter the image URL and get the emotions. <form onSubmit={(event) => ...
Render the data (emotions) on the webpage when API successfully returns the data. You can do this by adding some paragraph tags inside the return method in the App.js file.
If you missed some parts, this is how the entire code file looks like: πŸ‘‡πŸ»

πŸ”— codesandbox.io/s/emotion-reco…
Step 7: Run the Application

Yay! Run the `npm start` command, and you’ll see the result at http://localhost:3000/.
You can also add some great designs to your project to make it look more appealing.

Check out the complete project here:

πŸ”— codesandbox.io/s/emotion-reco… Image
That's pretty much it for this tutorial thread. We hope you like this. πŸ’™

Feel free to drop your suggestions or doubts below.

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

28 Sep
Top 10 API-based web development projects you can build using RapidAPI.

A curated list of excellent tutorials. πŸš€

πŸ§΅πŸ‘‡πŸ»
1️⃣ Travel Advisor App

- A great tutorial on building and deploying a Google Maps Travel Companion App using a free API available on RapidAPI.

πŸ”—
2️⃣ Convolutional Networks for Heart Disease Prediction

- In this video, you'll learn how to build convolutional networks that can predict heart disease using RapidAPI.

πŸ”—
Read 11 tweets
28 Sep
Bitcoin, Blockchain, and Cryptocurrency cover a large portion of Web 3.0.

The ultimate goal of Web 3.0 is to provide a more capable, secure, and semantic web.

Here are the Top four 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…

πŸ“ˆ Popularity: 9.9/10
πŸ•› Latency: 87ms
βœ… Service Level: 100% Homepage of BraveNewCoin API
2️⃣ Blockchain Data

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

πŸ”— RapidAPI.com/bitquery-bitqu…

πŸ“ˆ Popularity: 8.2/10
πŸ•› Latency: 329ms
βœ… Service Level: 100% Homepage of Blockchain Data API
Read 6 tweets
27 Sep
HTTP headers allow clients and servers to talk to each other and pass extra bits of information or instructions.

Here are the Top Five HTTP headers you might not know about.

Thread πŸ§΅πŸ‘‡πŸ»
1️⃣ Content-Disposition

Content-Disposition header tells the browser to

- Display the content as a web page or as a part of the web page
- Download the content
Suppose you want to download the file that the server returns. This is how you can do it. πŸ‘‡πŸ»

Content-Disposition: attachment; filename="index.html" Code snippet of Content-Dis...
Read 10 tweets
21 Sep
Top five Geocoding and Location APIs you can use in your next full-stack application.

🧡 πŸ‘‡πŸ»
1️⃣ Boundaries-io

- A swift & straightforward API that will allow you to integrate multiple GeoJson US boundaries results into your apps and systems.

πŸ”— RapidAPI.com/VanitySoft/api…

πŸ“ˆ Popularity: 9.7/10
πŸ•› Latency: 712ms
βœ… Service Level: 100%
2️⃣ GeoDB Cities

- Get global city, region, and country data. You can filter and display results in multiple languages.

πŸ”— RapidAPI.com/wirefreethough…

πŸ“ˆ Popularity: 9.9/10
πŸ•› Latency: 172ms
βœ… Service Level: 100%
Read 6 tweets
16 Sep
Here are ten widely used HTTP headers:

πŸ”Ή Accept
πŸ”Ή Accept-Encoding
πŸ”Ή Authorization
πŸ”Ή Accept-Language
πŸ”Ή Content-Type
πŸ”Ή Content-Location
πŸ”Ή Content-Encoding
πŸ”Ή Content-Length
πŸ”Ή Content-Language
πŸ”Ή Cache-Control

Let's talk about them in a bit more detail πŸ§΅πŸ‘‡πŸ» Introduction to HTTP headers
Client and server can pass the extra bit of information with the request and response using HTTP headers.

HTTP headers are not case-sensitive.
The HTTP headers are divided into four categories:

1️⃣ Request headers: Client to Server

2️⃣ Response headers: Server to Client

3️⃣ Representation headers: Information about the body of the resource

4️⃣ Payload headers: Information about the payload data
Read 13 tweets
16 Sep
Check out these five amazing Text Analysis APIs. πŸ†Ž

Feel free to use them in your next application.

πŸ§΅πŸ‘‡πŸ»
1️⃣ Sentiment Analysis

- Enter a string to check the positive or negative tone.

πŸ”— RapidAPI.com/twinword/api/s…

πŸ’° Freemium
πŸ“ˆ Popularity: 9.6/10
πŸ•› Latency: 342ms
βœ… Service Level: 100%
2️⃣ Text-Processing

- This API provides sentiment analysis, stemming and lemmatization, part-of-speech tagging and chunking, phrase extraction, and named entity recognition.

πŸ”— RapidAPI.com/japerk/api/tex…

πŸ’° Freemium
πŸ“ˆ Popularity: 9.6/10
πŸ•› Latency: 438ms
βœ… Service Level: 100%
Read 6 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

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

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(