🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.
← RSS + Ahrefs integrations

Get Referring Domains with Ahrefs APIon New Item in Feed from RSS API

Pipedream makes it easy to connect APIs for Ahrefs, RSS and 700+ other apps remarkably fast.

Trigger workflow on
New Item in Feed from the RSS API
Next, do this
Get Referring Domains with the Ahrefs API
No credit card required
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a RSS trigger and Ahrefs action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Item in Feed trigger
    1. Connect your RSS account
    2. Configure Feed URL
    3. Configure timer
  3. Configure the Get Referring Domains action
    1. Connect your Ahrefs account
    2. Configure target
    3. Optional- Select a mode
    4. Optional- Configure limit
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new items from an RSS feed.
Version:0.0.2
Key:rss-new-item-in-feed

Trigger Code

import rssApp from "../../rss.app.mjs";

export default {
  key: "rss-new-item-in-feed",
  name: "New Item in Feed",
  type: "source",
  description: "Emit new items from an RSS feed.",
  version: "0.0.2",
  props: {
    rssApp,
    url: {
      type: "string",
      label: "Feed URL",
      description: "Enter the URL for any public RSS feed.",
    },
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: 60 * 15,
      },
    },
  },
  dedupe: "unique",
  async run() {
    const feed = await this.rssApp.fetchFeed(this, this.url);
    const items = await this.rssApp.parseFeed(feed);
    for (const item of items) {
      const itemKey = this.rssApp.itemKey(item);
      this.$emit(item, {
        id: itemKey,
        summary: item.title,
        ts: item.pubdate && +new Date(item.pubdate),
      });
    }
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
RSSrssAppappThis component uses the RSS app.
Feed URLurlstring

Enter the URL for any public RSS feed.

timer$.interface.timer

Trigger Authentication

The RSS API does not require authentication.

About RSS

Real Simple Syndication

Action

Description:Get the referring domains that contain backlinks to the target URL or domain.
Version:0.0.16
Key:ahrefs-get-referring-domains

Action Code

const ahrefs = require('../../ahrefs.app.js')
const axios = require('axios')

module.exports = {
  name: 'Get Referring Domains',
  description: "Get the referring domains that contain backlinks to the target URL or domain.",
  key: "ahrefs-get-referring-domains",
  version: '0.0.16',
  type: "action",
  props: {
    ahrefs,
    target: { propDefinition: [ahrefs, "target"] },
    mode: { propDefinition: [ahrefs, "mode"] },
    limit: { propDefinition: [ahrefs, "limit"] },
  },
  async run() {
    return (await axios({
      url: `https://apiv2.ahrefs.com`,
      params: {
        token: this.ahrefs.$auth.oauth_access_token,
        from: "refdomains",
        target: this.target,
        mode: this.mode,
        limit: this.limit,
        order_by: "domain_rating:desc",
        output: "json"
      },
    })).data
  },
}

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
AhrefsahrefsappThis component uses the Ahrefs app.
targettargetstring

Enter a domain or URL.

modemodestringSelect a value from the drop down menu:{ "label": "Exact", "value": "exact" }{ "label": "Domain", "value": "domain" }{ "label": "Subdomain", "value": "subdomains" }{ "label": "Prefix", "value": "prefix" }
limitlimitinteger

Action Authentication

Ahrefs uses OAuth authentication. When you connect your Ahrefs account, Pipedream will open a popup window where you can sign into Ahrefs and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Ahrefs API.

Pipedream requests the following authorization scopes when you connect your account:

api

About Ahrefs

SEO Tools & Resources

About Pipedream

Stop writing boilerplate code, struggling with authentication and managing infrastructure. Start connecting APIs with code-level control when you need it — and no code when you don't.

Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
"The past few weeks, I truly feel like the clichéd 10x engineer."
@heyellieday