This is a simple Python tool to get data from the RAM Data Library API in CSV format.
Currently this tools query three API endpoints:
user_list: Get list of users registered in Data Librarypackage_list: Get survey codes (YYMM_ISO3_SURVEYTYPE) for all surveys available in the platformcurrent_package_list_with_resources: Complete information about surveys in Data Library, including name of survey, survey code, country and uploader
For more information on the RAM Data Library API, consult the documentation
- Make sure you have Python installed on your machine.
- Get an API key from your Data Library account
- Add your API key to the api_key.py file. Do not forget to add this file to the .gitignore!
- Run main.py
Quick tip
If you're stuck, use the help() function in the DataLibraryData class for information about usage