We need a tool which can access a local SQL Server database, query a list of unique id values based on a parameter (town name), loop through this list while sending GET requests to the web API in order to retrieve the binary string of each image. We need to access and separately save each image file locally, named by the unique id values retrieved from the database. The API returns a binary string if a PNG.
Attached is the specifications for this web API. It is currently open to the public, so proceed accordingly.