Python Syntax For Api Request Pass Database