api splite succeed
create api.py to manage api calls