JetNet Tool icon

JetNet Tool

Access JetNet aviation data for AI Agents

Overview

This node integrates with the JetNet aviation data service to retrieve detailed and comprehensive flight-related information about aircraft. Specifically, the "Get Flight Data" operation under the "Aircraft" resource fetches extensive flight history and data for a specified aircraft.

Use cases include:

  • Aviation analysts or companies needing historical flight data for fleet management.
  • Maintenance teams tracking flight hours and usage patterns.
  • Market intelligence professionals analyzing aircraft utilization.
  • AI agents requiring enriched aviation data for decision-making or reporting.

For example, you can input an aircraft identifier to obtain its full flight history, including dates, routes, and other relevant flight metrics.

Properties

Name Meaning
Tool Description Choose how to set the tool's description: either automatically based on resource and operation, or manually provide a custom description.
Description (Shown only if "Set Manually" is selected) A text field to describe what this tool does, helping language models understand its purpose better.

Output

The node outputs a JSON object with the following structure:

{
  "success": true,
  "resource": "aircraft",
  "operation": "getFlightData",
  "data": { /* comprehensive flight data from JetNet API */ },
  "timestamp": "ISO 8601 timestamp"
}
  • success: Indicates whether the API call was successful.
  • resource: The resource type used ("aircraft").
  • operation: The operation performed ("getFlightData").
  • data: Contains the detailed flight data returned by JetNet, which may include flight history records, flight details, timestamps, and related metadata.
  • timestamp: The time when the response was generated.

If the request fails, the output will contain:

{
  "success": false,
  "error": "Error message",
  "resource": "aircraft",
  "operation": "getFlightData",
  "timestamp": "ISO 8601 timestamp"
}

No binary data output is indicated for this operation.

Dependencies

  • Requires an active connection to the JetNet API service.
  • Needs an API authentication token and security token configured in n8n credentials for JetNet.
  • The node makes HTTP requests to JetNet endpoints using these credentials.
  • No additional environment variables are explicitly required beyond the API credentials.

Troubleshooting

  • Missing Aircraft ID: The operation requires an aircraft identifier. If not provided, the node throws an error: "Aircraft ID is required for this operation." Ensure you supply a valid aircraft ID.
  • Invalid Registration Number: For operations involving registration numbers, ensure the format matches expected patterns; otherwise, errors may occur.
  • API Authentication Errors: If credentials are invalid or expired, the node will fail to authenticate. Verify your API key and tokens.
  • Unknown Operation or Resource: Using unsupported operations or resources will result in errors like "Unknown aircraft operation" or "Unknown resource."
  • Network Issues: Connectivity problems to the JetNet API endpoint will cause request failures.
  • Rate Limits: Excessive requests might be throttled by JetNet; handle such errors gracefully.

To resolve errors, verify input parameters, check credential validity, and consult JetNet API documentation for correct usage.

Links and References

Discussion