check for api target