CommunityNotesClient
TheCommunityNotesClient provides methods for creating, managing, and searching Community Notes on X.
create
Creates a community note.Request body containing the community note details.
Response containing the created community note.
search_written
Returns all the community notes written by the user.If true, return the notes the caller wrote for the test. If false, return the notes the caller wrote on the product.
Pagination token to get next set of posts eligible for notes.
Max results to return.
A comma separated list of Note fields to display.
Iterator that yields pages of community notes. Automatically handles pagination.
search_eligible_posts
Returns all the posts that are eligible for community notes.If true, return a list of posts that are for the test. If false, return a list of posts that the bots can write proposed notes on the product.
Pagination token to get next set of posts eligible for notes.
Max results to return.
The selection of posts to return. Valid values are ‘feed_size: [small|large|xl], feed_lang: [en|es|…|all]’. Default is ‘feed_size: small, feed_lang: en’.
Iterator that yields pages of posts eligible for community notes. Automatically handles pagination.
delete
Deletes a community note.The community note id to delete.
Response confirming the community note was deleted.