One common challenge when working with APIs in Power BI is handling pagination – especially when dealing with APIs that return more data than can be fetched in a single request. But what happens when an API doesn’t paginate?
In this post, I’ll walk you through how to connect to an API without pagination, using the One Piece API as an example. I’ll explain the process, share some tips, and help you get your data flowing smoothly into Power BI.
What’s the Deal with Pagination?
First, let’s quickly cover what pagination is. Many APIs limit the number of records returned in a single request to improve performance and avoid overloading the server. For instance, you might only be able to fetch 50 characters from an API at a time, requiring multiple calls to retrieve the full dataset.
But not all APIs use pagination. In the case of the One Piece API, you can pull all the data at once – a straightforward scenario that skips the need for any special logic to handle multiple pages.
Connecting Power BI to the One Piece API
To connect Power BI to an API without pagination, the process is relatively simple. Here’s a quick example using the One Piece API, which contains rich information about characters, episodes, and more from the manga and anime.
Step 1: Get the API URL
Start by grabbing the base URL for the One Piece API. This will look something like this:
For this example, we’ll fetch all the characters. Since there’s no pagination, the API returns everything in one go.
Step 2: Connect in Power BI
- Open Power BI and select Get Data.
- Choose Web as the data source.
- Paste the One Piece API URL in the dialog box.
- Set the Authorization.
- Connect.
Power BI will fetch the entire dataset in a single request. Since there’s no pagination, you don’t need to worry about pulling additional pages of data.


Step 3: Transform the Data
Once Power BI pulls in the data, you’ll likely need to transform it into a usable format. Here’s how to get it cleaned up:
- Use Power Query to break down the data into more manageable tables (e.g., separate characters, episodes, or abilities into different tabs).
- Apply necessary transformations like removing unnecessary columns, renaming headers, and adjusting data types.
For example, you might want to filter out characters who aren’t part of the main crew or only focus on those with a bounty over a certain amount.
Step 4: Visualize the Data
Now that you’ve imported the data into Power BI, it’s time to create some exciting visuals! Want to explore how many pirate crews exist in the story’s history? Or perhaps you’re curious about how many islands have been explored? You can even find out which character has the highest bounty and examine their characteristics, such as their age and devil fruit abilities.
With everything already in Power BI, you can now create charts and tables. Because all the data was pulled in one shot, you’re free to manipulate it however you like without having to handle pagination logic.
Key Takeaways
- No Pagination, No Problem: Connecting to an API without pagination simplifies things – you only need to make one request, and all the data is right there.
- API Size Matters: Be careful with APIs that return large amounts of data. Without pagination, you could end up pulling in more than Power BI can handle at once, depending on the limits of your data source.
- Transform to Fit: Always take time to clean and transform your data. APIs usually return more information than you need, so use Power Query to focus on what matters most for your analysis.
Using APIs without pagination can be a smooth process, especially when you’re working with a relatively small dataset like the One Piece API. It’s quick, easy, and gets the job done without needing to handle multiple calls for the same data.
So, if you’re diving into the world of anime data or just learning how to connect APIs with Power BI, give it a try with the One Piece API! Let your creativity show.

