How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Treat the Internet Like Your Own Living Database

calendar_today July 16, 2020 person Andy Lovell domain datafiniti

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.

<hr /><p>Treat the Internet Like Your Own Living Database was originally published in Knowledge from Data: The Datafiniti Blog on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>

open_in_new Read original post