Use this powerful n8n workflow to automatically query the SpaceX GraphQL API and retrieve details for the last 5 launches. Learn how to use the specific GraphQL n8n node effectively.
Download this n8n workflow template and start using it instantly.
This automation provides an excellent demonstration of utilizing the specialized GraphQL n8n node to interact with complex web services. Many modern APIs rely on GraphQL for efficient data querying. Instead of retrieving excessive data via a standard REST API, this n8n workflow uses a precise query to retrieve only the mission name, launch details, rocket configuration, and associated ship data for the last five launches.
This simple yet powerful n8n template ensures minimal latency and bandwidth usage, making it an efficient piece of any data integration strategy built within n8n. If you are learning how to manage external data sources, analyzing this n8n workflow provides crucial insights into data extraction techniques.
The entire process is initiated by a manual n8n trigger, designed for immediate execution and testing. The flow begins at the 'On clicking 'execute'' n8n trigger node. From there, the execution passes directly to the 'GraphQL' n8n node.
The 'GraphQL' n8n node is configured to connect to the public https://api.spacex.land/graphql/ endpoint. It sends a large, specific GraphQL query requesting the last five entries (launchesPast(limit: 5)). This query retrieves deeply nested information including launch site names, article and video links, detailed rocket information (cores, reuse count, payloads, mass), and associated ships.
Upon receiving the response, the GraphQL n8n node automatically parses the string response into structured JSON objects, making the rich space data immediately available for subsequent n8n nodes in the workflow, such as storage or notification steps. This entire n8n workflow is a single-step data retrieval operation.
On clicking 'execute' (Manual Trigger n8n Trigger)
Function: Acts as the starting point, allowing manual execution of the n8n workflow when needed.
Key Configuration: Standard manual n8n trigger configuration.
GraphQL (GraphQL n8n Node)
Function: Executes the defined GraphQL query against the SpaceX API to retrieve structured launch data.
Key Configuration:
Endpoint: https://api.spacex.land/graphql/.
Query: A detailed query targeting launchesPast(limit: 5), extracting data points like missionname, launchdate_local, and nested fields for rocket and ships. This demonstrates the power of the GraphQL n8n node to request precise data structures.
Use this n8n workflow template to quickly fetch real-time weather information for any specified city using the OpenWeatherMap n8n node. Simple and efficient n8n automation for utility tasks.

Use this advanced n8n workflow to expose Yourls functionality—shortening, expanding, and statistics retrieval—as callable tools for AI agents, leveraging the n8n trigger functionality.

Monitor any RSS feed using this powerful n8n workflow. It filters out previously processed articles, structures the data, and scrapes the primary image URL using a sophisticated n8n node for efficient content processing.

Use this specialized n8n workflow to scan your instance for potentially damaged n8n node connections resulting from the 0.214.3 migration bug. Essential diagnostic n8n templates for administrators.









































