Twitter (X) Data in Power BI: a Refreshable Power Query Connection

- Power BI has no native Twitter (X) connector; use Power Query
Web.Contentsagainst an X data API and parse the JSON. - Keep the base URL static (
https://api.twitterapi.io) and pass the path and parameters viaRelativePathandQueryso scheduled refresh works in the service. - Send the key in
Headerswith Anonymous credentials: Microsoft says the Web API credential type is not supported in the Power BI service, andApiKeyNameonly puts a key in the query string. - Page with
List.Generateovernext_cursoruntilhas_next_pageis false, and split ranges into one-day windows: in our test one 7-day window returned 160#PowerBIposts, seven 1-day windows returned 360. - Shared capacity allows 8 scheduled refreshes a day, Premium / PPU / Fabric 48. At 48 a day,
#PowerBIcosts $99.79/month as a full 7-day reload and $14.26/month with incremental refresh. - Pricing: $0.15 per 1,000 posts returned; a window with no posts is billed the 15-credit minimum ($0.00015). The official X API lists $0.005 per post read.
Search for a way to put Twitter data in Power BI and you mostly find two things: a Microsoft blog post from 2016 with a .pbit template that reads a CSV you export from Twitter Analytics, and paid sync services that copy X data into a dataset for you. The first stopped being a live option a long time ago (Microsoft has archived the post and marked it noindex, and the template only ever read a file you downloaded by hand). The second works, but you hand your data flow to another vendor.
This guide takes the middle road a Power BI developer can own end to end: a Power Query M function that calls an X data API directly, returns a typed table, refreshes on a schedule in the Power BI service without a gateway, and works with incremental refresh. Every Power BI fact here was checked on learn.microsoft.com this session. The HTTP calls behind the M code were run for real against six dashboard-style queries; the M code itself was written from Microsoft's function reference and was not executed inside Power BI for this article, so test it in Power BI Desktop before you publish.
The study numbers answer the question that usually comes after "does it work": what does each refresh pull and cost? The answer depends far more on how you shape the refresh than on how many refreshes you schedule.
$99.79 vs $14.26
What happened to the Twitter connector and templates for Power BI
Microsoft's Power Query connector index, which lists every connector available to Power BI semantic models, has no Twitter or X connector. The material people still find for "twitter power bi" is older and worth understanding before you rebuild it.
The 2016 Twitter Analytics template. A Microsoft blog post, now in the learn.microsoft.com archive, shipped TwitterAnalyticsDashboardTemplate.pbit. You exported up to 90 days of your own Tweet activity from analytics.twitter.com as a CSV and pointed the template's Source step at the file. When a reader asked how to refresh it automatically, the author replied that you would need to switch the data source to a live API. That reply is still the right answer.
Content packs and template apps. Power BI's service content packs were superseded by template apps, partner-built packages listed in the Power BI apps marketplace. Microsoft's template apps overview lists examples such as Microsoft Project and Microsoft 365 Usage Analytics; it lists no Twitter or X app, and it notes that template apps only accept data sources that support cloud scheduled refresh.
Sync services and drivers. Several vendors sell X-to-Power BI pipelines or ODBC-style drivers. They suit teams that want a managed pipeline. This page covers the do-it-yourself path: one M function, your own key, and a cost you can predict from the numbers below.
Automation is a different product. If you want an action when a post appears (send a Teams message, add a row to a list), that is Power Automate, not Power BI. Our Power Automate guide covers that route; this page is about reports.
Refresh-safe URLs, and where the API key goes
Power BI Desktop will happily refresh almost any M query on your machine. The Power BI service is stricter. Microsoft's data refresh article defines a dynamic data source as one whose connection details "can't be determined until Power Query runs its query", gives "the URL of a web service" as an example, and says that models with dynamic data sources usually can't be refreshed in the service.
The same article names the exception that matters here: dynamic sources can be refreshed "when using the RelativePath and Query options with the Web.Contents M function." The Web.Contents reference describes RelativePath as text that is appended to the base URL before the request is made, and its first example uses RelativePath and Query to "dynamically query a static base URL".
So the rule for an X data query is simple. The first argument to Web.Contents is always the literal https://api.twitterapi.io. The endpoint path goes in RelativePath, every changing value (search text, cursor, time window) goes in the Query record, and Power Query escapes them for you. Do not build the URL with & string concatenation: that is the pattern that triggers the dynamic data source warning.
You can check before you publish. Microsoft's article says to open Data source settings in Power Query Editor, choose Data sources in current file, and look for the warning that a dynamic data source can't be refreshed in the service. If the warning is absent, the service can schedule the model.
No gateway. Because the source is a public HTTPS endpoint, the service can reach it directly. Microsoft's refresh article says cloud data sources don't require a data gateway when Power BI can establish a direct network connection; you set credentials under Data source credentials in the semantic model settings instead.
Our endpoints read the key from an X-API-Key request header. Power Query offers two key-related features, and neither fits as you might expect.
ApiKeyName puts the key in the query string. The Web.Contents reference says it names the URL parameter that carries the key, with the value stored in a Web API credential. Our API expects a header, so this option does not apply.
The Web API credential type is not supported in the service. The Power Query Web connector page says the Web API authentication type works in Power BI Desktop and Excel "but isn't supported in the Power BI service". Even for APIs that accept a query-string key, a model built on it will not refresh after you publish.
What works: pass the key in the Headers record (Headers = [#"X-API-Key" = ApiKey]) and set the data source credential to Anonymous. Store the key in a Power Query text parameter named ApiKey instead of typing it into each query, so you can rotate it in one place and change it in the service under the model's parameters.
The trade-off to accept consciously: anyone who can open the .pbix or edit the model can read a parameter value. Use a key dedicated to reporting, give the workspace only to people who should hold it, and rotate it from the dashboard if the file travels. If that is not acceptable, the alternative is a small scheduled job (the Python script later on this page) that writes a file to SharePoint or OneLake, and Power BI reads the file instead of the API.
The M function: one search window, every page, a typed table
Create the function in Power Query Editor with New Source > Blank Query, open the Advanced Editor, paste the code below and rename the query fnXSearch. Create a text parameter ApiKey first. The function takes a search query (any operator our search supports, such as from:, @handle, #hashtag, lang:en, -filter:replies) and a time window, and returns one row per post.
How the paging works. List.Generate takes an initial function, a condition, a next function and an optional selector. The initial state fetches the first page with an empty cursor, which is what our docs specify for page one. The next function requests the following page with next_cursor while has_next_page is true, and otherwise sets the state to null, which stops the loop. The selector keeps only each page's tweets list. A 50-page guard stops a runaway loop inside one window.
Why since_time and until_time live inside the query text. Our search has no separate date parameters; the time window is written into the search string as since_time: and until_time: with Unix seconds. That keeps the window inside the Query record, so the source stays static.
Dates. X timestamps arrive as text like Thu Oct 16 12:34:56 +0000 2026. ParseX turns them into a UTC datetime, which you need both for date tables and for the incremental refresh filter. Every field the function reads (id, createdAt, text, lang, likeCount, retweetCount, replyCount, quoteCount, viewCount, isReply, author.userName, author.followers) matches the response shape we observed in the study.
Timeout. Web.Contents waits 100 seconds by default; the function sets two minutes per page, which is generous for a 20-post page.
// fnXSearch: one Twitter (X) Latest search window, every page, as a typed table.
// Needs a text parameter named ApiKey (Manage Parameters). Base URL stays static so the
// Power BI service can refresh it; RelativePath and Query carry everything that changes.
(searchQuery as text, fromTime as datetime, toTime as datetime) as table =>
let
BaseUrl = "https://api.twitterapi.io",
Epoch = #datetime(1970, 1, 1, 0, 0, 0),
ToUnix = (dt as datetime) as text =>
Text.From(Number.RoundDown(Duration.TotalSeconds(dt - Epoch))),
FullQuery = searchQuery
& " since_time:" & ToUnix(fromTime)
& " until_time:" & ToUnix(toTime),
GetPage = (cursor as text) as record =>
Json.Document(
Web.Contents(
BaseUrl,
[
RelativePath = "twitter/tweet/advanced_search",
Query = [query = FullQuery, queryType = "Latest", cursor = cursor],
Headers = [#"X-API-Key" = ApiKey],
Timeout = #duration(0, 0, 2, 0)
]
)
),
Pages = List.Generate(
() => [page = GetPage(""), n = 1],
each [page] <> null,
each
if Record.FieldOrDefault([page], "has_next_page", false) = true
and Text.Length(Record.FieldOrDefault([page], "next_cursor", "") ?? "") > 0
and [n] < 50
then [page = GetPage([page][next_cursor]), n = [n] + 1]
else [page = null, n = [n] + 1],
each Record.FieldOrDefault([page], "tweets", {}) ?? {}
),
Tweets = List.Combine(Pages),
PostFields = {"id", "createdAt", "text", "lang", "likeCount", "retweetCount", "replyCount",
"quoteCount", "viewCount", "isReply"},
Rows = List.Transform(
Tweets,
(t) =>
Record.SelectFields(t, PostFields, MissingField.UseNull)
& [
authorUserName = Record.FieldOrDefault(t[author]? ?? [], "userName", null),
authorFollowers = Record.FieldOrDefault(t[author]? ?? [], "followers", null)
]
),
Columns = {"id", "createdAt", "text", "lang", "likeCount", "retweetCount", "replyCount",
"quoteCount", "viewCount", "isReply", "authorUserName", "authorFollowers"},
Raw = Table.FromRecords(Rows, Columns, MissingField.UseNull),
// "Thu Oct 16 12:34:56 +0000 2026" -> datetime (UTC)
Months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"},
ParseX = (t as text) as datetime =>
let
p = Text.Split(t, " "),
mo = List.PositionOf(Months, p{1}) + 1,
hms = List.Transform(Text.Split(p{3}, ":"), Number.From)
in
#datetime(Number.From(p{5}), mo, Number.From(p{2}), hms{0}, hms{1}, hms{2}),
Parsed = Table.TransformColumns(Raw, {{"createdAt", ParseX, type datetime}}),
Typed = Table.TransformColumnTypes(
Parsed,
{{"id", type text}, {"text", type text}, {"lang", type text},
{"likeCount", Int64.Type}, {"retweetCount", Int64.Type}, {"replyCount", Int64.Type},
{"quoteCount", Int64.Type}, {"viewCount", Int64.Type}, {"isReply", type logical},
{"authorUserName", type text}, {"authorFollowers", Int64.Type}}
)
in
TypedOne-day windows and incremental refresh
Our study turned up a practical reason to keep windows short. For the same 7 days of #PowerBI posts, one 7-day window paged to the end and returned 160 posts, reaching back only to hour 108.3 of the 168-hour window. The same range split into seven 1-day windows returned 360 unique posts. For #dataviz lang:en the gap was 20 versus 144, and the single "power bi" window covered only the newest 38.3 hours. Deep cursor chains on one long window can end early, so split ranges into days before you page through them.
Incremental refresh already wants that shape. Microsoft's incremental refresh overview says the feature works on Power BI Pro, Premium per user, Premium and Embedded; that it filters with two datetime parameters named exactly RangeStart and RangeEnd; and that for web sources those parameters "can be integrated into the HTTP request". It also says the incremental refresh toggle is unavailable unless the table's expression filters on both parameters.
The table query below does both. It creates one window per day between RangeStart and RangeEnd, calls fnXSearch for each, removes duplicates by post id, and then filters createdAt against the two parameters so Power BI Desktop lets you define the policy. Create RangeStart and RangeEnd as Date/Time parameters (two or three days apart while you build, to keep Desktop loads small) and a text parameter SearchQuery.
In the policy dialog, archive as many days or months as your report needs and set the incremental period to 1 day. Desktop will likely show a warning that it cannot confirm the query folds; that is expected for a web source, and the date filter is already in the HTTP request, so the service only asks the API for the days it refreshes. The first refresh after publishing loads the whole archive once; after that, each refresh re-queries only the latest day.
Mind the time limits. Microsoft's refresh docs cap a refresh at two hours on shared capacity and five hours on Premium. Pages come back in well under a second when the API is healthy, so this is only a concern for very large first loads; split them across several manual refreshes by widening RangeStart step by step if needed.
// Posts table: calls fnXSearch once per day between RangeStart and RangeEnd.
// RangeStart / RangeEnd are the reserved datetime parameters incremental refresh overrides.
// SearchQuery is a text parameter, for example "#PowerBI" or "@PowerBI -from:PowerBI".
let
OneDay = #duration(1, 0, 0, 0),
DayStarts = List.Generate(() => RangeStart, each _ < RangeEnd, each _ + OneDay),
PerDay = List.Transform(
DayStarts,
each fnXSearch(SearchQuery, _, List.Min({_ + OneDay, RangeEnd}))
),
Combined = Table.Combine(PerDay),
Deduped = Table.Distinct(Combined, {"id"}),
// The explicit RangeStart / RangeEnd filter is what enables the incremental refresh toggle.
InRange = Table.SelectRows(Deduped, each [createdAt] >= RangeStart and [createdAt] < RangeEnd)
in
InRangeWhat each refresh pulls and costs: six dashboard queries measured
We ran the exact requests the M code makes for six typical dashboard queries over one 7-day window: brand mentions of three organization accounts, two hashtags and one keyword. From posts per day we computed three refresh designs at Power BI's two scheduled-refresh ceilings. Full reload re-pulls the whole 7-day window on every refresh (what a plain import query does). Incremental 1-day re-pulls up to one day of posts per refresh (the policy above). New posts only asks only for the gap since the previous slot, which Power BI import cannot do on its own but a scheduled script appending to a file can.
Monthly cost at 48 scheduled refreshes a day (Premium, PPU or Fabric capacity):
Monthly cost at 8 scheduled refreshes a day (shared capacity, the Pro ceiling):
The takeaway. For #PowerBI, moving from a full 7-day reload to incremental refresh cuts the 48-a-day bill from $99.79 to $14.26, and from $16.63 to $2.38 at 8 a day. For the busier keyword "power bi" (about 232 posts a day) the 48-a-day full reload reaches $352.30 a month against $50.33 incremental. Quiet brand-mention queries cost cents either way: the floor is the 15-credit minimum ($0.00015) each window is billed when it returns nothing.
Pages per refresh matter for speed as much as cost. A full 7-day reload of #PowerBI takes about 35 pages per refresh, the incremental day about 5; the "power bi" full reload takes about 91. Before your first payment the API allows 0.2 requests per second, so a 91-page refresh would run several minutes and can hit 429 responses that fail the refresh; once paid, the limit is 20 requests per second.
Cost formula used throughout: posts returned times $0.00015 ($0.15 per 1,000 posts), plus the closing page that every window ended with in our runs, billed at the 15-credit minimum. Pay only for the data returned; there is no subscription required.

Columns worth modeling, from the posts we pulled
Across the 839 unique posts the study returned, the fields a dashboard usually slices on looked like this:
A minimal model. One Posts fact table from the M function, a Date table marked as a date table and related on the date part of createdAt, and optionally an Authors dimension keyed on authorUserName if you analyze brand mentions. Store id as text: post ids exceed the precision of a decimal number column.
The measures below cover the standard tiles: volume, engagement, engagement per 1,000 views, reply share and a rolling 7-day count.
Posts = COUNTROWS ( Posts )
Engagements = SUMX ( Posts, Posts[likeCount] + Posts[retweetCount] + Posts[replyCount] + Posts[quoteCount] )
Engagement per 1k views =
DIVIDE ( [Engagements], SUM ( Posts[viewCount] ) ) * 1000
Share of replies =
DIVIDE ( CALCULATE ( [Posts], Posts[isReply] = TRUE () ), [Posts] )
Posts 7d =
CALCULATE ( [Posts], DATESINPERIOD ( 'Date'[Date], MAX ( 'Date'[Date] ), -7, DAY ) )Test the HTTP calls first, or skip Power Query entirely
Debugging a failed refresh inside Power BI is slow. The Python script under Code example runs the same calls the M function makes (same endpoint, same X-API-Key header, same since_time / until_time operators, same cursor loop, same one-day windows), prints posts, pages and an estimated monthly cost at 8 and 48 refreshes, and writes x_posts.csv.
Use it as a preflight. If the script returns zero posts, the search text is the problem, not Power Query. If it returns 401, the key is wrong. If it returns posts, paste the same query into the SearchQuery parameter.
Use it as the pipeline. If your organization does not allow API keys in model parameters, schedule the script (Task Scheduler, a cron job, an Azure Function), have it append new posts to a CSV or table in SharePoint or OneLake, and point Power BI at that file. This is also the only design that reaches the "new posts only" column of the cost tables, because the script can remember the last post id it saw.
Google stack instead? The same pattern works for Looker Studio and Google Sheets; see the related guides below. Our search operator syntax and response fields are the same regardless of which BI tool reads them.
Price and limits next to the official X API
Two rate cards, both per item returned. On ours, a search returns posts at $0.15 per 1,000 posts, and a window with nothing in it is billed the 15-credit minimum ($0.00015). On the official X API pay-per-usage rate card (docs.x.com/x-api/getting-started/pricing), a post read is $0.005, which is $5 per 1,000 posts, about 33 times $0.15. Pay-per-usage on X is capped at 3 million post reads per monthly billing cycle, with Enterprise above that.
One difference cuts the other way and belongs in a fair comparison: X's pricing page says resources are deduplicated within a 24-hour UTC day window, so re-reading the same post several times in one day is billed once (X calls it a soft guarantee). Our rate card bills every post returned, including a post a previous refresh already fetched that day. That is exactly why the refresh design section matters: with incremental refresh or a new-posts-only job, few posts are fetched twice.
Access: our endpoints need only an API key, no X developer account and no X login for reads. New accounts that pass the automatic bot check get free starter credits (no card, one per person or network, expiring after 31 days); see the pricing page for the current amount. Purchased credits never expire. Rate limits are 0.2 requests per second before the first payment and 20 once paid (50 on Scale, 500 on Business, up to 1,000 on request).
If you would rather pay a fixed monthly amount, subscriptions run from Starter at $29 to Business at $1,499 a month; the pricing page has what each includes.
How we collected this
Question. For typical Power BI dashboard queries on X data, how many rows and pages does each scheduled refresh pull, and what does it cost at 8 and 48 refreshes a day under three refresh designs?
Queries. @PowerBI -from:PowerBI, @MicrosoftFabric -from:MicrosoftFabric and @tableau -from:tableau (mentions of organization accounts), #PowerBI, #dataviz lang:en and "power bi", all on /twitter/tweet/advanced_search with queryType=Latest.
Window and sample. One fixed 7-day window per query, collected in 2026, written as since_time / until_time inside the query, plus the same 7 days split into 1-day windows for three queries. 839 unique posts, 99 requests in total (including ten one-page probes before the window was fixed), roughly $0.17 of credits.
How daily volume was estimated. For the two hashtags we used the median of the 1-day windows that paged to a natural end; for "power bi" the posts in the covered span divided by its hours, so it is a lower-bound style estimate; for the quiet mention queries the 7-day total divided by seven. Some 1-day windows returned a single full page and then stopped, or nothing at all, during a period when X search was degraded industry-wide; we excluded those from the medians.
What the sample cannot show. One week is not a season: launches and conferences spike hashtag volume. Costs scale linearly with posts, so multiply by your own query's volume. We did not run the M code inside Power BI Desktop or the Power BI service for this article and make no claim about refresh durations there; the numbers describe the HTTP calls the M code makes.
Privacy. Aggregates only. Search results include posts by private individuals, so raw pages were kept out of the repository; the committed sample is de-identified (no ids, URLs, text or handles). The organization accounts named in the queries are public brand accounts.

"""Run the exact HTTP calls the Power Query M function makes, outside Power BI.
Use it to (1) check your query and key before you paste the M code, (2) estimate what one
refresh pulls and costs, and (3) write a CSV that Power BI can import as a first version.
"""
import csv
import math
import os
import time
import requests
BASE = "https://api.twitterapi.io"
KEY = os.environ["TWITTERAPI_IO_KEY"] # your key from the dashboard
PRICE_PER_POST = 0.00015 # $0.15 per 1,000 posts returned
def search_window(query, start, end, max_pages=50):
"""All pages of one Latest search window [start, end) in Unix seconds."""
q = f"{query} since_time:{int(start)} until_time:{int(end)}"
cursor, pages, posts = "", 0, []
while pages < max_pages:
r = requests.get(
f"{BASE}/twitter/tweet/advanced_search",
headers={"X-API-Key": KEY},
params={"query": q, "queryType": "Latest", "cursor": cursor},
timeout=60,
)
if r.status_code == 429: # rate limit (0.2 requests/s before the first payment)
time.sleep(5)
continue
r.raise_for_status()
body = r.json()
pages += 1
posts.extend(body.get("tweets") or [])
cursor = body.get("next_cursor") or ""
if not body.get("has_next_page") or not cursor:
break
return posts, pages
def pull_days(query, days=7):
"""Split the range into 1-day windows, the same shape incremental refresh uses."""
end = time.time()
seen, rows, pages = set(), [], 0
for d in range(days):
w_end = end - d * 86400
posts, p = search_window(query, w_end - 86400, w_end)
pages += p
for t in posts:
if t["id"] in seen:
continue
seen.add(t["id"])
a = t.get("author") or {}
rows.append({
"id": t["id"], "createdAt": t["createdAt"], "lang": t.get("lang"),
"likeCount": t.get("likeCount"), "retweetCount": t.get("retweetCount"),
"replyCount": t.get("replyCount"), "viewCount": t.get("viewCount"),
"isReply": t.get("isReply"), "authorUserName": a.get("userName"),
"authorFollowers": a.get("followers"), "text": t.get("text"),
})
return rows, pages
if __name__ == "__main__":
query = "#PowerBI"
rows, pages = pull_days(query, days=7)
per_day = len(rows) / 7
print(f"{len(rows)} posts, {pages} pages, about {per_day:.0f} posts a day")
for refreshes in (8, 48):
full = 7 * (per_day + 1) * PRICE_PER_POST * refreshes * 30
incr = (per_day + 1) * PRICE_PER_POST * refreshes * 30
print(f"{refreshes}/day: full 7-day reload ${full:.2f}/month, incremental 1-day ${incr:.2f}/month")
with open("x_posts.csv", "w", newline="", encoding="utf-8") as f:
if rows:
w = csv.DictWriter(f, fieldnames=list(rows[0].keys()))
w.writeheader()
w.writerows(rows)
print("wrote x_posts.csv (Get Data > Text/CSV in Power BI Desktop)")
Researching this?Free starter credits cover end-to-end testing — Google sign-in, no card. Get a key.
Questions readers ask
Does Power BI have a Twitter (X) connector?
No first-party one. Microsoft's Power Query connector index has no Twitter or X connector. You can call an X data API with the Web connector (Web.Contents), use a third-party driver or sync service, or import a CSV produced by a script.
Why does my Twitter query refresh in Desktop but fail in the Power BI service?
Usually because the URL is built with string concatenation, which makes it a dynamic data source. Microsoft says such models usually can't refresh in the service, except when Web.Contents keeps a static base URL and passes the rest through RelativePath and Query. The second common cause is the Web API credential type, which Microsoft says isn't supported in the service; send the key in Headers with Anonymous credentials instead.
Do I need an on-premises data gateway for X data?
No. The API is a public HTTPS endpoint, and Microsoft's refresh article says cloud data sources don't require a gateway when Power BI can connect directly. Set the credential under Data source credentials in the semantic model settings.
How often can a Power BI report refresh Twitter data?
Up to 8 scheduled refreshes a day for models on shared capacity and up to 48 a day on Premium, Premium per user or Fabric capacity, per Microsoft's data refresh article. Manual Refresh now clicks don't count toward the 8. For a live wall display, a short polling job writing to a file is a better fit than a semantic model.
Can I use incremental refresh with an API source like this?
Yes. Microsoft's incremental refresh overview says it works on Pro, Premium per user, Premium and Embedded, and that for web sources the RangeStart and RangeEnd parameters can be integrated into the HTTP request. The table query on this page writes them into the search as since_time and until_time and also filters createdAt on them, which is what enables the policy toggle.
How much does a Twitter Power BI dashboard cost to run?
It depends on posts per day and refresh design. In our 2026 sample, #PowerBI (about 65 posts a day) came to $14.26 a month with incremental refresh at 48 refreshes a day, or $99.79 as a full 7-day reload. Quiet brand-mention queries cost cents. The rate is $0.15 per 1,000 posts returned.
Can I see impressions and profile clicks for my own account in Power BI?
Not through public post data. Our search returns public counts such as likes, reposts, replies, quotes, bookmarks and views, which work for any account or topic. Private analytics like link clicks or profile visits for your own account come from X's own analytics, not from a public data API.
Is it safe to put the API key in a Power BI parameter?
It works, but anyone who can open the .pbix or edit the model can read it. Use a dedicated key, limit workspace access, and rotate it if the file is shared. If that is not acceptable, run the Python script on a schedule and let Power BI read the file it writes.
Continue
- Microsoft Learn: Web.Contents (RelativePath, Query, Headers, ApiKeyName, Timeout)
- Microsoft Learn: Data refresh in Power BI (8 vs 48 refreshes, dynamic data sources, gateways, time limits)
- Microsoft Learn: Incremental refresh (supported plans, RangeStart / RangeEnd, web sources)
- Microsoft Learn: List.Generate syntax
- Microsoft Learn: Power Query Web connector (Web API credential not supported in the service)
- TwitterAPI.io docs: Advanced Search (query, queryType, cursor, since_time / until_time)
- X (Twitter) API overview and endpoint guide
- Power Automate and X: flows that act on new posts
- Twitter (X) data in Looker Studio, the Google-stack version
- Pull Twitter (X) data into Google Sheets
- Twitter (X) analytics: metrics and how to measure them
- Twitter (X) JSON fields explained
- TwitterAPI.io pricing and starter credits
- 01How to Hyperlink on Twitter (X): What Works, What Doesn't, and What 1,032 Posts Show
- 02How to See Deleted Twitter (X) Messages: What Can and Cannot Come Back
- 03Twitter (X) API to BigQuery: Load Tweets with Python and Query Them in SQL
- 04Twitter (X) Follow API: Follow, Verify and Undo a Follow from Code
- 05Twitter (X) API in Ruby with Net::HTTP, Faraday and Rails
- 06Power Automate Twitter (X) Connector: Limits, Setup and a Custom Connector
- 07Goose MCP: How to Add MCP Servers (Extensions) to goose, Desktop and CLI
- 08Perplexity vs Claude for research, and how to give either one live Twitter (X) data
Writing about something you built with TwitterAPI.io? Our community rewards program pays API credits for honest tutorials, build logs and videos.
Stop reading. Start building.
Starter credits cover real testing on real data. Google sign-in, no card, no application queue.
Get an API keyAlready building with TwitterAPI.io? Publish an honest tutorial or build log about it and earn up to $200 a month in API credits.