{
  "name": "Twitter (X) Media Downloader to n8n only",
  "nodes": [
    {
      "id": "2dd34e3e-afa2-45e5-a398-a56cb2965cdb",
      "name": "Run by hand",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "parameters": {}
    },
    {
      "id": "a4c0a476-c3b1-47cb-a849-8a3ecaf3d263",
      "name": "Every day",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        200
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "notes": "Activate the workflow to run on this schedule."
    },
    {
      "id": "9938c5f2-2f3f-40b8-a8b9-095542653a7f",
      "name": "Run Apify Actor",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        100
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/actors/dataspryva~twitter-x-media-downloader/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"postUrls\": [\n    \"https://x.com/NASA/status/2107095768821576019\"\n  ],\n  \"maxPostsPerUser\": 1,\n  \"maxItems\": 1,\n  \"mediaTypes\": [\n    \"video\",\n    \"photo\",\n    \"gif\"\n  ],\n  \"imageQuality\": \"orig\",\n  \"videoQuality\": \"best\",\n  \"downloadAllQualities\": false,\n  \"includePosterImage\": false,\n  \"includeAltText\": true,\n  \"audioOnly\": false,\n  \"audioFormat\": \"m4a\",\n  \"includeQuotedMedia\": true,\n  \"includeMetadata\": true,\n  \"minLikes\": 0,\n  \"minRetweets\": 0,\n  \"onlyVerifiedAuthors\": false,\n  \"saveToFile\": false\n}",
        "options": {
          "timeout": 310000
        }
      },
      "notes": "Actor: dataspryva/twitter-x-media-downloader. Select a Header Auth credential: name Authorization, value Bearer + your Apify token. Edit the JSON body to change the input.",
      "notesInFlow": false
    },
    {
      "id": "a0508316-9f27-432b-a575-868a8427236b",
      "name": "Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -370
      ],
      "parameters": {
        "content": "## Twitter (X) Media Downloader\n\nSource: [dataspryva/twitter-x-media-downloader](https://apify.com/dataspryva/twitter-x-media-downloader) on Apify.\n\n1. In **Run Apify Actor**, create a Header Auth credential: name `Authorization`, value `Bearer YOUR_APIFY_TOKEN` with your token.\n2. Click **Execute workflow**. Each record arrives as one n8n item.\n3. Edit the JSON body of **Run Apify Actor** to change the input.\n\nGenerated by recipeforagents.com. Validated, not executed: runs are billed to your Apify account.",
        "height": 340,
        "width": 460,
        "color": 6
      }
    }
  ],
  "connections": {
    "Run by hand": {
      "main": [
        [
          {
            "node": "Run Apify Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every day": {
      "main": [
        [
          {
            "node": "Run Apify Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}
