working file of API usage