Community Notes
Read and contribute to Community Notes (the system formerly called Birdwatch). All read methods work on any account; contributing requires an enrolled Community Notes account.
Warning
The write methods (create, rate, appeal, alias/settings, admin) require an enrolled Community Notes account. notes.create takes data, the note content payload (text, classification, and believability/misleading tags); emusks forwards it to Twitter unchanged.
Reading
notes.forTweet(tweetId)
Get the Community Notes on a tweet. Uses the GraphQL TweetNotesPageQuery query.
const result = await client.notes.forTweet("1962559135531504125");notes.get(noteId)
Fetch a single note by id. Uses the GraphQL NotePageQuery query.
const note = await client.notes.get("2062655324432240669");
console.log(note.appeal_status, note.birdwatch_profile?.alias);notes.revisionHistory(noteId) / notes.matchedPosts(noteId)
A note's revision history, and the posts a media or link note was matched to. Use RevisionHistoryPageQuery and NoteMatchPageQuery.
notes.writeForm(tweetId) / notes.writePrinciples(tweetId)
Whether you can write a note on a tweet, the notes already on it, and whether you can note its author. Use WriteNoteFormQuery and WriteNotePrinciplesQuery.
notes.translation(noteId, opts?) / notes.translationFeedback(noteId, feedback)
Get a note's translation, or rate its automatic translation. translation uses the legacy BirdwatchFetchNoteTranslation query, which the web client no longer calls, since x.com now sends translations inline with the note. translationFeedback uses noteTranslationFeedbackMutation.
notes.globalTimeline()
The Community Notes home page: your enrollment state and the home timeline. Uses the GraphQL CommunityNotesHomePageQuery query, which has no pagination.
const { viewer } = await client.notes.globalTimeline();notes.myProfile() / notes.profile(alias) / notes.contributorNotes(alias, opts?)
Your own Community Notes profile, another contributor's profile by alias, and a contributor's notes. Use SelfProfilePageQuery, ContributorProfilePageQuery, and ContributorProfileNotesListQuery for the first page, then contributorNotesTabNextPageQuery when you pass opts.cursor.
notes.contributorSuggestions(alias, opts?) / notes.deletedNotes(alias, opts?) / notes.deletedNotesCount(alias)
A contributor's suggestions tab, deleted notes, and deleted note count. Pass opts.cursor for later pages.
notes.notificationSettings()
Your Community Notes notification frequency. Uses NotificationSettingsPageQuery.
const me = await client.notes.myProfile();
const them = await client.notes.profile("logical-raccoon");
const theirNotes = await client.notes.contributorNotes("logical-raccoon");notes.batSignal(tweetId)
Whether a tweet has an open request for a note ("bat signal"). Uses noteRequestIntroSlotQuery. notes.requestStatus(tweetId) reads the status after you filed one, from noteRequestCompleteSlotQuery.
notes.canBeMediaNote(tweetId) / notes.mediaMatches(tweetId, opts?) / notes.prominentMediaMatches(tweetId, opts?)
Media-note eligibility and notes matched to the same media. canBeMediaNote uses the legacy BirdwatchFetchCanTweetBeMediaNote query. The matches use MediaHistoryRecentMatchesQuery and MediaHistorySimilarMatchesQuery, then their NextPage queries with opts.cursor. notes.mediaHistory(tweetId) returns the media match summary with the AI overview, from MediaHistoryPageQuery.
notes.sourceLinks(tweetId, opts?) / notes.sourceLinkTweet(tweetId)
Source links cited in notes for a tweet. Use sourceLinksNextPageQuery and the legacy BirdwatchFetchSourceLinkTweet.
notes.clusterData(tweetId) / notes.authenticatedMatch(noteId, opts?) / notes.suggestionFeedback(suggestionId, opts?)
Cluster data, your match status for a note, and suggestion feedback. Use the legacy BirdwatchFetchClusterData, then noteMatchesNextPageQuery and SuggestionFeedbackPageQuery. suggestionFeedback takes opts.targetVersionId.
notes.aliasOptions() / notes.aliasStatus() / notes.signUpEligibility() / notes.publicData()
Alias self-select options/status, your sign-up eligibility, and the public data file bundle. Use aliasChooseStepQuery, SelfProfilePageQuery, CommunityNotesHomePageQuery, DownloadDataPageQuery.
const enrollment = await client.notes.signUpEligibility();Contributing
notes.create(tweetId, data, opts?)
Write a note on a tweet. Uses the GraphQL useNoteEditorCreateMutation mutation. data is the note content payload.
| Option | Type | Description |
|---|---|---|
opts.isMediaNote | boolean | The note is about the media and gets matched elsewhere |
opts.isHelpfulForAllPosts | boolean | The note applies to every post with this media or link |
await client.notes.create(tweetId, data);notes.remove(noteId)
Delete one of your notes. Uses useNoteDeletionMutation.
notes.rate(noteId, rating?) / notes.deleteRating(noteId)
Rate a note, or remove your rating. Use useNoteRatingCreateMutation and useNoteRatingDeleteMutation.
helpfulness is "Helpful", "SomewhatHelpful" or "NotHelpful". emusks sends helpfulTags unless the rating is NotHelpful, and notHelpfulTags unless it is Helpful, matching x.com's rating form. A BirdwatchError result throws with its error_code on error.code.
await client.notes.rate(noteId, {
tweetId,
helpfulness: "Helpful",
helpfulTags: ["GoodSources", "ImportantContext"],
});Helpful tags: GoodSources, Clear, AddressesClaim, ImportantContext, UnbiasedLanguage, Other.
Not helpful tags: NoSources, IrrelevantSources, Incorrect, OpinionSpeculation, Unclear, MissingKeyPoints, Rude (argumentative or biased), NoteNotNeeded (only valid on notes that call the post misleading), TwitterViolationAny (spam, harassment or abuse), Other.
source defaults to "BirdwatchPostDetail" and platform to "BirdwatchWeb". forLiveNote rates the live version, and suggestion attaches a suggested edit. Any other keys in rating, plus rating.variables, are merged into the mutation variables unchanged.
The viewer's current rating comes back on each note from forTweet as note.rating.data_v2.
notes.appeal(noteId, opts?)
Appeal a note's status. Uses useAppealMutation.
notes.request(tweetId, opts?) / notes.deleteRequest(tweetId)
Request a note on a tweet (raise the "bat signal"), or withdraw it. request takes opts.sourceLink and opts.suggestion. Use useNoteRequestFormMutation and useNoteRequestDeletionMutation.
notes.selectAlias(opts?) / notes.editUserSettings(params) / notes.editNotificationSettings(params) / notes.acknowledgeEarnOut()
Manage your contributor alias and settings. Use useAliasSelectMutation (pass { alias }), the legacy BirdwatchEditUserSettings, useNotificationFrequencyMutation (pass a frequency string), and earnedOutEducationAcknowledgeEarnOutMutation.
notes.admitUser(opts?) / notes.removeUser(opts?)
Rejoin Community Notes after leaving, or leave it. Use leftProgramCalloutRejoinMutation and useLeaveProgramMutation. admitUser defaults to your user ID and the current time.
notes.autoTranslateSettings(language) / notes.setAutoTranslate(language, enable?)
Read or change automatic translation from a language. Use autoTranslateSettingsButtonQuery and autoTranslateSettingsButtonSaveMutation.