Idrisz
(Idrisz)
June 28, 2020, 6:58am
#1
I am creating a covid19 for my projects.
I am using the following API to fetch the latest covid19 data for my app
https://api.covid19api.com/summary
Since the API contains hundred of countries data, I am having difficulty to obtain only specific country from the list - I only want the “NewConfirmed” data from the country: Spain from the list.
This is what I have tried:
Seeking some advice and suggestion.
1 Like
Hi welcome,
Try without json. Response content looks simple text (I can’t see all content)
Try with these block
I’m shure it need some adjustments, but work
1 Like
dora_paz
(Dora)
June 28, 2020, 8:08am
#4
Another way is using JsonUtils extension
2 Likes
Idrisz
(Idrisz)
June 28, 2020, 9:09am
#5
Its works, but my question is, how do you obtain index: 157? Any tips?
Idrisz
(Idrisz)
June 28, 2020, 11:13am
#6
Hi I am building a covid19 apps and using this API to fetch data
https://api.covid19api.com/summary
I have done the following block to show data of “TotalConfirmed” cases in Spain, its working well, the numbers come out. But its comes out as 248469 which is not convenient to read. How do I made it to show as 248,469 (with a comma). Any advice? This is my progress…
vknow360
(Sunny Gupta)
June 28, 2020, 11:16am
#7
Probably TextUtils extension is able to do that.
1 Like
If you search then you will find it
If you want 1000 to be shown as 1,000 then you can use TextUtils extension
Otherwise use replace all text block
[image]
1 Like
Idrisz
(Idrisz)
June 28, 2020, 2:03pm
#9
I tried that extensions, but still have problem, the numbers is now not showing
Idrisz
(Idrisz)
June 28, 2020, 2:39pm
#11
That did the trick, thanks !
Idrisz
(Idrisz)
June 29, 2020, 6:22am
#12
I am making covid-19 apps. Currently constructing the statistic of countries with most cases using this API:
https://coronavirus-19-api.herokuapp.com/countries
Is it possible to create auto insert the list from the API. I want to create top 20 countries of most cases. This is my current progress, but it took time to duplicate all 20 same block.
Seeking for advice.
themaayur
(Mayur Berad)
June 29, 2020, 6:37am
#13
Why are you creating multiple topic for one app. Ask all the questions in one topic.
I am creating a covid19 for my projects.
I am using the following API to fetch the latest covid19 data for my app
https://api.covid19api.com/summary
Since the API contains hundred of countries data, I am having difficulty to obtain only specific country from the list - I only want the “NewConfirmed” data from the country: Spain from the list.
[image]
This is what I have tried:
[1]
Seeking some advice and suggestion.
Hi I am building a covid19 apps and using this API to fetch data
https://api.covid19api.com/summary
I have done the following block to show data of “TotalConfirmed” cases in Spain, its working well, the numbers come out. But its comes out as 248469 which is not convenient to read. How do I made it to show as 248,469 (with a comma). Any advice? This is my progress…
[image]
Can any TL4 user/moderator close the topic.
@Peter
1 Like
Peter
(Moderator)
June 29, 2020, 6:43am
#14
Creating more then one topic about the same question could get you suspended from the community. Don’t do that again. Stay with one. I unlist and close this.
1 Like
Peter
(Moderator)
June 29, 2020, 6:47am
#15
I closed all previous and merged them into one.