scripts: Add method to process API requests