get api working