Icon

JKISeason3-12_​ayato

<p><strong>Getting Brewery Data</strong></p><p><strong>Challenge 12</strong></p><p><strong>Level:&nbsp;</strong>Medium<br><br><strong>Description:&nbsp;</strong>Did you know that August 2nd is International Beer Day? To celebrate one of the world’s oldest beverages, you are tasked with retrieving all worldwide brewery data from&nbsp; the <strong>OpenBreweryDB</strong> REST API, which provides data on the breweries in paginated responses. Build a loop that makes successive requests to each page of the API until all data is retrieved.<br><br>Not interested in beer? Feel free to use any API of your choice! Find more public APIs here: <strong>https://publicapis.io/</strong></p>


醸造所データの取得

チャレンジ12

レベル: 中級

説明: 8 月 2日は国際ビールデーであることをご存知ですか? 世界最古の飲み物の 1 つを祝うために、OpenBreweryDB REST API から世界中のすべてのビール醸造所データを取得します。この API は、ページ分割された応答でビール醸造所のデータを提供します。すべてのデータが取得されるまで、API の各ページに連続してリクエストを送信するループを構築します。

ビールに興味はありませんか? 好きな API を自由に使用してください。その他のパブリック API は、https: //publicapis.io/で見つかります。

set up for loop.

This is the first time I have used an API node.

In Math formula node, I used "ceil" to count the number of loops. I think this is the original.

In addition, in case some elements were missing, I separated json data into columns per set and then extracted individual items.

parse

GET Request
JSON Path
Ungroup
JSON Path
String Manipulation (Variable)
JSON Path
ceil(total/200)
Math Formula
Table Row to Variable
Counting Loop Start
GET Request
Loop End

Nodes

Extensions

Links