# X Community Notes Dataset Explorer (`xyrelith-data/twitter-community-notes`) Actor

Explore X's official public Community Notes snapshots without a login: look up notes by note, post or contributor, search note text, and export status, cited sources, reason flags and contributor enrollment rows.

- **URL**: https://apify.com/xyrelith-data/twitter-community-notes.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** Social media, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## X Community Notes Dataset Explorer

Explore X's official public **Community Notes** snapshots as a clean dataset. Look up notes by note ID, post ID, URL or contributor, search the note text, keep the newest notes, and join the separate status history so every row carries its current helpfulness, lock state, scoring model and status dates. No login, cookie, API key or proxy.

### What this actor does

- **Five modes:** `noteLookup`, `postLookup`, `contributorLookup`, `keywordSearch`, `latestNotes`
- **Full status join:** current status, first and latest non-NMR status, lock state and date, deciding model, modeling group and core/expansion/group statuses
- **Every reason flag:** misleading and not-misleading reasons as two clean lists, plus trustworthy-source, media-note and collaborative-note flags
- **Evidence links:** cited URLs and their domains extracted from each note summary
- **Contributor enrollment:** enrollment state, modeling population and group, earn-out count and notes authored in the snapshot
- **Filters:** classification, current status, date range, either reason group, media notes, collaborative notes, locked notes and trustworthy sources
- **Fast or complete:** scan every note back to 2021, or only the small recent-note shards for a quick run
- **Optional not-found rows:** answer "does this post have a Community Note?" without inventing data
- **Empty fields are omitted:** every row contains only real values from the snapshot

### Modes

| Mode | What it does | Lookup field |
|---|---|---|
| **Note IDs** | Exact lookup for one or many notes | `noteIds` |
| **Post IDs or URLs** | Every note attached to one or many posts, newest first within each post | `postIds` |
| **Contributor participant IDs** | The contributor's enrollment row plus their notes | `contributorIds` |
| **Keyword** | Case-insensitive search in note summaries | `keyword` |
| **Latest notes** | The newest notes in the snapshot, newest first | none |

### Output per note

- `noteId` — numeric note ID
- `postId`, `postUrl` — the post the note annotates and its public X permalink
- `authorParticipantId` — X's pseudonymous contributor ID
- `createdAt` — note creation time in UTC ISO 8601
- `summary` — the note text shown to readers
- `citedUrls[]`, `citedUrlCount`, `citedDomains[]` — source links found in the note text
- `classification` — `MISINFORMED_OR_POTENTIALLY_MISLEADING` or `NOT_MISLEADING`
- `isMisleading` — boolean shortcut for the classification
- `misleadingReasons[]` — factual error, manipulated media, outdated information, missing context, unverified claim as fact, satire, other
- `notMisleadingReasons[]` — factually correct, outdated but not when written, clearly satire, personal opinion, other
- `trustworthySources`, `isMediaNote`, `isCollaborativeNote` — flags from the snapshot
- `validationDifficulty`, `believable`, `harmful` — validation fields when X published them
- `currentStatus`, `statusLabel`, `isShowingOnX` — current helpfulness and whether the note is rated helpful
- `firstNonNmrStatus`, `firstNonNmrAt` — the first status other than "needs more ratings", and when it happened
- `latestNonNmrStatus`, `latestNonNmrAt` — the most recent non-NMR status and its date
- `statusChangedAt` — the last status change
- `statusLocked`, `lockedStatus`, `statusLockedAt` — lock state and date
- `decidedBy`, `modelingGroup` — the scoring model and modeling group that decided the status
- `coreStatus`, `expansionStatus`, `groupStatus` — the per-surface statuses when present
- `detectedLanguage` — estimated ISO language code when language detection is on
- `snapshotDate`, `sourceUrl`, `scrapedAt` — snapshot and provenance
- `recordType: "note"`

Status fields are omitted when a note has no status row yet. New notes can take a few days to be scored.

### Output per contributor

- `participantId`, `enrollmentState` — X's pseudonymous ID and enrollment state
- `successfulRatingNeededToEarnIn` — ratings still needed to earn in
- `lastStateChangeAt`, `lastEarnOutAt` — enrollment timestamps when present
- `modelingPopulation`, `modelingGroup` — modeling cohort
- `numberOfTimesEarnedOut` — lifetime earn-out count
- `notesAuthoredCount` — notes by this contributor in the scanned scope
- `snapshotDate`, `sourceUrl`, `scrapedAt`
- `recordType: "contributorEnrollment"`

### Output for not-found lookups

When **Include not-found rows** is on, a requested note, post or contributor with no row produces:

- `recordType: "lookupMiss"`, `lookedUpField`, `lookedUpValue`, `found: false`, `snapshotDate`, `sourceUrl`, `scrapedAt`

This is a real absence result, not a placeholder.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `latestNotes` | `noteLookup` / `postLookup` / `contributorLookup` / `keywordSearch` / `latestNotes` |
| `noteIds` | array | – | Note IDs or `x.com/i/birdwatch/n/<id>` links (mode = noteLookup) |
| `postIds` | array | – | Post IDs or x.com / twitter.com status URLs (mode = postLookup) |
| `contributorIds` | array | – | Pseudonymous participant IDs (mode = contributorLookup) |
| `keyword` | string | – | Case-insensitive text filter; required for keywordSearch |
| `classification` | string | `all` | `all` / `misleading` / `notMisleading` |
| `currentStatus` | array | – | `currentlyRatedHelpful` / `currentlyRatedNotHelpful` / `needsMoreRatings`; empty = any |
| `dateFrom` | string | – | Earliest note creation date, `YYYY-MM-DD`, UTC |
| `dateTo` | string | – | Latest note creation date, `YYYY-MM-DD`, inclusive, UTC |
| `misleadingReasons` | array | – | Keep notes with at least one selected misleading reason |
| `notMisleadingReasons` | array | – | Keep notes with at least one selected not-misleading reason |
| `mediaNotesOnly` | boolean | `false` | Only notes on images or video |
| `collaborativeNotesOnly` | boolean | `false` | Only the newer collaborative-note format |
| `lockedOnly` | boolean | `false` | Only notes whose status is locked |
| `trustworthySourcesOnly` | boolean | `false` | Only notes that cite trustworthy sources |
| `includeStatus` | boolean | `true` | Join the status history; turn off for the smallest run |
| `includeNotFoundRows` | boolean | `false` | Add a row for each requested ID with no match |
| `detectLanguage` | boolean | `false` | Add an estimated language code per note |
| `searchScope` | string | `full` | `full` scans 2021 to today; `recent` scans only the small recent-note shards |
| `maxItems` | integer | `1000` | Hard cap on dataset rows, 1-100,000 |
| `snapshotDate` | string | – | Use a specific recent snapshot, `YYYY-MM-DD`; empty = newest complete snapshot |

### Examples

#### Check whether posts have Community Notes

```json
{
  "mode": "postLookup",
  "postIds": [
    "https://x.com/i/status/2027744449128714315",
    "https://x.com/i/status/20"
  ],
  "includeNotFoundRows": true,
  "maxItems": 20
}
```

#### Recent misleading notes that cite sources

```json
{
  "mode": "latestNotes",
  "classification": "misleading",
  "currentStatus": ["currentlyRatedHelpful"],
  "dateFrom": "2026-09-01",
  "trustworthySourcesOnly": true,
  "maxItems": 500
}
```

#### Research manipulated media

```json
{
  "mode": "keywordSearch",
  "keyword": "AI-generated",
  "mediaNotesOnly": true,
  "misleadingReasons": ["manipulatedMedia"],
  "maxItems": 1000
}
```

#### Export one contributor's notes and enrollment

```json
{
  "mode": "contributorLookup",
  "contributorIds": [
    "F75B04680623CD9A452496D4AB69A20ED730CE93652C7113175BC7AA82AFEF23"
  ],
  "includeStatus": true,
  "maxItems": 500
}
```

#### Fast checks on the recent shards

```json
{
  "mode": "keywordSearch",
  "keyword": "election",
  "searchScope": "recent",
  "includeStatus": false,
  "maxItems": 100
}
```

### Use cases

- **Fact-check monitoring:** pull every note on a list of posts and see whether it is currently rated helpful.
- **Misinformation research:** build a corpus filtered by classification, reason flags, media type and date.
- **Source analysis:** extract the URLs and domains cited across thousands of notes.
- **Contributor research:** study enrollment states, modeling cohorts and earn-out history by pseudonymous ID.
- **Newsroom verification:** check whether a viral post has a note without opening X.
- **Dataset refresh:** schedule a run and append the newest notes to a warehouse.

### Limits you should know

- **Publication lag:** X releases snapshots daily, but notes and ratings appear only after a lag of about 48 hours. The newest snapshot is usually one or two days behind.
- **Short retention:** X keeps only recent snapshot dates. The actor walks back up to 14 days to find the newest complete date; older dates are not downloadable.
- **Deleted notes:** when X removes a note's text, later snapshots keep only its status metadata. The actor returns notes whose text is still published; it cannot recover deleted text.
- **Unscored notes:** a new note may not be in the status history yet. Its status fields are omitted until X scores it.
- **Pseudonymous contributors:** X publishes hashed participant IDs, not handles, and does not offer a way to resolve them.
- **No ratings or note requests:** X no longer serves the ratings and note-request files at the documented paths, so vote-level analysis is out of scope.
- **Note pages need a login:** `x.com/i/birdwatch/n/<id>` redirects logged-out visitors to a login page. The dataset includes `noteId` and the public `postUrl` instead.
- **Deleted posts:** `postUrl` is built from the post ID. If the post itself was deleted after the note was written, X returns 404; the note remains in the snapshot.
- **Cited links are not validated:** `citedUrls` is what the note author wrote. X does not check those links, so an individual source can be dead or paywalled.
- **Reason flags:** X stopped populating the legacy reason flags on 2026 collaborative notes. They are populated on older notes.
- **`recent` scope:** the small recent shards are not the complete archive. Use `full` when completeness matters.
- **Language detection:** the language code is a best-effort estimate and is never used for filtering.

### Data source

Primary source: X's official Community Notes public data downloads at [communitynotes.x.com](https://communitynotes.x.com/guide/en/under-the-hood/download-data). The documentation and reference code live in the [twitter/communitynotes](https://github.com/twitter/communitynotes) repository. The actor reads only the public snapshot files; it does not use the X API, a login, cookies or a proxy.

### FAQ

**Do I need an X account?** No. The actor reads the public snapshot files.

**Can I see notes that were deleted from X?** No. X removes the text from future snapshots. The status history keeps metadata for scored notes, but not the text.

**Why is a note's status missing?** It may be too new to be scored, or X may not have included it in the status history yet.

**What does "currently rated helpful" mean?** It is the status X uses for notes that have enough cross-spectrum helpful ratings. `isShowingOnX` is true for those notes.

**Does `postLookup` return every note on a post?** Yes, it returns every note in the scanned scope for each requested post. Use `searchScope: full` to include the complete archive.

**How do I find the newest notes?** Use `latestNotes`. It returns notes sorted by creation time, newest first, across the scanned scope.

**How do I get only notes that cite sources?** Turn on `trustworthySourcesOnly`, or filter on `citedUrlCount` in your own tooling after export.

**How do I keep my run cheap?** Turn off `includeStatus` and use `searchScope: recent` for a fast look at the recent shards. Note-ID lookups also avoid the large historical shard when the requested notes are found in the recent shards.

**Can I choose a past snapshot?** Yes, inside X's retention window. Set `snapshotDate` to a recent date; leave it empty for the newest complete snapshot.

# Actor input Schema

## `mode` (type: `string`):

What to look up in X's public Community Notes snapshot. Every mode reads the official cumulative snapshot files; none needs a login.

## `noteIds` (type: `array`):

Numeric note IDs to look up (mode = noteLookup). Also accepts x.com/i/birdwatch/n/<id> links. Unmatched IDs appear as lookupMiss rows when Include not-found rows is on.

## `postIds` (type: `array`):

Post IDs or x.com / twitter.com status URLs to look up (mode = postLookup). Returns every note attached to each post, newest first within the post.

## `contributorIds` (type: `array`):

Pseudonymous Community Notes participant IDs (mode = contributorLookup). Returns the enrollment row and the contributor's notes. X does not publish contributor handles.

## `keyword` (type: `string`):

Case-insensitive text to find in note summaries (mode = keywordSearch). It also filters noteLookup, postLookup and contributorLookup results when set.

## `classification` (type: `string`):

Keep misleading notes, not-misleading notes, or both.

## `currentStatus` (type: `array`):

Keep notes whose current status is one of these values. Multi-select; empty means any status. Needs Include status turned on.

## `dateFrom` (type: `string`):

Only notes created on or after this date (YYYY-MM-DD, UTC).

## `dateTo` (type: `string`):

Only notes created on or before this date (YYYY-MM-DD, inclusive, UTC).

## `misleadingReasons` (type: `array`):

Keep notes with at least one selected misleading reason flag. Empty means no filter. 2026 collaborative notes carry no reason flags.

## `notMisleadingReasons` (type: `array`):

Keep notes with at least one selected not-misleading reason flag. Empty means no filter.

## `mediaNotesOnly` (type: `boolean`):

Keep only notes attached to an image or video instead of post text.

## `collaborativeNotesOnly` (type: `boolean`):

Keep only notes written in the newer collaborative-note format.

## `lockedOnly` (type: `boolean`):

Keep only notes whose status is locked by the scoring system. Needs Include status turned on.

## `trustworthySourcesOnly` (type: `boolean`):

Keep only notes that cite trustworthy sources, as classified by contributors.

## `includeStatus` (type: `boolean`):

Join the note status history table to add current status, helpfulness, lock state, scoring model and status dates. Turn it off for the smallest, fastest run.

## `includeNotFoundRows` (type: `boolean`):

For lookups, add one lookupMiss row per requested note, post or contributor that has no row. Useful for checking whether a post has a Community Note.

## `detectLanguage` (type: `boolean`):

Add an estimated ISO language code for each note summary. It is a best-effort detection and is never used for filtering.

## `searchScope` (type: `string`):

Full scans every note shard back to 2021. Recent reads only the small recent-note shards and is much faster; it is not a complete archive search.

## `maxItems` (type: `integer`):

Hard cap on dataset rows across notes, enrollment and not-found rows.

## `snapshotDate` (type: `string`):

Use a specific daily snapshot (YYYY-MM-DD). Leave empty for the newest complete snapshot. X keeps only recent dates.

## Actor input object example

```json
{
  "mode": "noteLookup",
  "noteIds": [
    "2118196237887561774",
    "2019355301393134027"
  ],
  "postIds": [
    "https://x.com/i/status/2027744449128714315",
    "2027722865877959062"
  ],
  "contributorIds": [
    "F75B04680623CD9A452496D4AB69A20ED730CE93652C7113175BC7AA82AFEF23"
  ],
  "keyword": "AI-generated",
  "classification": "all",
  "dateFrom": "2026-01-01",
  "dateTo": "2026-11-15",
  "mediaNotesOnly": false,
  "collaborativeNotesOnly": false,
  "lockedOnly": false,
  "trustworthySourcesOnly": false,
  "includeStatus": false,
  "includeNotFoundRows": false,
  "detectLanguage": false,
  "searchScope": "recent",
  "maxItems": 3,
  "snapshotDate": "2026-11-15"
}
```

# Actor output Schema

## `notes` (type: `string`):

Dataset containing note, contributorEnrollment and lookupMiss rows for the selected mode.

# 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 = {
    "mode": "noteLookup",
    "noteIds": [
        "2117433658881794049",
        "2019355301393134027",
        "2019781209187029053"
    ],
    "classification": "all",
    "mediaNotesOnly": false,
    "collaborativeNotesOnly": false,
    "lockedOnly": false,
    "trustworthySourcesOnly": false,
    "includeStatus": false,
    "includeNotFoundRows": false,
    "detectLanguage": false,
    "searchScope": "recent",
    "maxItems": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/twitter-community-notes").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 = {
    "mode": "noteLookup",
    "noteIds": [
        "2117433658881794049",
        "2019355301393134027",
        "2019781209187029053",
    ],
    "classification": "all",
    "mediaNotesOnly": False,
    "collaborativeNotesOnly": False,
    "lockedOnly": False,
    "trustworthySourcesOnly": False,
    "includeStatus": False,
    "includeNotFoundRows": False,
    "detectLanguage": False,
    "searchScope": "recent",
    "maxItems": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/twitter-community-notes").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 '{
  "mode": "noteLookup",
  "noteIds": [
    "2117433658881794049",
    "2019355301393134027",
    "2019781209187029053"
  ],
  "classification": "all",
  "mediaNotesOnly": false,
  "collaborativeNotesOnly": false,
  "lockedOnly": false,
  "trustworthySourcesOnly": false,
  "includeStatus": false,
  "includeNotFoundRows": false,
  "detectLanguage": false,
  "searchScope": "recent",
  "maxItems": 3
}' |
apify call xyrelith-data/twitter-community-notes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xyrelith-data/twitter-community-notes"
        }
    }
}
```

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/feGY3jYFHV609U3Fq/builds/7oodAt3GoWo3QgFUx/openapi.json
