Sorsa · Schema
Tweet
JSON Schema for Sorsa common.Tweet extracted from the OpenAPI v3 spec.
TwitterXSocial MediaData ExtractionReal-Time
Properties
| Name | Type | Description |
|---|---|---|
| bookmark_count | integer | Number of times the tweet has been bookmarked. |
| conversation_id_str | string | ID of the root tweet in the conversation thread. |
| created_at | string | Tweet publication date in ISO 8601 format. |
| entities | array | Media, links, and other embedded entities attached to the tweet. |
| full_text | string | Full text content of the tweet. |
| id | string | Unique tweet ID. |
| in_reply_to_tweet_id | string | ID of the tweet this tweet is replying to. Null if not a reply. |
| in_reply_to_username | string | Username of the account this tweet is replying to. |
| is_quote_status | boolean | Whether this tweet quotes another tweet. |
| is_replies_limited | boolean | Whether replies to this tweet are restricted by the author. |
| is_reply | boolean | Whether this tweet is a reply to another tweet. |
| lang | string | Detected language code of the tweet (e.g. `en`, `es`). |
| likes_count | integer | Number of likes on the tweet. |
| quote_count | integer | Number of quote tweets. |
| quoted_status | object | The original tweet being quoted. Present only if `is_quote_status` is true. |
| reply_count | integer | Number of replies to the tweet. |
| retweet_count | integer | Number of retweets. |
| retweeted_status | object | The original tweet being retweeted. Present only for retweets. |
| user | object | Author of the tweet. |
| view_count | integer | Number of views (impressions). |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://api-evangelist.github.io/sorsa/json-schema/sorsa-tweet-schema.json",
"title": "Tweet",
"description": "JSON Schema for Sorsa common.Tweet extracted from the OpenAPI v3 spec.",
"properties": {
"bookmark_count": {
"description": "Number of times the tweet has been bookmarked.",
"example": 15,
"type": "integer"
},
"conversation_id_str": {
"description": "ID of the root tweet in the conversation thread.",
"example": "1782368585664626774",
"type": "string"
},
"created_at": {
"description": "Tweet publication date in ISO 8601 format.",
"example": "2024-01-15T10:30:00Z",
"type": "string"
},
"entities": {
"description": "Media, links, and other embedded entities attached to the tweet.",
"items": {
"properties": {
"link": {
"description": "Direct URL of the entity.",
"example": "https://t.co/example",
"type": "string"
},
"preview": {
"description": "Preview or thumbnail URL for the entity.",
"example": "https://pbs.twimg.com/preview",
"type": "string"
},
"type": {
"description": "Entity type (e.g. `photo`, `video`, `url`).",
"example": "photo",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"full_text": {
"description": "Full text content of the tweet.",
"example": "Hello world",
"type": "string"
},
"id": {
"description": "Unique tweet ID.",
"example": "1782368585664626774",
"type": "string"
},
"in_reply_to_tweet_id": {
"description": "ID of the tweet this tweet is replying to. Null if not a reply.",
"example": "1782368585664626000",
"type": "string"
},
"in_reply_to_username": {
"description": "Username of the account this tweet is replying to.",
"example": "username",
"type": "string"
},
"is_quote_status": {
"description": "Whether this tweet quotes another tweet.",
"example": false,
"type": "boolean"
},
"is_replies_limited": {
"description": "Whether replies to this tweet are restricted by the author.",
"example": false,
"type": "boolean"
},
"is_reply": {
"description": "Whether this tweet is a reply to another tweet.",
"example": false,
"type": "boolean"
},
"lang": {
"description": "Detected language code of the tweet (e.g. `en`, `es`).",
"example": "en",
"type": "string"
},
"likes_count": {
"description": "Number of likes on the tweet.",
"example": 200,
"type": "integer"
},
"quote_count": {
"description": "Number of quote tweets.",
"example": 5,
"type": "integer"
},
"quoted_status": {
"allOf": [
{
"properties": {
"bookmark_count": {
"description": "Number of times the tweet has been bookmarked.",
"example": 15,
"type": "integer"
},
"conversation_id_str": {
"description": "ID of the root tweet in the conversation thread.",
"example": "1782368585664626774",
"type": "string"
},
"created_at": {
"description": "Tweet publication date in ISO 8601 format.",
"example": "2024-01-15T10:30:00Z",
"type": "string"
},
"entities": {
"description": "Media, links, and other embedded entities attached to the tweet.",
"items": {
"properties": {
"link": {
"description": "Direct URL of the entity.",
"example": "https://t.co/example",
"type": "string"
},
"preview": {
"description": "Preview or thumbnail URL for the entity.",
"example": "https://pbs.twimg.com/preview",
"type": "string"
},
"type": {
"description": "Entity type (e.g. `photo`, `video`, `url`).",
"example": "photo",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"full_text": {
"description": "Full text content of the tweet.",
"example": "Hello world",
"type": "string"
},
"id": {
"description": "Unique tweet ID.",
"example": "1782368585664626774",
"type": "string"
},
"in_reply_to_tweet_id": {
"description": "ID of the tweet this tweet is replying to. Null if not a reply.",
"example": "1782368585664626000",
"type": "string"
},
"in_reply_to_username": {
"description": "Username of the account this tweet is replying to.",
"example": "username",
"type": "string"
},
"is_quote_status": {
"description": "Whether this tweet quotes another tweet.",
"example": false,
"type": "boolean"
},
"is_replies_limited": {
"description": "Whether replies to this tweet are restricted by the author.",
"example": false,
"type": "boolean"
},
"is_reply": {
"description": "Whether this tweet is a reply to another tweet.",
"example": false,
"type": "boolean"
},
"lang": {
"description": "Detected language code of the tweet (e.g. `en`, `es`).",
"example": "en",
"type": "string"
},
"likes_count": {
"description": "Number of likes on the tweet.",
"example": 200,
"type": "integer"
},
"quote_count": {
"description": "Number of quote tweets.",
"example": 5,
"type": "integer"
},
"quoted_status": {
"allOf": [
{
"properties": {
"bookmark_count": {
"description": "Number of times the tweet has been bookmarked.",
"example": 15,
"type": "integer"
},
"conversation_id_str": {
"description": "ID of the root tweet in the conversation thread.",
"example": "1782368585664626774",
"type": "string"
},
"created_at": {
"description": "Tweet publication date in ISO 8601 format.",
"example": "2024-01-15T10:30:00Z",
"type": "string"
},
"entities": {
"description": "Media, links, and other embedded entities attached to the tweet.",
"items": {
"properties": {
"link": {
"description": "Direct URL of the entity.",
"example": "https://t.co/example",
"type": "string"
},
"preview": {
"description": "Preview or thumbnail URL for the entity.",
"example": "https://pbs.twimg.com/preview",
"type": "string"
},
"type": {
"description": "Entity type (e.g. `photo`, `video`, `url`).",
"example": "photo",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"full_text": {
"description": "Full text content of the tweet.",
"example": "Hello world",
"type": "string"
},
"id": {
"description": "Unique tweet ID.",
"example": "1782368585664626774",
"type": "string"
},
"in_reply_to_tweet_id": {
"description": "ID of the tweet this tweet is replying to. Null if not a reply.",
"example": "1782368585664626000",
"type": "string"
},
"in_reply_to_username": {
"description": "Username of the account this tweet is replying to.",
"example": "username",
"type": "string"
},
"is_quote_status": {
"description": "Whether this tweet quotes another tweet.",
"example": false,
"type": "boolean"
},
"is_replies_limited": {
"description": "Whether replies to this tweet are restricted by the author.",
"example": false,
"type": "boolean"
},
"is_reply": {
"description": "Whether this tweet is a reply to another tweet.",
"example": false,
"type": "boolean"
},
"lang": {
"description": "Detected language code of the tweet (e.g. `en`, `es`).",
"example": "en",
"type": "string"
},
"likes_count": {
"description": "Number of likes on the tweet.",
"example": 200,
"type": "integer"
},
"quote_count": {
"description": "Number of quote tweets.",
"example": 5,
"type": "integer"
},
"quoted_status": {
"allOf": [
{
"properties": {
"bookmark_count": {
"description": "Number of times the tweet has been bookmarked.",
"example": 15,
"type": "integer"
},
"conversation_id_str": {
"description": "ID of the root tweet in the conversation thread.",
"example": "1782368585664626774",
"type": "string"
},
"created_at": {
"description": "Tweet publication date in ISO 8601 format.",
"example": "2024-01-15T10:30:00Z",
"type": "string"
},
"entities": {
"description": "Media, links, and other embedded entities attached to the tweet.",
"items": {
"properties": {
"link": {
"description": "Direct URL of the entity.",
"example": "https://t.co/example",
"type": "string"
},
"preview": {
"description": "Preview or thumbnail URL for the entity.",
"example": "https://pbs.twimg.com/preview",
"type": "string"
},
"type": {
"description": "Entity type (e.g. `photo`, `video`, `url`).",
"example": "photo",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"full_text": {
"description": "Full text content of the tweet.",
"example": "Hello world",
"type": "string"
},
"id": {
"description": "Unique tweet ID.",
"example": "1782368585664626774",
"type": "string"
},
"in_reply_to_tweet_id": {
"description": "ID of the tweet this tweet is replying to. Null if not a reply.",
"example": "1782368585664626000",
"type": "string"
},
"in_reply_to_username": {
"description": "Username of the account this tweet is replying to.",
"example": "username",
"type": "string"
},
"is_quote_status": {
"description": "Whether this tweet quotes another tweet.",
"example": false,
"type": "boolean"
},
"is_replies_limited": {
"description": "Whether replies to this tweet are restricted by the author.",
"example": false,
"type": "boolean"
},
"is_reply": {
"description": "Whether this tweet is a reply to another tweet.",
"example": false,
"type": "boolean"
},
"lang": {
"description": "Detected language code of the tweet (e.g. `en`, `es`).",
"example": "en",
"type": "string"
},
"likes_count": {
"description": "Number of likes on the tweet.",
"example": 200,
"type": "integer"
},
"quote_count": {
"description": "Number of quote tweets.",
"example": 5,
"type": "integer"
},
"quoted_status": {
"allOf": [
{
"properties": {
"bookmark_count": {
"description": "Number of times the tweet has been bookmarked.",
"example": 15,
"type": "integer"
},
"conversation_id_str": {
"description": "ID of the root tweet in the conversation thread.",
"example": "1782368585664626774",
"type": "string"
},
"created_at": {
"description": "Tweet publication date in ISO 8601 format.",
"example": "2024-01-15T10:30:00Z",
"type": "string"
},
"entities": {
"description": "Media, links, and other embedded entities attached to the tweet.",
"items": {
"properties": {
"link": {
"description": "Direct URL of the entity.",
"example": "https://t.co/example",
"type": "string"
},
"preview": {
"description": "Preview or thumbnail URL for the entity.",
"example": "https://pbs.twimg.com/preview",
"type": "string"
},
"type": {
"description": "Entity type (e.g. `photo`, `video`, `url`).",
"example": "photo",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"full_text": {
"description": "Full text content of the tweet.",
"example": "Hello world",
"type": "string"
},
"id": {
"description": "Unique tweet ID.",
"example": "1782368585664626774",
"type": "string"
},
"in_reply_to_tweet_id": {
"description": "ID of the tweet this tweet is replying to. Null if not a reply.",
"example": "1782368585664626000",
"type": "string"
},
"in_reply_to_username": {
"description": "Username of the account this tweet is replying to.",
"example": "username",
"type": "string"
},
"is_quote_status": {
"description": "Whether this tweet quotes another tweet.",
"example": false,
"type": "boolean"
},
"is_replies_limited": {
"description": "Whether replies to this tweet are restricted by the author.",
"example": false,
"type": "boolean"
},
"is_reply": {
"description": "Whether this tweet is a reply to another tweet.",
"example": false,
"type": "boolean"
},
"lang": {
"description": "Detected language code of the tweet (e.g. `en`, `es`).",
"example": "en",
"type": "string"
},
"likes_count": {
"description": "Number of likes on the tweet.",
"example": 200,
"type": "integer"
},
"quote_count": {
"description": "Number of quote tweets.",
"example": 5,
"type": "integer"
},
"quoted_status": {
"allOf": [
{
"properties": {
"bookmark_count": {
"description": "Number of times the tweet has been bookmarked.",
"example": 15,
"type": "integer"
},
"conversation_id_str": {
"description": "ID of the root tweet in the conversation thread.",
"example": "1782368585664626774",
"type": "string"
},
"created_at": {
"description": "Tweet publication date in ISO 8601 format.",
"example": "2024-01-15T10:30:00Z",
"type": "string"
},
"entities": {
"description": "Media, links, and other embedded entities attached to the tweet.",
"items": {
"$ref": "#/components/schemas/common.TweetEntity"
},
"type": "array"
},
"full_text": {
"description": "Full text content of the tweet.",
"example": "Hello world",
"type": "string"
},
"id": {
"description": "Unique tweet ID.",
"example": "1782368585664626774",
"type": "string"
},
"in_reply_to_tweet_id": {
"description": "ID of the tweet this tweet is replying to. Null if not a reply.",
"example": "1782368585664626000",
"type": "string"
},
"in_reply_to_username": {
"description": "Username of the account this tweet is replying to.",
"example": "username",
"type": "string"
},
"is_quote_status": {
"description": "Whether this tweet quotes another tweet.",
"example": false,
"type": "boolean"
},
"is_replies_limited": {
"description": "Whether replies to this tweet are restricted by the author.",
"example": false,
"type": "boolean"
},
"is_reply": {
"description": "Whether this tweet is a reply to another tweet.",
"example": false,
"type": "boolean"
},
"lang": {
"description": "Detected language code of the tweet (e.g. `en`, `es`).",
"example": "en",
"type": "string"
},
"likes_count": {
"description": "Number of likes on the tweet.",
"example": 200,
"type": "integer"
},
"quote_count": {
"description": "Number of quote tweets.",
"example": 5,
"type": "integer"
},
"quoted_status": {
"allOf": [
{
"$ref": "#/components/schemas/common.Tweet"
}
],
"description": "The original tweet being quoted. Present only if `is_quote_status` is true."
},
"reply_count": {
"description": "Number of replies to the tweet.",
"example": 10,
"type": "integer"
},
"retweet_count": {
"description": "Number of retweets.",
"example": 50,
"type": "integer"
},
"retweeted_status": {
"allOf": [
{
"$ref": "#/components/schemas/common.Tweet"
}
],
"description": "The original tweet being retweeted. Present only for retweets."
},
"user": {
"allOf": [
{
"$ref": "#/components/schemas/common.User"
}
],
"description": "Author of the tweet."
},
"view_count": {
"description": "Number of views (impressions).",
"example": 10000,
"type": "integer"
}
},
"type": "object"
}
],
"description": "The original tweet being quoted. Present only if `is_quote_status` is true."
},
"reply_count": {
"description": "Number of replies to the tweet.",
"example": 10,
"type": "integer"
},
"retweet_count": {
"description": "Number of retweets.",
"example": 50,
"type": "integer"
},
"retweeted_status": {
"allOf": [
{
"properties": {
"bookmark_count": {
"description": "Number of times the tweet has been bookmarked.",
"example": 15,
"type": "integer"
},
"conversation_id_str": {
"description": "ID of the root tweet in the conversation thread.",
"example": "1782368585664626774",
"type": "string"
},
"created_at": {
"description": "Tweet publication date in ISO 8601 format.",
"example": "2024-01-15T10:30:00Z",
"type": "string"
},
"entities": {
"description": "Media, links, and other embedded entities attached to the tweet.",
"items": {
"$ref": "#/components/schemas/common.TweetEntity"
},
"type": "array"
},
"full_text": {
"description": "Full text content of the tweet.",
"example": "Hello world",
"type": "string"
},
"id": {
"description": "Unique tweet ID.",
"example": "1782368585664626774",
"type": "string"
},
"in_reply_to_tweet_id": {
"description": "ID of the tweet this tweet is replying to. Null if not a reply.",
"example": "1782368585664626000",
# --- truncated at 32 KB (638 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/sorsa/refs/heads/main/json-schema/sorsa-tweet-schema.json