We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.

Weekly Challenge

Solve the challenge, share your solution and summit the ranks of our Community!

Also available in | Français | Português | Español | 日本語
IDEAS WANTED

We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!

Submit Feedback

Challenge #139: Spooky API Connection

karlhansen
8 - Asteroid

Sadly, the website is no longer operating.  I do wish the data were available someplace else.

martinding
13 - Pulsar

Seems like the relevant links no longer work?

grazitti_sapna
17 - Castor

My Solution:

Sapna Gupta
JamesCharnley
12 - Quasar
Spoiler
JamesCharnley_0-1669288030936.png

 

Used the link found by @LiuZhang for the updated API. Going to attribute the difference in answer to the change. First time I've messed about with an API in ages so that was a lot of fun

ahsanaali
10 - Fireball
Spoiler
ahsanaali_0-1673677039204.png

 

peter_gb
9 - Comet

Pleeeeaaaase update this challenge, was a pain finding the information!


I did a search for the food names to get the FDCIDs, which were then sent in one call to fetch the calorie values.

 

Would be a great API challenge if the ask was clearer 

I also used this API: https://fdc.nal.usda.gov/api-guide.html#bkmk-2

 

Spoiler
challenge_139_pgb.png

kristiadiuisan
8 - Asteroid

Slightly different total calories, probably due to the API keep getting updated

 

Spoiler
Alteryx_challenge_139_KU.png
leonhekkert
8 - Asteroid

My solution:

 

Spoiler
Challenge_139.png
CeliaC_Silje
8 - Asteroid
Spoiler
CeliaC_Silje_0-1680249431548.png

Just like others, the API does not work anymore so I use the one provided by others in this post.

alacoume
8 - Asteroid

Interesting!