Bedrijfsdata icon

Bedrijfsdata

Get data from the Bedrijfsdata API.

Overview

The "Live Web RAG" resource with the "Get RAG Search" operation allows users to perform search queries against popular search engines and retrieve relevant snippets of information. This node is useful for scenarios where you want to gather summarized content or search results dynamically based on a query, such as market research, competitive analysis, or content aggregation.

For example, you can enter a search query like "latest electric cars 2024" and get back snippets, summaries, or raw content from various web sources related to that topic. You can customize the search by country, language, and limit the number of results returned. Additionally, output options let you control the format of the returned content (e.g., cleaned HTML, markdown, raw content).

Properties

Name Meaning
Search Query (Required) The text query to search for. Example: "climate change news".
Search Options Optional parameters to refine the search:
• Country (ISO 639-1): e.g., "US", "NL"
• Language (ISO 3166-1 Alpha-2): e.g., "en", "nl"
• Limit: Maximum number of results to return (minimum 1)
• Timeout: Time allocated for content retrieval in seconds (e.g., 0.5 for quick, 10 for thorough).
Output Options Controls the format and detail level of the output:
• Add Cleaned HTML: Disable or include cleaned HTML content
• Add Markdown: No markdown, CommonMark, or cleaned markdown without images/links
• Add Raw Content: Disable or include raw content
• Add Raw HTML: Disable or include raw HTML
• Max. Snippets Length: Maximum length for snippets; if >0, unique sentences list is added.

Output

The node outputs JSON data containing search results with snippets and optionally enriched content formats depending on the output options selected:

  • Snippets: Text excerpts relevant to the search query.
  • Cleaned HTML: Sanitized HTML content suitable for display.
  • Markdown: Formatted markdown content, optionally cleaned.
  • Raw Content / Raw HTML: Original unprocessed content from the source.
  • Unique Sentences: If max snippet length is set, a list of unique sentences extracted from the snippets.

If binary data were involved (not indicated here), it would typically represent files or media retrieved during the search.

Dependencies

  • Requires an API key credential for authentication to the Bedrijfsdata API service.
  • The node makes HTTP GET requests to the /rag_search endpoint of the Bedrijfsdata API.
  • Network connectivity to the external API endpoint https://api.bedrijfsdata.nl/v1.2 is necessary.
  • Proper configuration of the API key credential in n8n is required.

Troubleshooting

  • Empty or no results returned: Check that the search query (q) is not empty and correctly formatted. Also verify country and language codes are valid ISO standards.
  • Timeouts or slow responses: Adjust the timeout property to allow more time for content retrieval if summaries are missing or incomplete.
  • API authentication errors: Ensure the API key credential is correctly configured and has sufficient permissions.
  • Invalid parameter values: Confirm that numeric fields like limit and max_snippets_length are positive integers.
  • Unexpected API response: Could indicate changes in the external API or network issues; check logs and retry later.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion