What do you want to automate

with Minerstat and Neon Postgres?

Prompt, edit and deploy AI agents that connect to Minerstat, Neon Postgres and 2,500+ other apps in seconds.

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Integrate the Minerstat API with the Neon Postgres API
Setup the Minerstat API trigger to run a workflow which integrates with the Neon Postgres API. Pipedream's integration platform allows you to integrate Minerstat and Neon Postgres remarkably fast. Free for developers.

Connect Minerstat

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    minerstat: {
      type: "app",
      app: "minerstat",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.minerstat.com/v2/worker`,
      headers: {
        Authorization: `Bearer ${this.minerstat.$auth.api_token}`,
        "Accept": `application/json`,
      },
      params: {
        name: `Apollo`,
      },
    })
  },
})

Connect Neon Postgres

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { axios } from "@pipedream/platform";
import { neon } from "@neondatabase/serverless";

export default defineComponent({
  props: {
    neon_postgres: {
      type: "app",
      app: "neon_postgres",
    }
  },
  async run({ steps, $ }) {

    const { host, port, user, password, database } = this.neon_postgres.$auth
    const connectionString = `postgresql://${user}:${password}@${host}:${port}/${database}`  
    
    const sql = neon(connectionString)
    const result = await sql`SELECT version()`
    const { version } = result[0]
    return version

  },
})

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo