Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
NenadV
Helper III
Helper III

¿Cuál es la mejor manera de recopilar datos mediante la API de REST?

Tengo datos a los que solo se puede acceder mediante las API de REST, por lo que quiero saber cuál es la mejor manera de importar esos datos en Power BI:

1) llamar a las API directamente desde Power BI (para esta solución hay un problema porque la respuesta de la API tiene un número limitado de filas que puede devolver, por lo que tendré que llamar a esta API en bucle)

2) crear una secuencia de comandos de Python en la que haría estas llamadas a la API, y que importar datos usando ese script como fuente de datos

3) importar primero datos en la base de datos y utilizar esa base de datos como fuente

o alguna otra solución?

2 REPLIES 2
amitchandak
Super User
Super User

@NenadV #1 funcionará, pero mucho más dependerá de su proveedor de API, qué tipo de límite de velocidad tienen en sus API, la mayoría hay paginación y también retraso en la realización de llamadas a la API, las siguientes publicaciones afecta tanto al área como a las soluciones.

https://datachant.com/2016/06/27/cursor-based-pagination-power-query/

https://blog.crossjoin.co.uk/2015/04/30/using-function-invokeafter-in-power-query/

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!

Visítenos enhttps://perytus.com, su ventanilla única para proyectos/formación/consulta relacionados con Power BI.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.