---
title: "Discussion on \"How to export CSV and JSON data from API in React\" | Hashnode"
description: "Discussion on \"How to export CSV and JSON data from API in React\". In this blog, we will explore how to fetch data from an API using Axios, and then export the data as both CSV and JSON files using the Papa Parse library.\nExporting Data as CSV using Papa Parse\nPapa Parse is a powerful JavaScript library that can be ..."
url: "https://hashnode.com/posts/how-to-export-csv-and-json-data-from-api-in-react/63eb9c9c04647feb4eeaecb5"
---

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

Discussion

# [How to export CSV and JSON data from API in React](https://belindamarionk.hashnode.dev/how-to-export-csv-and-json-data-from-api-in-react?utm_source=hashnode&utm_medium=feed)

In this blog, we will explore how to fetch data from an API using Axios, and then export the data as both CSV and JSON files using the Papa Parse library. Exporting Data as CSV using Papa Parse Papa Parse is a powerful JavaScript library that can be ...

Feb 14, 2023 · 2 min read · belindamarionk.hashnode.dev  
Read the article

-   [#csv-files](https://hashnode.com/tag/csv-files)
-   [#json](https://hashnode.com/tag/json)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#papa-parse](https://hashnode.com/tag/papa-parse)

## Written by

[Belinda Marion Kobusingye](https://hashnode.com/@belindamarionk)

@belindamarionk · Kampala, Uganda

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

Mastery all the way

Frontend Engineer | Code mentor | Building readbuddy.io | UI/UX design hobbyist | Blogger

## Responses 2

Markdown supported · ⌘↵ to post

[Belinda Marion Kobusingye](https://hashnode.com/@belindamarionk)

[Feb 15, 2023](https://hashnode.com/posts/how-to-export-csv-and-json-data-from-api-in-react/63eb9c9c04647feb4eeaecb5/comment/63ecfffb3fa8ff4ff0097900)

Hey Samson. Thanks. Nop I haven't done web scraping before or used the cheerio library

[Were Samson Bruno](https://hashnode.com/@Samsonroyal)

[Feb 15, 2023](https://hashnode.com/posts/how-to-export-csv-and-json-data-from-api-in-react/63eb9c9c04647feb4eeaecb5/comment/63ecbe1f7cedde50200b742d)

Belinda this is a great article, I would love to know if you have used cheerio the js library or any other libraries that deal with scraping.

This article actually answers one part of the problem I set out to solve recently. Thanks for sharing.
