Skip to content

Commit

Permalink
Add docs re per_page parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Hunt committed May 4, 2018
1 parent 2ad5afa commit f86226b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper.js
Expand Up @@ -50,6 +50,7 @@ function run(db) {

// If no key, we may be running on local.
console.log("api_key defined?", api_key !== null);
// per page limit is 100 - is this documented anywhere?
fetchPage("https://api.digitalnz.org/records.json?and[dc_type]=Name+Authority&and[collection]=TAPUHI&record_type=1&fields=title,record_id&sort=syndication_date&direction=desc&per_page=100&api_key=" + api_key, function (data) {

//console.log("data=", data);
Expand Down

0 comments on commit f86226b

Please sign in to comment.