Ways to Control Your Mesonet API Spending
With our new pricing model just released, some existing API users may notice that their usage patterns may begin incurring small or modest charges when pricing goes into effect in early 2019. For many users, there are ways to modify your usage patterns to stay within our free usage tier, while still getting access to our immense real-time dataset.
Controlling spending may require optimizing either your service unit usage, your total number of requests, or both.
Reduce data duplication
There are many flavors of data duplication which can increase your service unit consumption without giving you any additional information. Simple optimizations such as reducing your request frequency to at or below that of the stations you are requesting can keep both your service units and request counts lower.
Filter your result stations*
If you are using over 5 million SUs requesting data for an area, consider reducing the number of stations you allow to return in a request. There are many ways to reduce your result stations, from filtering to specific mesonets via the
network argument to limiting stations fetched by observed variables using
vars. You can use the metadata service to identify which stations are returned for given filters without incurring any service unit charges.
vars argument to get just the variables you need*
Like requesting multiple stations, allowing data returns to include all the sensed variables can really grow your service unit consumption. If you are only interested in a few variables, consider specifying them explicitly in the vars argument, and you won’t receive more variables than you requested.
Use the download tool
For certain types of historical requests, the download service could be a better tool to use than the API. If you are looking for past data from a relatively small number of stations, your 3-million hour monthly limit can get 20 year station history from 17 different stations at once.
Get in touch
We can try to work with you to help you understand your usage patterns. We have worked hard to define a no-cost usage tier which reflects a modest amount of data usage, and we are happy to help you try and stay under that threshold if possible. Contact Us today.
* The number of stations returned (and the variables those stations measure) for given parameters can change over time. If your usage is sensitive to these variations, be sure to regularly inspect your API responses and review your usage to prevent surprises.