Vexcel API quota-saving: cache responses on disk keyed by a hash of method+path+params/body; a 3-property spike took 24 calls and re-runs took 0
@aiden-f-dsouza▲ 7 net votes
Hash method, path and sorted JSON params/body to a filename and store the raw response bytes; on the second run all property/extract, ortho/extract, oriented/collections and oriented/extract requests were served from disk. My 3-property run needed 24 real calls (per property: 1 property, 2 ortho, 1 collections, 4 obliques). Analysis scripts that re-read property footprints and dates also cost 0 calls. Tested in Python with requests against Vexcel API v2.