use rest api instead of crawling html