# X (Twitter) Link & Domain Mentions Scraper - Who Shares a Site (`seemuapps/x-link-domain-mentions-scraper`) Actor

Find every X (Twitter) post linking to a domain or specific page, with author and engagement data. Track who shares your site, a competitor's, or any article.

- **URL**: https://apify.com/seemuapps/x-link-domain-mentions-scraper.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:** Social media, SEO tools, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 link mentions

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## X (Twitter) Link & Domain Mentions Scraper - Who Shares a Site

Find every X (Twitter) post that links to a domain or a specific page. Enter your site, a competitor's, or any article URL and get the posts sharing it, with the full text, engagement numbers, and author profile - so you know who is talking about you even when they never tag you. No login or cookies required.

### What you get

One row per post that links to a target:

- **Matched URLs** - the exact links in the post that point at your domain or page (with t.co links expanded)
- **Post text**, timestamp, language, post URL, and whether it is a reply, quote, or retweet
- **Engagement** - likes, retweets, replies, quotes, views, and bookmarks
- **Hashtags** used alongside the link
- **Author** - username, display name, bio, location, follower count, verification, profile picture and profile URL
- Filters for date range, minimum likes, language, replies, retweets, and any extra X search operators
- Export to JSON, CSV, Excel, or Google Sheets from the Apify console

### Use cases

- **Untagged brand monitoring** - most people share a link without @-mentioning the brand; this catches them
- **Backlink and PR tracking** - see which posts and accounts are driving traffic to a launch, article, or landing page
- **Competitor intelligence** - who shares your competitors' sites, how often, and with what sentiment
- **Content performance** - measure how far a blog post or press release spread on X and who amplified it
- **Influencer discovery** - find high-follower accounts already linking to sites in your niche
- **Lead generation** - people sharing a competitor's product page are warm prospects

### How to use

1. Enter one or more **Domains or URLs** - `example.com` for a whole site (subdomains included) or `https://example.com/blog/post` for one page
2. Choose **Latest** or **Top** sort order
3. Optionally set a **Since / Until** date range, **Minimum likes**, **Language**, or **Extra search operators** such as `-from:yourbrand` to hide your own posts
4. Set **Max posts per domain/URL** (default 100; 0 for no limit)
5. Run the actor - results appear in the **Dataset** tab

Retweets are excluded by default so each share is counted once at its source.

### Output format

Each dataset record:

```json
{
  "target": "apify.com",
  "matchedUrls": ["https://apify.com/store/categories?search=viral%20videos"],
  "allUrls": ["https://apify.com/store/categories?search=viral%20videos"],
  "tweetId": "1986815122389127201",
  "url": "https://x.com/DanScalco/status/1986815122389127201",
  "text": "Found a scraper for viral videos on Apify...",
  "createdAt": "2025-11-07T20:11:47.000Z",
  "lang": "en",
  "isReply": false,
  "isQuote": false,
  "isRetweet": false,
  "inReplyToUsername": null,
  "hashtags": ["scraping"],
  "retweetCount": 1,
  "replyCount": 0,
  "likeCount": 3,
  "quoteCount": 0,
  "viewCount": 812,
  "bookmarkCount": 2,
  "authorUsername": "DanScalco",
  "authorUserId": "24325931",
  "authorName": "Dan Scalco",
  "authorBio": "Growth marketer.",
  "authorLocation": "New Jersey",
  "authorIsVerified": true,
  "authorFollowersCount": 5120,
  "authorProfilePicture": "https://pbs.twimg.com/profile_images/.../photo.jpg",
  "authorProfileUrl": "https://x.com/DanScalco"
}
```

### Free tier limits

Runs on a free Apify plan search the first target only and return at most **25 posts**. Upgrade to any paid Apify plan to remove the limits.

### FAQ

**Do I need to log in or provide cookies?** No. No login, no cookies, no risk to your own account.

**Does it catch shortened links?** Yes. X stores the expanded destination of every t.co link, and search matches on that, so bit.ly-style links that redirect to your domain will not match, but t.co wrappers will.

**Why are some posts missing that I know exist?** X search only indexes public posts and can lag for very new ones. Protected accounts are never included.

**How do I track @-mentions rather than links?** Use the [X User Mentions Scraper](https://apify.com/seemuapps/x-user-mentions-scraper).

### Related X (Twitter) actors

Part of a complete X (Twitter) toolkit - explore the rest of the suite:

- [X (Twitter) Profile Scraper](https://apify.com/seemuapps/x-profile-scraper) - Public profile data - bio, counts, links
- [X (Twitter) User Tweets Scraper](https://apify.com/seemuapps/x-user-tweets-by-username) - Full timeline of any account by username
- [X (Twitter) Tweet Scraper](https://apify.com/seemuapps/x-tweet-scraper) - Search and export tweets by query, hashtag, user
- [X (Twitter) Tweet Replies Scraper](https://apify.com/seemuapps/x-tweet-replies-scraper) - Every reply under a post for sentiment analysis
- [X (Twitter) Quote Tweets Scraper](https://apify.com/seemuapps/x-quote-tweets-scraper) - Every quote tweet of a post, with engagement
- [X (Twitter) Followers & Following Scraper](https://apify.com/seemuapps/x-followers-following-scraper) - Full followers and following lists, no login
- [X (Twitter) List Members Scraper](https://apify.com/seemuapps/x-list-members-scraper) - Members or followers of any public list
- [X (Twitter) Retweeters Scraper](https://apify.com/seemuapps/x-tweet-retweeters-scraper) - Find every account that retweeted a post
- [X (Twitter) User Mentions Scraper](https://apify.com/seemuapps/x-user-mentions-scraper) - Brand and keyword monitoring across mentions
- [X (Twitter) User Search Scraper](https://apify.com/seemuapps/x-user-search-scraper) - Find accounts by bio or keyword for lead gen
- [X (Twitter) Trends Scraper](https://apify.com/seemuapps/x-trends-scraper) - Trending topics and hashtags by location
- [X (Twitter) Article to Markdown Scraper](https://apify.com/seemuapps/x-article-to-markdown-scraper) - Long form Articles as clean Markdown
- [X (Twitter) MCP Server](https://apify.com/seemuapps/x-mcp) - All X tools for AI agents via MCP

# Actor input Schema

## `targets` (type: `array`):

Domains (example.com) or specific pages (https://example.com/blog/post) to find posts linking to. Subdomains of a domain are included. One per line.

## `queryType` (type: `string`):

Return the newest posts or the most engaged posts first.

## `maxItemsPerTarget` (type: `integer`):

Maximum posts to return for each target. Set 0 for no limit.

## `sinceDate` (type: `string`):

Only posts on or after this date, YYYY-MM-DD (UTC). Leave empty for no lower bound.

## `untilDate` (type: `string`):

Only posts before this date, YYYY-MM-DD (UTC). Leave empty for no upper bound.

## `excludeRetweets` (type: `boolean`):

Skip plain retweets so each share is counted once at its source.

## `excludeReplies` (type: `boolean`):

Skip posts that are replies to other posts.

## `minLikes` (type: `integer`):

Skip posts with fewer likes than this. 0 disables the filter.

## `language` (type: `string`):

Optional two-letter language code (en, es, de, ja...) to restrict results.

## `extraQuery` (type: `string`):

Optional extra X search operators appended to the query, e.g. "-from:mybrand" to hide your own posts or "review" to require a keyword.

## `strictMatch` (type: `boolean`):

Only keep posts where a link actually points at the target domain or page. Turn off to also keep loosely matched posts returned by X search.

## Actor input object example

```json
{
  "targets": [
    "apify.com"
  ],
  "queryType": "Latest",
  "maxItemsPerTarget": 100,
  "excludeRetweets": true,
  "excludeReplies": false,
  "minLikes": 0,
  "strictMatch": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per post: target, matchedUrls\[], text, createdAt, engagement counts (likes, retweets, replies, quotes, views), hashtags, and author username/name/bio/followers/verification.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "targets": [
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("seemuapps/x-link-domain-mentions-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "targets": ["apify.com"] }

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/x-link-domain-mentions-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "targets": [
    "apify.com"
  ]
}' |
apify call seemuapps/x-link-domain-mentions-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,seemuapps/x-link-domain-mentions-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4hxZ579xt7KnJ3Emj/builds/wXAvzikhvyFnlyacj/openapi.json
