QStash is an HTTP based messaging and scheduling solution for the serverless and edge runtimes.
Get the backlinks for a domain or URL with details for the referring pages (e.g., anchor and page title).
Get one backlink with the highest ahrefs_rank
per referring domain for a target URL or domain (with details for the referring pages including anchor and page title).
QStash API offers a secure, scalable, and simple way to manage message queues and defer tasks. Using this API, you can enqueue messages, schedule tasks to run after a delay, and ensure that tasks are executed exactly once, leveraging the power of serverless architecture. With Pipedream's ability to connect to a multitude of services, you can build complex workflows that trigger actions in other apps based on events in QStash, allowing you to automate cross-application business processes with ease.
import { axios } from '@pipedream/platform';
export default defineComponent({
props: {
qstash: {
type: "app",
app: "qstash",
},
callback_url: {
type: "string",
label: "Callback URL",
description: "A URL that will be called by QStash with the body given",
},
delay: {
type: "string",
label: "Delay",
default: 0,
description: "Delay the HTTP request to the callback URL (seconds)"
}
},
async run({steps, $}) {
return axios($, {
url: `https://qstash.upstash.io/v1/publish/${this.callback_url}`,
method: 'POST',
headers: {
'Authorization': `Bearer ${this.qstash.auth.qstash_token}`,
'Upstash-Delay': `${this.qstash.delay}s`
},
data: {
hello: 'world'
}
});
}
})
Ahrefs API taps into the vast data reserves of Ahrefs, a robust SEO tool, to programmatically access insights into backlink profiles, keyword rankings, and SEO health. With Pipedream's capabilities, you can automate SEO monitoring, integrate with content management systems, trigger alerts for new or lost backlinks, or gather intelligence for keyword research—all without manual intervention. This unlocks the potential for real-time SEO strategy adjustments and the integration of SEO data into broader business processes or analytics platforms.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ahrefs: {
type: "app",
app: "ahrefs",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://apiv2.ahrefs.com`,
params: {
output: `json`,
token: `${this.ahrefs.$auth.oauth_access_token}`,
from: `subscription_info`,
},
})
},
})