Functions to retrieve data.
Code to save endpoints and keys to seperate collections.