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 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
Hi everyone,
We're currently downloading reports manually from Wayfair Partner Home and loading the Excel files into Power BI.
I discovered that Wayfair has a Developer Portal with GraphQL APIs, but I don't currently have API permissions from my admin.
Has anyone successfully connected Wayfair data to Power BI?
I'm interested in:
Would appreciate hearing how others have set this up.
Thanks!
Hi @Amirulfahmi6,
May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.
Thank you
Use Power Query's Web.Contents to authenticate and pull data directly from Wayfair's GraphQL API.
let
clientId = "YOUR_CLIENT_ID",
clientSecret = "YOUR_CLIENT_SECRET",
tokenResponse = Web.Contents(
"https://sso.auth.wayfair.com/oauth/token",
[
Headers = [#"Content-Type" = "application/json"],
Content = Json.FromValue([
grant_type = "client_credentials",
client_id = clientId,
client_secret = clientSecret
])
]
),
accessToken = Json.Document(tokenResponse)[access_token]
in
accessToken
let
token = accessToken,
body = Json.FromValue([
query = "query getDropshipPurchaseOrders($limit: Int32) { getDropshipPurchaseOrders(limit: $limit) { id poNumber poDate orderId supplierName customerName } }",
variables = [ limit = 100 ]
]),
response = Web.Contents(
"https://api.wayfair.com/v1/graphql",
[
Headers = [
#"Content-Type" = "application/json",
Authorization = "Bearer " & token
],
Content = body
]
),
data = Json.Document(response)[data][getDropshipPurchaseOrders],
tbl = Table.FromList(data, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
expanded = Table.ExpandRecordColumn(tbl, "Column1",
{"id", "poNumber", "poDate", "orderId", "supplierName", "customerName"})
in
expanded
Proud to be a Super User! | |
Hi @Amirulfahmi6,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.
Thank you.
Hi @Amirulfahmi6,
Thanks for reaching out to the Microsoft Fabric Community forum.
Based on the official Microsoft documentation, Power Query's Web.Contents function retrieves data from web services. It supports supplying additional HTTP headers, sending POST requests by using the Content option, and configuring request options such as Query and Timeout.
The Create an API for GraphQL in Fabric documentation also explains that after creating an API, you have an active GraphQL API endpoint that is ready to receive requests. When you connect a data source, Fabric automatically generates the GraphQL schema based on the selected data. Once the schema is generated, you can start prototyping GraphQL queries or mutations, and the API editor can be used to test those queries.
For more details, please refer to the below official documentation:
Create and add data to an API for GraphQL - Microsoft Fabric | Microsoft Learn
Web.Contents - PowerQuery M | Microsoft Learn
I hope this helps. Please feel free to reach out if you have any further questions.
Thank you.
.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.