davemachado / public-api

Public API for the public-apis Github project

Home Page:https://api.publicapis.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Pagination

dillonemorris opened this issue · comments

I am building out a UI where you can filter the API's by category etc. I'd like to show all of the API entries on the landing page but only 20 or so can show on the screen at a time. It's sub-optimal to fetch all 650~ entries up front. It would be more performant to fetch 20 and then lazily fetch them if the user scrolls down.

Maybe pagination is already supported but it's not in the documentation, please advise.

I thought I'd share what I have so far. I'm pretty stoked on it and appreciate your work in building the API. Here's a screenshot (filtering not in place yet).

Screen Shot 2020-12-22 at 9 17 08 AM

@davemachado I'm going to close this issue as I found I no longer need pagination. Fetching all of the entries up front isn't too expensive in any case. Here's an updated screenshot on where I'm at with the app, I thought I'd share:
Screen Shot 2021-01-07 at 4 53 03 PM

Hopefully it'll provide a nice way to browse through all of the API's.

ezoic increase your site revenue