What This Workflow Does
This automated workflow solves the challenge of continuously monitoring and recording the International Space Station's position without manual intervention. Every minute, it queries the ISS's current location via API, processes the coordinates, and stores them in Google BigQuery for historical analysis and visualization.
The template demonstrates a powerful pattern applicable beyond space tracking - any business needing to collect time-series location data (vehicles, devices, personnel) can adapt this architecture. It showcases automated API calls, data transformation, and cloud database integration in a single, maintainable workflow.
How It Works
1. Scheduled Trigger
The workflow initiates every minute using n8n's scheduler, ensuring regular position updates without manual triggering. This cron-like functionality can be adjusted to any interval needed for your specific tracking requirements.
2. ISS Location API Call
Each execution queries the ISS's current position from a public API, retrieving latitude, longitude, altitude, and velocity data. The same approach works with commercial GPS APIs by simply replacing the endpoint.
3. Data Transformation
The raw API response gets processed into a structured format optimized for BigQuery storage. This step demonstrates how to prepare location data for efficient analytics database insertion.
4. BigQuery Integration
The processed location data automatically inserts into your specified BigQuery table, creating a timestamped historical record. This integration pattern works identically for business location data like vehicle fleets or asset tracking.
Who This Is For
This template serves multiple audiences: educators creating STEM projects about orbital mechanics, developers learning API-to-database integrations, and businesses prototyping location tracking systems. The underlying architecture applies to:
- Logistics companies tracking vehicle fleets
- Field service businesses monitoring technician locations
- Retailers analyzing customer movement patterns
- Manufacturers implementing IoT asset tracking
Pro tip: While this template uses ISS data, you can adapt it to any location tracking need by simply replacing the API endpoint with your preferred GPS or movement data source.
What You'll Need
- An n8n instance (cloud or self-hosted)
- Google Cloud Platform account with BigQuery enabled
- BigQuery dataset and table created for location data
- Google Cloud service account credentials with BigQuery write permissions
Quick Setup Guide
- Download the JSON workflow file
- Import into your n8n instance
- Configure your Google Cloud credentials in the BigQuery node
- Specify your target dataset and table names
- Adjust the schedule interval if needed (default: 1 minute)
- Activate the workflow
Key Benefits
Eliminates manual data collection: Automatically captures precise location data around the clock without human intervention, ensuring complete datasets for analysis.
Demonstrates scalable architecture: The same workflow can handle 10 or 10,000 location updates per day by simply adjusting the schedule and API calls.
Provides analytics-ready data: Structured BigQuery storage enables immediate analysis using SQL, Data Studio, or other BI tools without additional processing.
Educational foundation: Understand API-to-database integration patterns applicable to commercial tracking systems beyond space applications.