Ahrefs and Foreplay Integration
Build marketing workflows between Ahrefs and Foreplay on a visual canvas. Set up data fields sync between apps once and let data flow when events come automatically. Integration will work without code and your team will see the workflow inside WEXTL® builder.
- 3-day trial
- Cancel anytime
- Up to 10 minutes quick set up
- GDPR
- Data Encryption
- 2FA
- Local Data Region
Learn about Ahrefs and Foreplay
Detailed info you need to know about Ahrefs and Foreplay integrations in WEXTL. Explore which modules apps support and how you connect them.
How to connect Ahrefs to Foreplay
Set up your Ahrefs and Foreplay integration in 3 simple steps[2]. No coding required. Up to 10 minutes setup.
STEP 1
Connect Ahrefs and Foreplay
Save credentials in WEXTL once. We store them encrypted and reuse the authorization across every workflow[3]. No coding or API skills required.
STEP 2
Build a workflow
Paste selected Ahrefs and Foreplay nodes onto the canvas[4], or describe what you want and WEXTL wires the flow together with AI Builder.
STEP 3
Map your data
Choose which fields need to sync between Ahrefs and Foreplay. Use filters or a JS custom code step in between. Everything is on the canvas.
How does the integration between Ahrefs and Foreplay work in WEXTL?
WEXTL exposes actions and triggers for Ahrefs and Foreplay that help you connect apps and automate repetitive tasks[1]. A trigger is an event that happens, and an action is a step that performs when the event has occurred.
Foreplay triggersAhrefs actions
Foreplay modules
- Discover Brands by Ads Discovers brands whose ads match a filter. Foreplay bills one credit for the single request.
- Find Brands by Domain Finds brands whose website matches a Domain, ordered by most or least ranked. One call returns at most 10 brands.
- Get a Lens Report Returns ad performance rows from a Lens linked to a Facebook or TikTok ad account, split by Breakdown Type for the dates From to To.
- Get a Tracked Brand Fetches a brand from your Spyder list with its website, niches, verification status and ad counts.
- Get an Ad Reads a single ad by the Foreplay ID that every ad row carries, with its copy, format and run dates.
- Get an Ad by Library ID Looks up one ad by its Meta ad library ID and returns its copy, format, platforms and run dates.
- Get Brand Ad Analytics Retrieves a row per date with active and inactive ad counts of a brand and the counts per display format.
- Get Credit Usage Reports your Foreplay credit total and what is left. The call costs no credits.
- Get the Top Ranked Ads for a Page Returns the best ranked ads of a page on a Date and how each one moved since the earlier ranking. Use Compare Days Ago to pick that earlier day.
- List Ads by Brand Brings back the ads of several brands at once from a comma separated list of IDs. Use Collect from Meta to fetch missing ads live, which takes longer.
- List Ads by Page Obtains the ads run by a page on Facebook from its Page ID. Use Force Refresh to refresh from Meta before reading, which takes longer.
- List Board Ads Pulls the ads kept on a Board. Choose Start Date, End Date, Display Formats or Languages to narrow them. Every ad returned costs one Foreplay credit.
- List Board Brands Shows the brands on a Board, each with a website, niches and ad counts.
- List Boards Lists your boards, one row each. Set Include Folders to Yes for the boards grouped by folder.
- List Duplicate Ads Reads the group of ads that reuse the same image or video as a given ad.
- List Ranked Ads for a Page Gives the ranked ads for a page from the Spyder rankings. Use Category to keep only breakout or evergreen ads.
- List Related Brands for a Page Finds partner brands around a page on Facebook, with page names, like counts and ad counts.
- List Swipe File Ads Retrieves the ads in your swipe file, one row per ad. Pick Live Ads or Display Formats to cut the list down, or Order to rank by saved date or running time.
- List Tracked Brand Ads Collects the Spyder ads of one Brand, newest first by default. Set Minimum Running Days or Maximum Running Days to keep ads that ran for a set time.
- List Tracked Brands Reads the brands followed in Spyder together with their ad counts. Foreplay bills one credit per request here.
- Make an API Call Makes an authorized free-form request to the Foreplay REST API with your saved credential.
- Search Ads Searches the whole Foreplay ad database for Search Text. Use Start Date and End Date to bound when the ads started and Order to rank the hits.
- Search Brands Looks up brands by name across Foreplay. Use Minimum Ads to drop small brands, and set Include Empty Brands to add those without ads.
- Watch New Boards Looks for boards added after the previous check and starts a run for each one.
- Watch New Tracked Brand Ads Polls a followed Brand and runs once per ad that started running after the previous check. Set Live Ads to Yes to watch only live ads.
Ahrefs modules
- Add Competitors Adds competitor sites to a project for Rank Tracker, each described by a URL and a Mode. The project comes from Get Projects.
- Add Keywords to a Keyword List Adds a comma-separated set of Keywords to an existing keyword list, the one named by Keyword List ID.
- Create a Project Starts an Ahrefs project for a site, defined by Project Name, URL, Mode and Protocol. Set Access to Private or Shared, and Owned By to an owner email, otherwise the Workspace owner is assigned.
- Create Batch Analysis Runs one analysis over many Targets, each with a URL, Mode and Protocol. Use Select to pick the metric columns, Order By to sort the rows and Volume Mode for the volume calculation.
- Create Keywords Adds keywords to a tracked project. Pass a comma-separated Keywords list with Locations, or entries with Keyword, Country Code, Tags, Language Code and Location ID.
- Delete Competitors Removes competitors from a Rank Tracker project, each one given by its URL and Mode.
- Delete Keywords Deletes keywords from a tracked project. Use the comma-separated Keywords field for plain terms, or give entries made of Keyword, Country, Language and Location ID to be exact.
- Delete Keywords from a Keyword List Removes the terms in a comma-separated Keywords list from one keyword list.
- Get a Domain Rating Reads the rating Ahrefs assigns to a Target domain, dated by Date. Use Protocol to look at HTTP, HTTPS or both.
- Get a Keywords List Returns every keyword saved in one keyword list, found through Keyword List ID.
- Get a Rank Tracker SERP Overview Reads the latest saved search results for a tracked Keyword on a Device, listing the Position, Title and URL of each result. Use Language Code and Location ID to reach one tracked variant, and Top Positions to trim the list.
- Get a SERP Overview Shows the search results page for any Keyword, listing Position, Title, URL and Type. Pick columns with Select Columns, and use Date to read an earlier snapshot.
- Get AI Responses Returns answers from an AI chatbot such as ChatGPT, Gemini or Google AI Mode for the brands you follow. Set Data Source for the chatbot and give at least one of Brand, Competitors, Market or Where, then pick the output columns with Select Columns.
- Get Anchors Lists the anchor texts of backlinks aimed at a domain or URL Target, with columns from Select such as First Seen and Dofollow Links. Use History to add lost backlinks and Where to filter the rows.
- Get Backlinks Pulls individual backlinks to a Target. Use Aggregation to group them as Similar Links, 1 Per Domain or All, and History to include lost links since a date or for all time.
- Get Backlinks Stats Summarises backlink figures for a Target on a single Date. Use Mode to decide whether it matches exactly, by prefix, as a domain or with subdomains.
- Get Best by External Links Finds the pages of a Target that attract the most links from other sites. Use Select to pick columns such as Dofollow To Target and First Seen Link, and History to bring in lost links.
- Get Best by Internal Links Ranks pages of a Target by the links they receive from within the same site, with columns like Canonical To Target and Http Code Target. Use Order By to sort and Limit to stop early.
- Get Broken Backlinks Lists backlinks that lead to broken pages on a Target. Use Aggregation to collapse them to one per domain, or Where to filter by column.
- Get Competitor Pages Returns pages of your target and its competitors for a Date and Device. Turn on Target and Tracked Competitors Only to leave out other sites, and add metrics like Share of Voice through Select Columns.
- Get Competitors Shows the competitor sites saved for a project, each with its URL and Mode.
- Get Competitors Overview Compares tracked competitors for one Project ID, based on Date and Device. Add Keyword Difficulty through Select Columns, or use Date Compared to see change against another day.
- Get Crawler IP Addresses Lists the IP addresses used by Ahrefs crawlers. Use Limit to read only some of them, and Output to pick JSON, CSV, XML or PHP.
- Get Crawler IP Ranges Returns the address ranges Ahrefs crawlers run from, each with its Ipv 4prefix. Use Limit to cut the number of ranges read.
- Get Domain Rating History Charts a Target domain rating across a period that starts at Date From and can end at Date To. Use History Grouping to get daily, weekly or monthly steps.
- Get Keywords History Counts keywords by position band, such as Top 3 or Top 21 50, for a Target, across a span that runs between Date From and Date To.
- Get Keywords Overview Gives search metrics such as Clicks, CPC and Difficulty for a set of Keywords or for a Keyword List ID. Use Target with Target Position to filter by where a site ranks.
- Get Limits and Usage Shows the units your workspace and API key are allowed to use and how many have been used so far, with the Usage reset date.
- Get Linked Domains Lists the domains a Target links out to. Use Select for columns like Dofollow Linked Domains, and read Domain Rating to judge each one.
- Get Matching Terms Finds phrase ideas that contain your words. Use Match Mode for any word order or the exact order, and Terms to get all ideas or only questions.
- Get Metrics Returns summary search metrics for a Target as they stood on one Date. Use Volume Mode to base volume on monthly or average figures.
- Get Metrics by Country Breaks the search performance of a Target down by country, with Org traffic, Org keywords and Org cost for each one.
- Get Metrics History Charts Org traffic, Org cost, Paid traffic and Paid cost for a Target. The period begins at Start Date and ends at End Date when that is filled.
- Get Organic Competitors Finds sites that compete with a Target for organic keywords, giving each Competitor domain and its Keywords common count. Use Date Compared to see how the overlap shifted.
- Get Organic Keywords Lists organic keywords that a Target ranks for, with columns like Best Position and All Positions. Add Date Compared to bring in earlier positions.
- Get Outgoing External Anchors Shows anchor texts in links from a Target to other websites. Each anchor reports how many Linked Domains and Dofollow Links it has.
- Get Outgoing Internal Anchors Shows anchor texts of links between pages of one Target, together with the Linked Pages count.
- Get Outlink Stats Summarises the outgoing links of a Target on one Date. Use Mode to set how the Target is matched and Protocol for HTTP or HTTPS.
- Get Page Content Fetches the crawled content of one Target URL in a Site Audit project. Use Select for Page Text, Raw HTML or Rendered HTML, and Date for an older crawl. Only projects with verified ownership work.
- Get Pages by Traffic Sorts pages of a Target into traffic ranges and reports counts like Range 100 pages and Range 1k pages. Use Volume Mode to pick monthly or average volume.
- Get Pages History Tracks the number of Pages a Target has over time. The period starts at Start Date and stops at End Date when given.
- Get Paid Pages Finds pages of a Target running paid ads, with Ads Count and Ads Count Diff to size the activity. Use Date Compared to measure change.
- Get Project Health Scores Lists Site Audit projects along with each Target URL, Status and Health score. Use Limit to read fewer of them.
- Get Project Issues Lists the issues found in a Site Audit crawl of one project, each with its Name, Importance and Category. Use Date to read a specific crawl instead of the latest.
- Get Project Keywords Lists the keywords tracked in a project, spelling out the Language and Location of each. Use Limit to read only part of them.
- Get Projects Lists your Ahrefs projects with their Project name, URL, Mode and Protocol. Narrow the list with Access, Has Keywords or Owned By.
- Get Rank Trackers Returns tracked keyword rows for a Project ID, by Date and Device. Use Select Columns for items such as Best Position Has Thumbnail, and Date Compared to add movement.
- Get Ref Domains Lists the domains linking to a Target, with columns such as Dofollow Refdomains and Domain Rating. Use History to include domains that stopped linking.
- Get Ref Domains History Plots the number of Refdomains pointing at a Target between Start Date and an optional End Date, grouped by day, week or month.
- Get Related Terms Finds related ideas that start with Keywords or a Keyword List ID. Use View For to base them on the top 10 or 100 ranking pages.
No ready-made Ahrefs and Foreplay automation yet. Describe your own in the AI Workflow Builder.
Build a Ahrefs and Foreplay workflow with AI
Describe your automation with Ahrefs and Foreplay - and our AI Workflow Builder will make it done for you.
Explore alternative integrations
There are other apps[9] supported by WEXTL that can be paired with Ahrefs and Foreplay integrations. Pick any from the list below if the current combination isn't the one you need.
Frequently asked questions
Common questions about connecting Ahrefs and Foreplay.
References
List of sources used to gather information about the Ahrefs and Foreplay integration.
- Ahrefs and Foreplay integration source code, module specs and credentials implementation.
- Our Ahrefs and Foreplay integration documentation, structured input and output parameters, scopes, and authentication methods.
- Official vendor API documentation for Ahrefs and Foreplay, used to verify field meanings, authentication flows, and anything our own specs don't fully capture.
- WEXTL® visual workflow builder, anonymized data from our technical support team.
- Ahrefs integration information
- Foreplay integration information
- WEXTL® Scheduling
- WEXTL® Pricing and Trial
- WEXTL® Apps Library
How we write our apps documentation
Explore how WEXTL® crafted Ahrefs and Foreplay integration page documentation. Used sources, the role of AI, and how the team validates the result.

