Users can follow these simple steps to query our data in Python. These functionalities are available to trial users, albeit with some data limitation.
For some use cases, an automated access to our data may be warranted. We have compiled a few simple scripts to access and read the News Inflation Pressure Indices databases as well as the Inflation NewsBot.
If you don't have your login details or the URLs, please request them from us.
Make sure your usage is in line with your Data License, in particular make sure that the data remains accessible only by authorised users.
Access NIPI csv files
Our examples rely on the Pandas library, for its simplicity, but other csv reader should also do the work.
First, import the required libraries:
Input your login credentials and the file location:
To obtain the NIPI data:
This will return a Dataframe with daily dates as the row index and the series short code as column names. The series code names can be found in the dictionary file NIPIdatadic.json on the NIPI page.
The daily Inflation NewsBot is currently available in the following formats: email, web page and JSON endpoint.
To access the JSON endpoint, you will also need your credentials and the associated URL. Using the requests library:
The returned "data" is a dictionary.
Don't hesitate to reach out for feedback or questions.