API:Restricting API usage