Cosense icon

Cosense

Read and write pages in Cosense (formerly Scrapbox)

Overview

This node integrates with Cosense (formerly Scrapbox) to perform a full-text search across pages within a specified project. It allows users to query the content of all pages in a project and retrieve those that match the search terms.

Common scenarios where this node is beneficial include:

  • Quickly finding relevant pages containing specific keywords or phrases within a large Cosense project.
  • Automating workflows that require filtering or processing pages based on their content.
  • Integrating Cosense content search into broader automation pipelines for knowledge management or documentation systems.

For example, you could use this node to find all pages mentioning "API integration" in your project named "my-project" and then process or export those pages further.

Properties

Name Meaning
Project Name The name of your Cosense/Scrapbox project where the full text search will be performed.
Query The search query string used for the full text search across pages in the specified project.

Output

The output is an array of JSON objects representing pages that match the full-text search query. Each object corresponds to a page found by the search and contains its data as returned by the Cosense API client.

The exact structure of each page object depends on the Cosense API response but typically includes page metadata and content snippets matching the query.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to Cosense via an API key credential configured in n8n.
  • The node uses the Cosense API client internally to communicate with the Cosense service.
  • Network access to the Cosense API endpoint is necessary.

Troubleshooting

  • Empty results: If no pages are returned, verify that the project name is correct and that the query string matches existing content.
  • Authentication errors: Ensure that the API key credential is valid and has sufficient permissions to access the project.
  • Malformed query: The query should be a plain string; complex query syntax might not be supported or could cause errors.
  • Rate limits or API errors: If the Cosense API returns errors due to rate limiting or server issues, retry after some time or check the API status.

Links and References

Discussion