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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Tilly01Hill
Regular Visitor

Importing Data from a Website

I need to import data from a specific website every day. The only difference to the parameters from day to day is the date. How can I store the import parameters for the API, HTTP Header etc., so that I don't have to create them manually every day?

1 ACCEPTED SOLUTION
v-karpurapud
Community Support
Community Support

Hi @Tilly01Hill 


Thank you for reaching out to the Microsoft Fabric Community.

 

To avoid rebuilding the API request every day, you can set up parameters in Power Query or Microsoft Fabric pipelines. In Power Query (Power BI Desktop or Fabric Dataflows Gen2), create parameters for elements like the base URL, headers, API key, and date. You can generate the date dynamically so it updates automatically with each refresh, such as by using:Date.ToText(Date.From(DateTime.LocalNow()), "yyyy-MM-dd"). Use these parameters in Web.Contents to build the request without needing manual changes. You can securely manage credentials and headers in Power BI Service under Data Source Credentials, and schedule daily refreshes after publishing.

 

For Microsoft Fabric Data Factory, set pipeline parameters (including a dynamic date) and pass them to an HTTP connector or Copy Activity, then schedule the pipeline to run daily. This method aligns with Microsoft’s recommended practices for parameterized queries and scheduled refreshes. For further details, refer to Web.Contents and Fabric Data Factory pipelines.
 

I hope this information is helpful. If you have any further questions, please let us know. we can assist you further.

 

Regards,

Microsoft Fabric Community Support Team.
 

View solution in original post

3 REPLIES 3
v-karpurapud
Community Support
Community Support

Hi @Tilly01Hill 


Thank you for reaching out to the Microsoft Fabric Community.

 

To avoid rebuilding the API request every day, you can set up parameters in Power Query or Microsoft Fabric pipelines. In Power Query (Power BI Desktop or Fabric Dataflows Gen2), create parameters for elements like the base URL, headers, API key, and date. You can generate the date dynamically so it updates automatically with each refresh, such as by using:Date.ToText(Date.From(DateTime.LocalNow()), "yyyy-MM-dd"). Use these parameters in Web.Contents to build the request without needing manual changes. You can securely manage credentials and headers in Power BI Service under Data Source Credentials, and schedule daily refreshes after publishing.

 

For Microsoft Fabric Data Factory, set pipeline parameters (including a dynamic date) and pass them to an HTTP connector or Copy Activity, then schedule the pipeline to run daily. This method aligns with Microsoft’s recommended practices for parameterized queries and scheduled refreshes. For further details, refer to Web.Contents and Fabric Data Factory pipelines.
 

I hope this information is helpful. If you have any further questions, please let us know. we can assist you further.

 

Regards,

Microsoft Fabric Community Support Team.
 

Hi. Thanks for your very detailed response. 

I'm very new to Power BI Desktop - how do I find Power Query from my Power BI Homescreen?

 Thanks

Hi @Tilly01Hill 


In Power BI Desktop, Power Query is accessed through the Transform Data option. From your Home screen, click Home → Transform Data, and this will open the Power Query Editor.
 

Inside the editor, you can create parameters by selecting Manage Parameters → New Parameter, and then use them in your queries. This is where you’ll define elements like the base URL, headers, and dynamic date for your API call.

 

Once you’ve set up the query, you can publish the report to the Power BI Service and configure scheduled refresh so it runs automatically every day.

Here is the official Microsoft Learn documents that will help you

Query Overview in Power BI Desktop - Power BI | Microsoft Learn
Parameters - Power Query | Microsoft Learn

Regards,

Microsoft Fabric Community Support Team.
 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.