Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Good afternoon everyone,
I would like to know if anyone has used the BPstat Data API from Banco de Portugal?
I appreciate any help you can give me
API INFO
https://bpstat.bportugal.pt/data/docs
Solved! Go to Solution.
Hi @ngomes,
Perhaps you can try to use a web connector to get data from that API, it allows you to send tokens in the request header/body when working with 'anonymous' mode:
let
authKey = "xxxxx",
url = "https://bpstat.bportugal.pt/data/v1/",
body = "xxxxxx",
GetJson =
Web.Contents(
url,
[
Headers = [
#"Authorization" = authKey,
#"Content-Type" = "application/json"
],
RelativePath = "xxxxxx/xxxxx",
Content = Text.ToBinary(body)
]
),
token = Json.Document(GetJson)[access_token],
series_id = "xxxxxx",
Result =
Web.Contents(
url,
[
Headers = [
#"Content-Type" = "application/json",
Authorization = "Bearer " + token
],
RelativePath = "xxxxxx/xxxxx",
Query = [
lang = "EN",
series_ids = series_id
]
]
)
in
ResultRegards,
Moonlight
Hi @ngomes,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @ngomes - Probably you can share more details. However, you can definitely try with the Web connector in Power BI Desktop. Just be careful of the privacy level you are selecting in Power BI Desktop to make sure it is similar to what your dataset will experience in Power BI Service. Here is a helpful link you can visit: Understand Power BI Desktop privacy levels - Power BI | Microsoft Learn.
Hi @ngomes,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or Accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @ngomes,
Perhaps you can try to use a web connector to get data from that API, it allows you to send tokens in the request header/body when working with 'anonymous' mode:
let
authKey = "xxxxx",
url = "https://bpstat.bportugal.pt/data/v1/",
body = "xxxxxx",
GetJson =
Web.Contents(
url,
[
Headers = [
#"Authorization" = authKey,
#"Content-Type" = "application/json"
],
RelativePath = "xxxxxx/xxxxx",
Content = Text.ToBinary(body)
]
),
token = Json.Document(GetJson)[access_token],
series_id = "xxxxxx",
Result =
Web.Contents(
url,
[
Headers = [
#"Content-Type" = "application/json",
Authorization = "Bearer " + token
],
RelativePath = "xxxxxx/xxxxx",
Query = [
lang = "EN",
series_ids = series_id
]
]
)
in
ResultRegards,
Moonlight
looks like a standard anonymous API with load throttling.
Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 53 | |
| 44 | |
| 42 | |
| 39 | |
| 34 |