Okay, so, I am using a http request node to pull historical data from a free government api site. They limit the data to 100 records, even if you sign up and get a key. But they will let you do refined pulls based on date.
So the date looks something like this
Date(YYYY-MM-DD), SomeNumber
Now, I start out using a set node and set last_date to todays date and then issue the http request as http://www.somesite.gov/folder/data?$where=date<{{last_date}} and get the first 1000 results.
Now, how do I update the last_date variable from the initial set node to be the last date returned from the data set so I can loop back through after I write the current data out?
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: