{
  "openapi": "3.0.1",
  "info": {
    "title": "Tweet Screenshot Generator - X Posts to PNG, $5/1k, No Key",
    "description": "Turn public X/Twitter post links into clean PNG or JPEG images: light, dim or dark theme, retina scale, transparent or gradient background, photos, quoted posts. Returns the post data too. No login, no API key, no proxy. $5 per 1000 screenshots.",
    "version": "0.1",
    "x-build-id": "u3ucgKpzSXOvX2COl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/martin10291~tweet-screenshot-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-martin10291-tweet-screenshot-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/martin10291~tweet-screenshot-generator/runs": {
      "post": {
        "operationId": "runs-sync-martin10291-tweet-screenshot-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/martin10291~tweet-screenshot-generator/run-sync": {
      "post": {
        "operationId": "run-sync-martin10291-tweet-screenshot-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "tweets": {
            "title": "X / Twitter post links or IDs",
            "type": "array",
            "description": "Public post links (x.com, twitter.com, mobile.twitter.com, fxtwitter, vxtwitter) or bare post IDs. One image per post and theme.",
            "items": {
              "type": "string"
            }
          },
          "themes": {
            "title": "Themes",
            "type": "array",
            "description": "light, dim and/or dark. Pick several to get one image per theme in the same result row (you pay per post, not per image).",
            "items": {
              "type": "string",
              "enum": [
                "light",
                "dim",
                "dark"
              ]
            },
            "default": [
              "light"
            ]
          },
          "width": {
            "title": "Card width (px)",
            "minimum": 320,
            "maximum": 1200,
            "type": "integer",
            "description": "Width of the post card in CSS pixels, 320-1200. X's own embed is 550.",
            "default": 550
          },
          "scale": {
            "title": "Pixel scale",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 = normal, 2 = retina (sharp on phones and slides), 3 = extra sharp. The image is width x scale pixels wide.",
            "default": 2
          },
          "background": {
            "title": "Background",
            "type": "string",
            "description": "Around the card: none (transparent PNG), white, black, gray, blue, sunset, mint, purple (gradients) or a hex colour like #ffcc00. Use it with padding.",
            "default": "none"
          },
          "padding": {
            "title": "Padding (px)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Space between the card and the image edge, 0-200. 40-60 looks good with a gradient background.",
            "default": 0
          },
          "format": {
            "title": "Image format",
            "enum": [
              "png",
              "jpeg"
            ],
            "type": "string",
            "description": "png (supports transparency) or jpeg (smaller files).",
            "default": "png"
          },
          "fontSize": {
            "title": "Text size (px)",
            "minimum": 13,
            "maximum": 32,
            "type": "integer",
            "description": "Size of the post text, 13-32. Bigger text reads better in videos and slides.",
            "default": 17
          },
          "showMetrics": {
            "title": "Show likes and replies",
            "type": "boolean",
            "description": "Show the like and reply counts under the post.",
            "default": true
          },
          "showDate": {
            "title": "Show date",
            "type": "boolean",
            "description": "Show the post time and date.",
            "default": true
          },
          "timezone": {
            "title": "Time zone",
            "type": "string",
            "description": "IANA time zone for the shown date, e.g. America/New_York or Europe/Berlin. Default UTC.",
            "default": "UTC"
          },
          "showMedia": {
            "title": "Show photos and video previews",
            "type": "boolean",
            "description": "Show attached photos (up to 4) and the video poster with a play icon.",
            "default": true
          },
          "showQuoted": {
            "title": "Show quoted post",
            "type": "boolean",
            "description": "Show a quoted post inside the card.",
            "default": true
          },
          "showReplyTo": {
            "title": "Show 'Replying to'",
            "type": "boolean",
            "description": "For replies, show the 'Replying to @name' line.",
            "default": true
          },
          "showLogo": {
            "title": "Show X logo",
            "type": "boolean",
            "description": "Show the X logo in the top right corner of the card.",
            "default": true
          },
          "border": {
            "title": "Card border",
            "type": "boolean",
            "description": "Thin border around the card.",
            "default": true
          },
          "rounded": {
            "title": "Rounded corners",
            "type": "boolean",
            "description": "Rounded card corners (16 px).",
            "default": true
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language code sent to the X embed endpoint (affects some labels), e.g. en, de, es.",
            "default": "en"
          },
          "dataOnly": {
            "title": "Data only (no images)",
            "type": "boolean",
            "description": "Only return the post data (text, author, likes, replies, media links) without rendering images. Faster.",
            "default": false
          },
          "maxItems": {
            "title": "Max posts",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most posts processed in one run (and the most you pay for).",
            "default": 100
          },
          "onlyNew": {
            "title": "Only new posts",
            "type": "boolean",
            "description": "Skip post IDs this monitor already captured in earlier runs. Good for schedules fed by a tweet scraper.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the only-new memory. Use a different ID for each separate feed.",
            "default": "default"
          },
          "includeFailed": {
            "title": "Include unavailable posts",
            "type": "boolean",
            "description": "Also save a row (with the error) for deleted, protected or wrong post links. These rows count as results like normal rows; when off, failures are only listed in RUN_SUMMARY.",
            "default": false
          },
          "datasetId": {
            "title": "Dataset (integration input)",
            "type": "string",
            "description": "Optional. Pick a dataset (or paste its ID) from any X/Twitter scraper; post links are read from its url / twitterUrl / tweetUrl fields. When this actor runs as an integration, the triggering run's dataset is used automatically. If set, the links found replace the main list."
          },
          "datasetField": {
            "title": "Dataset field",
            "type": "string",
            "description": "Optional. The item field that holds the value, for example website, url or videoUrl (dot paths like author.url work). Empty = detected automatically."
          },
          "datasetMaxItems": {
            "title": "Max values from the dataset",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Upper limit of unique values taken from the dataset, to keep the cost under control.",
            "default": 1000
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}