---
title: "Discussion on \"Using Promise.all with Async/Await to get data from multiple endpoints\" | Hashnode"
description: "Discussion on \"Using Promise.all with Async/Await to get data from multiple endpoints\". Sometimes you want to get some data from several different API endpoints. In this example I will be using the Star Wars API to get information about some characters. See below.\nconst urls = [\n  \"https://swapi.co/api/people/1\",\n  \"https://swapi.co/api..."
url: "https://hashnode.com/posts/using-promiseall-with-asyncawait-to-get-data-from-multiple-endpoints/5f97e31b91c85e2865f5e9bd"
---

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

Discussion

# [Using Promise.all with Async/Await to get data from multiple endpoints](https://davidbell.hashnode.dev/using-promiseall-with-asyncawait-to-get-data-from-multiple-endpoints?utm_source=hashnode&utm_medium=feed)

Sometimes you want to get some data from several different API endpoints. In this example I will be using the Star Wars API to get information about some characters. See below. const urls = \[ "https://swapi.co/api/people/1", "https://swapi.co/api...

Oct 27, 2020 · 4 min read · davidbell.hashnode.dev  
Updated Mar 18, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#beginner](https://hashnode.com/tag/beginner)
-   [#beginners-learningtocode-100daysofcode](https://hashnode.com/tag/beginners-learningtocode-100daysofcode)
-   [#asynchronous](https://hashnode.com/tag/asynchronous)

## Written by

[David Bell](https://hashnode.com/@davidbell)

@davidbell · Birmingham, England

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

Self taught developer, working with Nextjs, TypeScript, Graphql and React.

## Responses 1

Markdown supported · ⌘↵ to post

[Braydon Coyer](https://hashnode.com/@braydoncoyer)

[Oct 27, 2020](https://hashnode.com/posts/using-promiseall-with-asyncawait-to-get-data-from-multiple-endpoints/5f97e31b91c85e2865f5e9bd/comment/5f98285491c85e2865f5f315)

Really enjoyed this one and appreciate how you’ve explained it. It’s surprising how many developers chain one API call after another instead of using Promise.all(). Thanks for sharing!

[David Bell](https://hashnode.com/@davidbell)

[Oct 28, 2020](https://hashnode.com/posts/using-promiseall-with-asyncawait-to-get-data-from-multiple-endpoints/5f97e31b91c85e2865f5e9bd/comment/5f98285491c85e2865f5f315#reply-5f98c3e86ea7602886a17381)

Thanks Braydon!
