API request parser