check requested api method