# COVID-19 India API

**URL:** <https://forum.adalo.com/t/covid-19-india-api/12677>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [May 18, 2021, 2:51am UTC](https://forum.adalo.com/t/covid-19-india-api/12677 "2021-05-18T02:51:32Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/matthew/32/8390_2.png) [@matthew](https://forum.adalo.com/u/matthew)\
**Post date:** [May 18, 2021, 2:51am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/1 "2021-05-18T02:51:32Z")

</div>

Hi brains trust,

We are having an issue with a simple call to gather data related to the COVID pandemic in India.

The straightforward fetch action sends a ‘GET’ request to `https://api.covid19india.org/data.json` with nothing in the body.

When executing this call in Postman, it comes back with a Status 200 (ok), returning a list of daily case and death count updates. We tested the call in Bubble’s API connector, and it too returns a successful call.

However, when trying to set up the call for an external collection in Adalo, it throws an error saying “Could not find any results. Are you sure the results key is correct?” This is despite the Full Response actually showing the data as being successfully returned. (See Screenshot below)

Would really appreciate any ideas as to how we may be able to rectify this issue. It’s working fine using other tools, so at a bit of a brick wall.

 ![Screenshot 2021-05-18 at 12.49.41 pm](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/c/c2f659205debd3c5a4972471c929baed6def5016.png)

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [May 18, 2021, 3:01am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/2 "2021-05-18T03:01:29Z")

</div>

Hi Matthew,

Welcome to the Community! 🥳

I’m trying to replicate this on my end with external collections and I’ll get you an update once I figure how to do it. 🙂

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [May 18, 2021, 3:09am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/3 "2021-05-18T03:09:01Z")

</div>

Hi Matthew,

I figured it out!! 🥳

**What I’m about to say is important for anyone using external collections**

* * *

When I look at the url for the API ([https://api.covid19india.org/data.json](https://api.covid19india.org/data.json)), I see that _“cases\_time\_series”_ is at the top so I put that under the results key for the get-all and it worked! 🙂

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/2/285dca42fc0a7477c050d91f359b332a19150283.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/fc7a538afc83305dc9288778154be0fdb33b0661.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/5/56306686c87be0fccfbafa43ef407f07292be7ca.png)

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [May 18, 2021, 3:17am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/4 "2021-05-18T03:17:24Z")

</div>

@James_App_Maker this is the most common issue the members raise when it comes to external collections. This needs to go into tutorials.

Currently it’s only mentioned for Airtable setup to add “records” in results key. But this is common for almost all the APIs.

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [May 18, 2021, 3:18am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/5 "2021-05-18T03:18:23Z")

</div>

Yeah it does, I had to learn it the hard way…

---

<div class="post-metadata">

**Author:** ![matthew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/matthew/32/8390_2.png) [@matthew](https://forum.adalo.com/u/matthew)\
**Post date:** [May 18, 2021, 3:36am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/6 "2021-05-18T03:36:03Z")

</div>

Legendary!

Thanks heaps @James_App_Maker and @bhanu

---

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.adalo.com/u/Venkata)\
**Post date:** [May 18, 2021, 3:43am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/7 "2021-05-18T03:43:21Z")

</div>

Hi @James_App_Maker, @bhanu Is there any way to sort or filter external collections.

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [May 18, 2021, 3:46am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/8 "2021-05-18T03:46:08Z")

</div>

@Venkata sure there is. For Airtable it’s documented here:

> **[Filtering Airtable Lists](https://help.adalo.com/integrations/external-collections-with-apis/airtable/working-with-lists/filtering-airtable-lists)**

For other external collections you need to refer to their documentation on what kind of filter criteria is required to achieve the results.

---

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.adalo.com/u/Venkata)\
**Post date:** [May 18, 2021, 4:32am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/9 "2021-05-18T04:32:34Z")

</div>

@bhanu @James_App_Maker I want to sort the list in such a way that starting record’s date should be “recent date”. What formula I need to implement there?  
({date} = ‘’) 🤔

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [May 18, 2021, 4:53am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/10 "2021-05-18T04:53:45Z")

</div>

@Venkata you need to provide more details on what type of external collection you’re using here. Airtable? Are you talking about filtering or sorting?

Sorting Airtable list is here:

> **[Sorting Airtable Lists](https://help.adalo.com/integrations/external-collections-with-apis/airtable/working-with-lists/sorting-airtable-lists)**

Currently it only supports ascending or descending for sort. What do you mean by recent date? Can you share the example?

---

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.adalo.com/u/Venkata)\
**Post date:** [May 18, 2021, 5:32am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/11 "2021-05-18T05:32:59Z")

</div>

@bhanu  
I have used this api: `https://api.covid19india.org/data.json` - External Collection.  
Below is the screenshot of the external collection:

 ![collection](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/bef02079cf0446299fc11825d2b4ea72fb3572e3.png)  
Below is the custom list of this external collection:  
 ![list](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/a9ebdd300d7388ecd7ec58a502ec0befc82103e5.png)  
We can see that the date is “6 March 2020”. If i scroll down to the end, “17 May 2021” will appear. So what i need is that the “17 May 2021” data should appear on the top. So that the users should not have to scroll to see the recent cases.

---

<div class="post-metadata">

**Author:** ![bhanu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bhanu/32/6859_2.png) [@bhanu](https://forum.adalo.com/u/bhanu)\
**Post date:** [May 18, 2021, 5:59am UTC](https://forum.adalo.com/t/covid-19-india-api/12677/12 "2021-05-18T05:59:51Z")

</div>

Hey @Venkata tried a few ways of doing this, but looks like the API doesn’t sorting or filtering. Unable to pass any parameters into it.

---

<div class="post-metadata">

**Author:** ![Venkata](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@Venkata](https://forum.adalo.com/u/Venkata)\
**Post date:** [May 19, 2021, 11:42pm UTC](https://forum.adalo.com/t/covid-19-india-api/12677/13 "2021-05-19T23:42:16Z")

</div>

Thankyou for your time @bhanu
