full api /get functionality