got api working