Latenode

Automatically fetch and store webhook data in a structured format

This template runs once a day, requests JSON from the URL you set, parses it in JavaScript, and inserts a PostgreSQL row.

Use it to snapshot an API, a feed, or a system that exposes data at a stable endpoint. Put any API token on the HTTP request node. Put database credentials on the PostgreSQL connection.

Updated Sep 16, 2026Est. run: 9sEst. cost: $0.0006
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Stores a daily snapshot of a JSON endpoint in PostgreSQL
  • Fetches with an HTTP request on a schedule
  • Shapes fields in JavaScript so columns stay stable
  • Keeps database credentials on the PostgreSQL connection

How it works

1
Trigger

Run every day

A schedule starts the scenario once per day at the time you choose.

2
Action

Fetch the JSON

An HTTP request loads data from the URL you set. Put any API token on that HTTP node.

3
Logic

Shape the fields

JavaScript parses the payload into the columns your table expects.

4
Action

Insert the row

PostgreSQL writes those fields into the table you choose.

Setup guide

1

Set the schedule

Add a schedule that runs once every 24 hours. Pick a time in your timezone.

2

Fetch the URL

Add an HTTP request. Set the method and URL for the source. Store any API token on that node.

3

Connect PostgreSQL

Add a PostgreSQL connection and paste the host, database, user, and password there. Choose the table that should receive rows.

4

Map columns and insert

In JavaScript, return stable field names that match your table columns, then insert the row. Run once by hand and confirm the new record.

Requirements

A URL that returns JSON Latenode can request
Any API token stored on the HTTP request node
A PostgreSQL table Latenode can insert into, with credentials on the PostgreSQL connection

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.