Real-Time ISS Tracking with n8n, MQTT & HTTP Request

Track the International Space Station’s real-time position using this n8n automation workflow, fetching live data every minute and broadcasting it via MQTT. This workflow solves the challenge of timely ISS tracking with automated updates and reliable data distribution.
cron
httpRequest
mqtt
+1
Workflow Identifier: 2356
NODES in Use: Cron, HTTP Request, Set, MQTT
Track ISS with n8n and MQTT

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow gets the current location of the International Space Station every minute.
It fetches latitude, longitude, and timestamp from a public API.
Then it sends this data via MQTT so other apps can use live ISS information.
This saves time and avoids mistakes from manual data checking.
You get real-time ISS positions automatically updated every minute.


Who should use this workflow

This is useful for people who want fast, accurate ISS data without manual work.
Anyone running a satellite tracker dashboard, alert system, or educational tool can use it.
It fits hobbyists and scientists needing up-to-date ISS positions.
You need an MQTT broker to receive the live data.
Also, internet access for the n8n server to call the ISS API is required.


Tools and services used

  • Cron node: Runs the workflow every minute.
  • HTTP Request node: Gets ISS position from public ISS API.
  • Set node: Extracts name, latitude, longitude, and timestamp from the API response.
  • MQTT node: Publishes ISS data on topic “iss-position” for subscribers.
  • MQTT broker: Receives messages from n8n and passes to clients.

How the workflow works: Input → Process → Output

Inputs

The workflow triggers every minute using the Cron node.
It uses the current timestamp (Date.now()) as a query parameter for the HTTP call.
No API key is needed for the public ISS API.

Processing steps

The HTTP Request node calls the ISS API, getting position data.
The response is an array with fields like “name”, “latitude”, “longitude”, and “timestamp”.
The Set node cleans this data, picking only these four fields.
“Keep Only Set” is turned on to filter output.
The MQTT node takes this clean data and publishes it on the “iss-position” topic.
Your MQTT broker delivers this live data to any subscribers.

Output

Subscribers receive real-time ISS position updates every minute.
Data includes satellite name, latitude, longitude, and timestamp.
This supports dashboards or alert systems needing fresh location info.


Beginner step-by-step: How to use this workflow in n8n production

Step 1: Import the workflow

  1. Download the workflow file using the “Download” button on this page.
  2. Open your n8n editor.
  3. Click “Import from File” and select the downloaded workflow.

Step 2: Configure the imported workflow

  1. Add your MQTT broker credentials in the MQTT node under “Credentials”.
  2. Verify the HTTP Request node uses the URL: https://api.wheretheiss.at/v1/satellites/25544/positions with query parameter timestamps={{Date.now()}}.
  3. Check the Set node maps the response fields correctly:
    – Name: {{$json["0"]["name"]}}
    – Latitude: {{$json["0"]["latitude"]}}
    – Longitude: {{$json["0"]["longitude"]}}
    – Timestamp: {{$json["0"]["timestamp"]}}
  4. Adjust any IDs, emails, channels, or topic names in the MQTT node if you want a different topic.

Step 3: Test and activate

  1. Run the workflow once manually to see if it gets data and publishes correctly.
  2. Check MQTT subscribers receive messages under topic “iss-position”.
  3. Activate the workflow to run every minute automatically.
  4. If self hosting n8n, confirm internet access and broker connection; refer to self-host n8n if needed.

Customization ideas

  • Change the Cron node to run every 30 seconds or every 5 minutes for faster or slower updates.
  • Add more data fields in the Set node, like altitude or velocity, using the API response paths.
  • Use several MQTT nodes to publish on different topics for different user groups.
  • Add a conditional node to check if the ISS is near certain coordinates and send alerts to other MQTT topics or systems.

Handling errors and edge cases

  • HTTP Request node returns no data or error: Check the API URL and parameters. Test API in browser or with tools like Postman. Check n8n logs for errors.
  • MQTT node fails to publish: Verify MQTT broker credentials and availability. Use an MQTT client tool to test connection.
  • Ensure time on n8n server is accurate because timestamp is crucial for API queries.

Summary and results

✓ The workflow automatically updates ISS location every minute.
✓ It removes manual fetching and error risks.
✓ MQTT delivers live data to dashboards or apps instantly.
✓ User saves 30 minutes of manual work per hour.
✓ Real-time updates improve ISS tracking accuracy and timeliness.


Track ISS with n8n and MQTT

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

Yes. The MQTT node works with any broker that supports the MQTT protocol.
The ISS API is public with generally wide limits, but frequent calls may require monitoring and possible caching.
MQTT can be secured using TLS. The user must ensure broker and clients use secure connections to protect data.
Check that MQTT broker credentials are correct and that the broker is online. Test connection with MQTT client tools.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.