---
title: "Discussion on \"How to Fetch Data From API in ReactJS.\" | Hashnode"
description: "Discussion on \"How to Fetch Data From API in ReactJS.\". How to fetch data from rest API directly into the React-APP using Axios and server JSON."
url: "https://hashnode.com/posts/how-to-fetch-data-from-api-in-reactjs/60e1a71603707d644a5027fb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Fetch Data From API in ReactJS.](https://blog.theashishmaurya.me/how-to-fetch-data-from-api-in-reactjs?utm_source=hashnode&utm_medium=feed)

How to fetch data from rest API directly into the React-APP using Axios and server JSON.

Jul 4, 2021 · 2 min read · blog.theashishmaurya.me  
Updated Sep 18, 2021  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#axios](https://hashnode.com/tag/axios)
-   [#rest-api](https://hashnode.com/tag/rest-api)
-   [#developer](https://hashnode.com/tag/developer)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)

## Written by

[Ashish maurya](https://hashnode.com/@theashishmaurya)

@theashishmaurya · India

  
[View profile](https://hashnode.com/@theashishmaurya)

Hey there!! wanna learn something new?

I am a developer from India with a good eye for frontend logic and design. I am also well acquainted with the backend and business logic so that's add to my ability to create a good frontend while making it easily integratable with backend.

## Responses 2

Markdown supported · ⌘↵ to post

[Shubham Yadav](https://hashnode.com/@theshubhamyadav)

[Jun 20, 2023](https://hashnode.com/posts/how-to-fetch-data-from-api-in-reactjs/60e1a71603707d644a5027fb/comment/64913601c167b41645fd087c)

The GitHub gist links are not loading due to which an empty space is displayed instead of code

[Heaust](https://hashnode.com/@heaust)

[Jul 4, 2021](https://hashnode.com/posts/how-to-fetch-data-from-api-in-reactjs/60e1a71603707d644a5027fb/comment/60e1b7d44f8e376422a79892)

yeyy I can make api calls now tysm :D

[Ashish maurya](https://hashnode.com/@theashishmaurya)

[Jul 4, 2021](https://hashnode.com/posts/how-to-fetch-data-from-api-in-reactjs/60e1a71603707d644a5027fb/comment/60e1b7d44f8e376422a79892#reply-60e1bcc24f8e376422a7993f)

you welcome buddy :)
