# External API request fail

**URL:** <https://forum.adalo.com/t/external-api-request-fail/27323>\
**Category:** Get Help\
**Created:** [May 17, 2022, 1:21pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323 "2022-05-17T13:21:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roope257](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@roope257](https://forum.adalo.com/u/roope257)\
**Post date:** [May 17, 2022, 1:21pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323/1 "2022-05-17T13:21:59Z")

</div>

Hello,

I am working on my job board and I got API access from one big company in my country so I could use API to show their open jobs on my app.

So they gave me test user and when they are happy the out come they will give me full user what to use. I just can’t figure out what I should put on the “Get All” result key option. Because now it fails everytime.

EDIT: I have already tried “responseHeader” and “response” as result key but no success.

 ![ss1434](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/e/a/ea4824a862e81799f51ce75ab966772c3d322889.png)

---

<div class="post-metadata">

**Author:** ![ben1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ben1/32/1040_2.png) [@ben1](https://forum.adalo.com/u/ben1)\
**Post date:** [May 17, 2022, 1:27pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323/2 "2022-05-17T13:27:16Z")

</div>

Hey @roope257

It looks like you may need to use “response” and “docs” as results keys, in that order. The array of records is under the “docs” child key.

Let us know is that helps!

---

<div class="post-metadata">

**Author:** ![roope257](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@roope257](https://forum.adalo.com/u/roope257)\
**Post date:** [May 17, 2022, 1:32pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323/3 "2022-05-17T13:32:30Z")

</div>

Thanks I wll try that out!

---

<div class="post-metadata">

**Author:** ![roope257](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@roope257](https://forum.adalo.com/u/roope257)\
**Post date:** [May 17, 2022, 2:23pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323/4 "2022-05-17T14:23:26Z")

</div>

> [@ben1](#):
>
> docs

Works like a charm! 🙂

---

<div class="post-metadata">

**Author:** ![ben1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ben1/32/1040_2.png) [@ben1](https://forum.adalo.com/u/ben1)\
**Post date:** [May 17, 2022, 4:47pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323/5 "2022-05-17T16:47:20Z")

</div>

Ahh perfect! For a tip for the future, cause I know that this can be a bit confusing with all of the different APIs, and no one size fits all solution.

External Collections are intended to load a list of records returned in an API response. in order for that to work, those records need to be in an array. An array sits between square brackets [array]. So you need to use the results key and sub child keys to get to that[array] list of data you are looking to use in your app. Sometimes there are multiple arrays, or child keys that are arrays in the array. You will need to find the correct one for your use.

Here is a break down of your APIs response screenshot, and how I identified those keys! I hope this helps you and anyone else that may be frustrated setting up the External Collection GET ALL requests.  
 ![arrayHints](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/b/e/be872c49799bf99c93f8fb8047ca70cf4bdcef49.png)

---

<div class="post-metadata">

**Author:** ![roope257](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@roope257](https://forum.adalo.com/u/roope257)\
**Post date:** [May 17, 2022, 5:42pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323/6 "2022-05-17T17:42:52Z")

</div>

Thanks for clearing things up! Now it’s easier on future to understand. 🙂 This is my first time working on APIs.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [May 27, 2022, 5:43pm UTC](https://forum.adalo.com/t/external-api-request-fail/27323/7 "2022-05-27T17:43:44Z")

</div>

Closed on May 27, 2022, 5:43pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
