# 4.3 Handling REST API in Dart

> Learn how to use REST APIs in Dart by creating projects such as Pokemon search, Movie search, and more. You will learn to use the http package and Future, async, and await in Dart.

- URL: https://www.appwriters.dev/courses/master-flutter/ch04-asynchronous-programming-rest-api-and-json/ls03-handling-rest-api-in-dart
- Course: Master Flutter (https://www.appwriters.dev/courses/master-flutter)
- Chapter: 4. Asynchronous Programming, REST API and JSON

---

In this lesson, we'll look at how to use REST API in Dart. To handle REST API in Dart, we will use the [http](https://pub.dev/packages/http) package. We'll also learn more about `Future`, `async`, and `await` along the way.

## Projects

### 1. Pokemon API

Write a program to fetch data from the [Pokemon API](https://pokeapi.co/docs/v2) and display the data of your favorite pokemon in the console.

### 2. Movie Searcher

Write a program that uses [The Movie Database (TMDB) API](https://developer.themoviedb.org/reference/intro/getting-started) to provide the following functionalities (you will need a free API key):

- It will be a CLI program.
- Search for movie information by title.
- View a list of upcoming films.
- Get a list of the best-rated movies.
- Compile a list of popular films.

Add more functionalities as you like.

### 3. Publish all the above projects

Publish all the above projects to [GitHub](https://github.com) repositories. Make sure to add a `README.md` file to each project. Enhance and modify the projects as you like.

### 4. Tutorial

Write a tutorial on how to use Pokemon API to build a pokemon searcher explaining to beginners how to use the `http` package and `Future`, `async`, and `await` in Dart.

## Resources

- [http](https://pub.dev/packages/http)
- [Async and Await](https://dart.dev/libraries/async/async-await)
- [Fetch data from the internet](https://docs.flutter.dev/cookbook/networking/fetch-data)
