BeeAI icon

BeeAI

Interact with BeeAI API

Overview

The node integrates with the BeeAI API to interact with various AI-powered resources, including locations. Specifically, for the "Location" resource and the "List Locations" operation, it fetches a paginated list of location data from the BeeAI service. This is useful when you want to retrieve multiple location entries managed or generated by the BeeAI system, such as for mapping, analysis, or display purposes.

Practical examples include:

  • Retrieving a list of known locations for use in a travel app.
  • Fetching location data to enrich datasets with geographic context.
  • Displaying available locations in a user interface with pagination controls.

Properties

Name Meaning
Pagination Controls how many location items to fetch and which page to retrieve from the API.
Page Number The specific page number of results to fetch (minimum 1).
Number of Items per Page Maximum number of location results to return per request (minimum 1).

Output

The node outputs JSON data containing an array of location objects retrieved from the BeeAI API. Each item represents a location entity with its associated details as provided by the API.

If the API supports binary data related to locations (e.g., images or maps), the node would handle that accordingly, but based on the provided code and properties, the output focuses on JSON-formatted location information.

Dependencies

  • Requires an API key credential for authenticating requests to the BeeAI API.
  • The base URL for API requests is https://api.bee.computer.
  • Proper configuration of the API key credential within n8n is necessary for successful communication.

Troubleshooting

  • Common issues:

    • Invalid or missing API key will cause authentication failures.
    • Requesting a page number beyond the available range may return empty results.
    • Setting the limit too high might lead to performance issues or API rate limiting.
  • Error messages:

    • Authentication errors typically indicate problems with the API key; verify the credential setup.
    • HTTP errors like 400 or 404 suggest invalid parameters or resource not found; check pagination values.
    • Network errors could be due to connectivity issues; ensure the n8n instance can reach the BeeAI API endpoint.

Links and References

Discussion