Valid latest.json parameters

(Adam Capriola) #1

I’m working on pulling the “latest” feed onto the homepage of my site (which I think will look great – once I finish my redesign I’ll share the integration), and I’m trying to figure out if there’s a way to set the number of topics that should appear.

By default, it seems like 30 topics show on each “page”:

And each page has a link to the next one:

So, since it appears you can add parameters, I did some searching and found more listed here, I think. I want to set per_page to something more than 30. I know I could make a call to each page, but it would be so much more convenient if I could just make one single call to retrieve the desired number of topics.

Is this doable? I couldn’t get the output to budge with anything like this:

(Jeff Atwood) #2

Apparently not. You can set page size in site settings, though, but perf will be really bad at anything over 40.

(Mittineague) #3

I’ve had somewhat better luck with this page

For example, this works

http://<site domain here>.com/latest.json?max_posts=1