# X Search Digest

Source: https://openflow.run/zh-cn/templates/x-search-digest/
Content language: en
Template revision: f2bf5895d91486412f320151dafd9c6b95b42091

营销

Search X once through Xquik and return normalized posts, a readable digest, and pagination information.

[在 Open Flow 中使用](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2Ff2bf5895d91486412f320151dafd9c6b95b42091%2Fworkflows%2Fx-search-digest%2Ftemplates%2Fx-search-digest.openflow.json)

*   [Open Flow JSON](https://raw.githubusercontent.com/oomol-lab/awesome-workflow-templates/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/x-search-digest/templates/x-search-digest.openflow.json)
*   [n8n JSON](https://raw.githubusercontent.com/oomol-lab/awesome-workflow-templates/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/x-search-digest/templates/x-search-digest.n8n.json)

![X Search Digest 在 Open Flow 中的工作流截图](https://openflow.run/_astro/preview-light.ClD8SuZe_pF491.webp)

Run a query through Xquik and receive normalized X posts with a plain-text digest. The workflow reads one response and returns its pagination flag and cursor.

## Setup

In Open Flow, import the JSON and bind **Search X with Xquik → Authentication token** to a secret Variable containing your Xquik API key. The template leaves this value empty. Enter `query` and `limit` when starting the workflow, for example `n8n automation` and `10`.

In n8n, edit **Search Settings**. Create a Header Auth credential with name `X-API-Key` and your Xquik key as its value, then select it on **Search X with Xquik**. Run **Manual Trigger**.

Use a nonempty query of up to 4,096 characters and an integer limit from 1 to 10,000. Xquik recommends keeping queries within 512 characters; larger or expensive searches may fail or return fewer rows because of service limits or available quota. See the [official API specification](https://xquik.com/openapi.json) for current search behavior.

## Results

*   `tweets` contains each returned post’s `id`, `url`, `text`, `author`, `created_at`, and `metrics`.
*   `digest` numbers posts in response order and separates them with blank lines. No matches returns `No matching X posts found for this query.`
*   `results_count`, `has_more`, and `next_cursor` describe this response. The workflow does not follow the cursor or claim to retrieve every match.

Each run makes one search request, with a 120-second task/request timeout and no workflow retry. HTTP failures or malformed responses stop the run. A repeated run performs another search; there is no saved watermark, deduplication, posting, or model call.

## Changes to the source

*   Store the API key in the platform’s secret configuration instead of an environment expression.
*   Validate the query and limit before searching, and reject malformed responses instead of reporting them as no matches.
*   Read the current Xquik `has_next_page`, `createdAt`, and metric fields while retaining the source’s older field aliases.
*   Use real line breaks in the digest.

Adapted from [Monitor X Search with Xquik](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/Instagram_Twitter_Social_Media/Monitor%20X%20Search%20with%20Xquik.json) in [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates).

Source collection notice: © 2024–2026 Enes Cingoz, [CC BY 4.0](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/LICENSE). The source export does not identify a separate template author or license. This adaptation includes the changes listed above; see [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/f2bf5895d91486412f320151dafd9c6b95b42091/README.md#licensing) for the scope of OOMOL contributions and third-party material.

## 配置要求

*   Xquik API key and available search quota
*   Open Flow secret Variable or n8n Header Auth credential
*   Search query and result limit

*   x
*   search
*   xquik
*   research

[在 GitHub 查看](https://github.com/oomol-lab/awesome-workflow-templates/blob/f2bf5895d91486412f320151dafd9c6b95b42091/workflows/x-search-digest/README.md)
