Update api.py

Allow passing last updated date via API