Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Answered

Dynamically update URL with tomorrow date

(0) ShareShare
ReportReport
Posted on by 9

Hello,

 

In excel i have a power query that fetches data from a web JSON API. What i would like to be able to do is to append the URL of this API so that it is automatically appended to include tomorows date at the end.

 

Here is how i currently call the api:

 

Source = Json.Document(Web.Contents("https://api.football-data-api.com/todays-matches?key=xxxxx")),

 

What i need to do is add, in this format, the date of tomorrows date to the end of the API address.

 

&date=YYYY-MM-DD

 

So the end result would look like this:

 

Source = Json.Document(Web.Contents("https://api.football-data-api.com/todays-matches?key=xxxxx&date=YYYY-MM-DD")),

 

Is this possible?

  • Verified answer
    mattadams84 Profile Picture
    9 on at
    Re: Dynamically update URL with tomorrow date

    After some searching, i found my own solution :

    Source = Json.Document(Web.Contents("https://api.football-data-api.com/todays-matches?key=xxxxx&date=" & Date.ToText(Date.AddDays(Date.From(DateTime.LocalNow()), 1), "YYYY-MM-DD"))),

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Query

#1
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

#2
SD-13050734-0 Profile Picture

SD-13050734-0 6

#3
Rhys @ Empower 365 Profile Picture

Rhys @ Empower 365 2

Overall leaderboard

Featured topics