Skip to main content
This module provides Pydantic models for request and response data structures for the posts endpoints of the X API. All models are generated from the OpenAPI specification and provide type safety and validation.

class xdk.posts.models.CreateRequest

Request model for create
model_config
ConfigDict
Default: {'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

CreateResponse

Class Bases: BaseModel Response model for create

Methods

class xdk.posts.models.CreateResponse

Response model for create

class xdk.posts.models.DeleteResponse

Response model for delete

class xdk.posts.models.GetAnalyticsResponse

Response model for get_analytics

class xdk.posts.models.GetByIdResponse

Response model for get_by_id

class xdk.posts.models.GetByIdsResponse

Response model for get_by_ids

class xdk.posts.models.GetCountsAllResponse

Response model for get_counts_all

class xdk.posts.models.GetCountsRecentResponse

Response model for get_counts_recent

class xdk.posts.models.GetInsights28hrResponse

Response model for get_insights28hr

class xdk.posts.models.GetInsightsHistoricalResponse

Response model for get_insights_historical

class xdk.posts.models.GetLikingUsersResponse

Response model for get_liking_users

class xdk.posts.models.GetQuotedResponse

Response model for get_quoted

class xdk.posts.models.GetRepostedByResponse

Response model for get_reposted_by

class xdk.posts.models.GetRepostsResponse

Response model for get_reposts

class xdk.posts.models.HideReplyResponse

Response model for hide_reply

class xdk.posts.models.SearchAllResponse

Response model for search_all

class xdk.posts.models.SearchRecentResponse

Response model for search_recent