VOOZH about

URL: https://apify.com/petr_cermak/postgresql-insert

⇱ PostgreSQL Insert Β· Apify


Pricing

Pay per usage

Go to Apify Store

This act takes a crawler execution and inserts it's results into a remote PostgreSQL database.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

πŸ‘ Petr Cermak

Petr Cermak

Maintained by Community

Actor stats

0

Bookmarked

39

Total users

0

Monthly active users

5 years ago

Last modified

Share

act-postgresql-insert

Apify act for inserting crawler results into a remote PostgreSQL table.

This act fetches all results from a specified Apifier crawler execution and inserts them into a table in a remote PostgreSQL database.

The act does not store its state, i.e. if it crashes it restarts fetching all the results. Therefore you should only use it for executions with low number of results.

INPUT

Input is a JSON object with the following properties:

{
// crawler executionID
"_id":"your_execution_id",
// PostgreSQL connection credentials
"data":{
"connection":{
"host":"host_name",
"port":"port_number",
"user":"user_name",
"password":"user_password",
"database":"database_name"
},
"table":"table_name"
}
}

The act can be run with a crawler finish webhook, in such case fill just the contents of data attribute into a crawler finish webhook data.

Additionally to crawler results, it is also possible to specify a dataset id, to fetch the result from a dataset.

{
// id of dataset to fetch rows from
"datasetId":"dataset_id",
// PostgreSQL connection credentials
"data":"connection_credentials"
}

Alternatively you can directly specify the rows to be inserted (i.e. not fetching them from crawler execution).

{
// rows to be inserted
"rows":[
{"column_1":"value_1","column_2":"value_2"},
{"column_1":"value_3","column_2":"value_4"},
...
],
// PostgreSQL connection credentials
"data":"connection_credentials"
}

You might also like

MySQL Insert

petr_cermak/MySQL-insert

This act takes a crawler execution and inserts it's results into a remote MySQL database.

PostgreSQL Database Extractor

parseforge/postgresql-database-extractor

Extract an entire PostgreSQL database into Apify storage using a connection string or individual parameters. Supports table filtering, flexible output formats, and automated export of all rows and metadata for seamless integration with other Actors or workflows.

3

5.0

AI Data Bridge: Multi-Database Connector

the.beast/ai-data-bridge

Stop juggling 7 different database tools. AI DataBridge connects PostgreSQL, MySQL, MongoDB, Airtable, Notion, and Google Sheets through a single MCP interface. Ask questions in plain Englishβ€”get answers from any database instantly. AI database connector, multi-database integration

Database MCP Server

constant_quadruped/database-mcp-server

MCP Server for AI database access. Connect to PostgreSQL, MySQL, or SQLite. Query data, inspect schemas, list tables, describe columns, view indexes and foreign keys. 11 tools for complete database intelligence. Works with Claude Desktop and any MCP client.

Datasets Compare

petr_cermak/datasets-compare

Act for comparing crawler execution results. By default the final result set will contain only new and updated records.

Supabase API Database, Storage, Auth & Project Management

alizarin_refrigerator-owner/supabase-api-database-storage-auth-project-management

Access Supabase programmatically through this comprehensive API actor. Query and manage PostgreSQL databases, handle file storage, manage authentication users, and control projects - all through a single interface.

Related articles

AI data collection (how to feed your LLM)
Read more