api now retrieves pages
make sure to collect all links