Icon

NYCMotorVehicleAccidents

Step 1 Determining the current number of records

  1. The GET Request retrieves the current number of records from the API,

  2. The JSON Path node extracts this value from the JSON response.

  3. The Math Formula calculates the number of required API requests by dividing the total row count by 50,000 and rounding up.

  4. Finally, Table Row to Variable converts the calculated number of pages into a flow variable that controls the subsequent loop.


Step 2 Configuring the counting loop

  1. The Counting Loop Start uses the calculated number of pages to determine how many times the API request must be repeated.

  2. During each iteration, Math Formula (Variable) calculates the offset by multiplying the current iteration number by 50,000. 

  3. String Manipulation (Variable) then inserts this offset into the API URL, ensuring that each request retrieves the next batch of records.


Step 3 Retrieving each page of data

  1. The GET Request retrieves one batch of up to 50,000 collision records using the dynamically generated API URL. 

  2. JSON PathUngroup, and JSON to Table extract the individual collision objects, create one row per collision, and convert their attributes into table columns.

  3. Finally, the Column Filter removes unnecessary API metadata before the processed batch is passed to the Loop End.


Step 4 Cleaning the data

  1. The imported string values are converted into appropriate date, time, and numerical data types to prepare the dataset for analysis.

  2. A review of the final data-cleaning node confirmed that no duplicate collision_id values were present.

  3. No further cleaning was performed at this stage, as additional transformations depend on the specific analysis and its requirements.


Loop End
JSON Path
Ungroup
JSON to Table
Column Filter
Math Formula
String to Date&Time
GET Request
JSON Path
Table Row to Variable
String to Date&Time
Counting Loop Start
String to Number
String Manipulation (Variable)
GET Request
Math Formula (Variable)

Nodes

Extensions

Links