Serve tech trends for desktop widgets via JSON webhook from Data Table

Go to Workflow
0 views
Built by Jade Jade
Created on August 08, 2026

Description

Quick Overview
This workflow exposes a webhook endpoint that returns today’s tech trends as JSON for a desktop widget by reading records from an n8n Data Table, splitting items into news and YouTube lists, and responding with a CORS-enabled JSON payload.

How it works
Receives an HTTP request via a webhook trigger.
Queries the n8n Data Table named tech_trends for rows matching the configured date filter.
Separates results by source (YouTube vs. non-YouTube), sorts by rank, and builds two top-3 lists of titles.
Returns an HTTP 200 response with Content-Type: application/json and Access-Control-Allow-Origin: * containing the formatted JSON payload.

Setup
Activate the workflow and copy the production webhook URL into your desktop widget or any client that will request the data.
Populate the n8n Data Table tech_trends with at least date, rank, title, and source fields, and update the date filter value in the Data Table query to match your desired “today” logic.
If your client expects a different JSON schema, adjust the Code step that builds the news and youtube arrays and ensure the response body maps to the formatted output.

Nodes Used (1)

Code
n8n-nodes-base.code