Add api request functionality