Treat the Internet Like Your Own Living Database

Andy Lovell
Knowledge from Data: The Datafiniti Blog
2 min readJul 16, 2020

--

Introducing pagination for the Datafiniti API

Today Datafiniti is adding a brand new feature to our API — the ability to paginate through search results from any of our databases in real-time. Previously, if you had made an API call through Datafiniti, you were limited to either (a) a maximum of the 1,000 most relevant search results, or (b) downloading a data set in bulk through a batch process. With the introduction of pagination, you can now scroll through as many results as you want in real-time.

How to Use Pagination

Using pagination on the API is easy. Let’s say you initially run a search like:

POST https://api.datafiniti.co/v4/products

{

“query”: “brand:Apple”,

“format”: “json”

}

This would give you the 10-most relevant results for Apple-branded products. If you want to then get the next 10-most relevant results, you just need to do this:

POST https://api.datafiniti.co/v4/products/paginate?page=2&limit=10

{

“query”: “brand:Apple”,

“format”: “json”

}

You can check out more detailed documentation here:

A Living Database for the Entire Internet

With the introduction of pagination, you can now create a live connection between your application and Datafiniti. As an example, if you have a search feature that lets users scroll through data on businesses, people, products, or property, you can run that search directly through our API. To your user, it will seem like their browsing through the entire Internet directly from your application.

Want to try out this new feature for yourself? Just sign up for your own Datafiniti account here.

--

--