with Neon Postgres and DataForSEO?
Description for get-ranked-keywords. See the documentation
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
},
})
The DataForSEO API offers a robust suite of tools for SEO analytics and research, providing data on rankings, keywords, competitor analysis, and SERP features. Integrating DataForSEO with Pipedream enables you to automate the collection of SEO data, monitor keyword positions, trigger actions based on SEO insights, and enrich your marketing or analytics platforms with up-to-date search data.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dataforseo: {
type: "app",
app: "dataforseo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dataforseo.com/v3/appendix/user_data`,
headers: {
"Content-Type": `application/json`,
},
auth: {
username: `${this.dataforseo.$auth.api_login}`,
password: `${this.dataforseo.$auth.api_password}`,
},
})
},
})