AutomationFlowsGeneral › Fetch Last 5 SpaceX Launches via GraphQL

Fetch Last 5 SpaceX Launches via GraphQL

Original n8n title: Get the Last Five Spacex Launches From the Spacex Land API Using Graphql

Get The Last Five Spacex Launches From The Spacex Land Api Using Graphql. Uses manualTrigger, graphql. Event-driven trigger; 2 nodes.

Event trigger★☆☆☆☆ complexity2 nodesGraphQL
General Trigger: Event Nodes: 2 Complexity: ★☆☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        250,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "GraphQL",
      "type": "n8n-nodes-base.graphql",
      "position": [
        450,
        300
      ],
      "parameters": {
        "query": "{\n  launchesPast(limit: 5) {\n    mission_name\n    launch_date_local\n    launch_site {\n      site_name_long\n    }\n    links {\n      article_link\n      video_link\n    }\n    rocket {\n      rocket_name\n      first_stage {\n        cores {\n          flight\n          core {\n            reuse_count\n            status\n          }\n        }\n      }\n      second_stage {\n        payloads {\n          payload_type\n          payload_mass_kg\n          payload_mass_lbs\n        }\n      }\n    }\n    ships {\n      name\n      home_port\n      image\n    }\n  }\n}",
        "endpoint": "https://api.spacex.land/graphql/",
        "requestFormat": "json",
        "responseFormat": "string",
        "headerParametersUi": {
          "parameter": []
        }
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "GraphQL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Get The Last Five Spacex Launches From The Spacex Land Api Using Graphql. Uses manualTrigger, graphql. Event-driven trigger; 2 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

n8n-3-41: GraphQL. Uses graphql, formTrigger, form. Event-driven trigger; 5 nodes.

GraphQL, Form Trigger, Form
General

Set Credentials Dynamically Using Expressions. Uses formTrigger, nasa, respondToWebhook, stickyNote. Event-driven trigger; 7 nodes.

Form Trigger, Nasa
General

Email form. Uses noOp, hunter, formTrigger, sendGrid. Event-driven trigger; 7 nodes.

Hunter, Form Trigger, SendGrid
General

Dynamic credentials using expressions. Uses formTrigger, nasa, respondToWebhook, stickyNote. Event-driven trigger; 7 nodes.

Form Trigger, Nasa
General

Automate Your Customer Service With WhatsApp Business Cloud & Asana. Uses formTrigger, whatsApp, stickyNote, asana. Event-driven trigger; 7 nodes.

Form Trigger, WhatsApp, Asana