Is there a way (perhaps through Twitter's API / official stats, etc.) to see a daily graph of how many tweets linked to my domain?

Dani AI

Generated

Short answer: yes. For a simple daily histogram you can use the platform counts endpoints (they return timestamped buckets you can plot by day), or you can capture tweets in real time and index them for richer analysis — which is what ’s ELK suggestion is good for. The counts endpoints give a quick, low-storage way to get “how many Tweets referenced my domain” without saving every Tweet. (docs.x.com)

Example (quick test you can adapt):

curl 'https://api.x.com/2/tweets/counts/recent?query=url:"example.com"&granularity=day' \
  -H 'Authorization: Bearer $BEARER_TOKEN'

In practice URL-encode the query string before calling the API, and add -is:retweet if you want to exclude retweets. The url: operator matches expanded URLs (so t.co shorteners are resolved to the expanded target), but you may need OR clauses for variants (www, subdomains, trailing slashes). Test the query first on the site search UI to confirm the matches. (docs.x.com)

Things to watch for: the “recent counts” endpoint covers the recent window (short lookback); full-archive counts require elevated/paid access. Counts are also produced differently from the full data endpoints and may not reflect later compliance events (deleted posts), so counts and raw-search results can differ. If you need historic or perfectly auditable data, plan for full-archive access or continuous capture. (docs.x.com)

Tools and workflow tips: the Python tool twarc (and other wrappers) expose the counts endpoints and make scripting easier if you want CSV output for plotting or to push counts into Kibana/Excel. If the goal is clicks rather than shares, use server logs or analytics (those measure traffic, not the number of Tweets). (twarc-project.readthedocs.io)

Perhaps more of a DIY solution, but I'll mention it anyway.

Logstash has a twitter plugin. You can visualize it with Kibana. It should all be open source and free. There's an ELK stack (Elastic, Logstash, Kibana) docker image that has all of them combined.

YouTube: Twitter analysis using ELK

Edit: this seems a free analytics site/app but I've never tried it:

  • Insights on tweets containing specific keywords/hashtag/user mention.
  • Stats on users mentioned keywords.
  • Interactive map with locations of users mentioned keywords.
  • Hashtags most used within tweets containing keywords.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.