Check API validity