# Day 21: HTTP request in Flutter

> Explore how to make HTTP requests in Flutter to get data from remote servers, including using the http package, and learn how to implement HTTP requests in your Flutter app.

- URL: https://www.appwriters.dev/30days/flutter/day21
- Series: #30DaysMasterFlutter

---

Dynamic mobile applications save and load user data and other information from remote servers. It is important to understand how to make network requests in Flutter to fetch data from an API and display it in your app.

> **Project** - Quotes API
>
> Update the quotes list UI you built on [day 12](/30days/flutter/day12) to fetch quotes from an API instead of using a static list of quotes.
>
> - [Get quotes from this endpoint](https://dummyjson.com/quotes)

By the end of this day, you should have a basic understanding of how to make network requests in Flutter and how to work with the `http` package.

## Tips

- Review the basics of Dart programming from Day 1-9.
- Learn how to make network requests in Flutter using the [http](https://pub.dev/packages/http) package. This package allows you to easily make HTTP requests to an API and receive data in JSON format.
- Experiment with different types of requests, such as GET and POST requests, and learn how to handle errors and exceptions.
- You can use [JSON Placeholder API](https://jsonplaceholder.typicode.com/) to practice making different requests
- You should practice by building more projects
- You can use [Free Public APIs](https://github.com/public-apis/public-apis) for building many interesting applications

## Resources

- [Flutter http package documentation](https://pub.dev/packages/http)
- [Beginners guide to http package](https://www.appwriters.dev/blog/a-beginners-guide-to-the-http-package-in-flutter)
- [Fetch Data fron Internet](https://docs.flutter.dev/cookbook/networking/fetch-data)
- [Working with Rest API in Flutter](https://www.appwriters.dev/blog/integrating-with-rest-api-in-flutter)
