API can pull only 20 posts

It does, but you can add &page=2 to get posts 1001-2000, &page=3 to get posts 2001-3000, and so on to get all the posts. You’ll need to do some math on the value of posts_count in the JSON to determine how many pages there are.