Skip to main content

Serpstat Integration with SmythOS

Want to build a powerful, automated SEO research engine? Connect Serpstat to SmythOS and empower your agents to perform in-depth keyword research, competitor analysis, and backlink audits automatically.

TL;DR

Securely link your Serpstat account to SmythOS using an API token. Then, use our extensive suite of components to automate every aspect of your SEO and digital marketing research, from finding related keywords to analyzing competitor ad copy.

List of Serpstat Components

Quickly compare Serpstat components by what they do and their key I/O. Click any component name to jump directly to its detailed guide.

ComponentActionWhat it DoesInputsKey OutputsUse Case
Keyword OverviewResearchProvides a comprehensive overview for a list of keywords.required keywordsresult_dataGetting a quick summary of keyword metrics.
Related KeywordsResearchRetrieves related keywords with their metrics.required search_questionkeyword, volumeBuilding a topic cluster for content strategy.
Search SuggestionsResearchProvides search suggestions for a requested keyword.required keywordresult_dataDiscovering long-tail search terms.
Keywords SelectionExportExports organic keywords for a term to a CSV file.required keywordResponseBulk keyword data analysis.
Export Search Questions And SuggestionsExportExports search suggestions and "People Also Ask" data.required keyword, seResponseGathering data for large-scale content planning.
Domain KeywordsResearchFinds keywords a specific domain ranks for.required domain, seresult_dataAnalyzing a competitor's organic keyword strategy.
URL Rank KeywordsResearchFinds all keywords a specific URL ranks for.required url, seresult_dataDeconstructing a competitor's on-page SEO.
Competitors in OSERPResearchLists a domain's main competitors in organic search.required domain, seresult_dataIdentifying who you're up against in the SERPs.
URL CompetitorsResearchReturns a list of competing URLs in organic search.required url, seresult_dataFinding who you compete with for specific topics.
Missing KeywordsResearchFinds keywords competitors rank for, but you don't.required url, seresult_dataIdentifying content gaps and SEO opportunities.
Top Pages By DomainResearchReturns a site's pages ordered by SEO strength.required domainresult_dataIdentifying a competitor's most valuable pages.
Top Pages By KeywordResearchReturns pages that rank for the most variations of a keyword.required keywordresult_urlsFinding top content for a specific topic.
Traffic By URL MaskResearchEstimates traffic for URLs matching a pattern.required domain
optional urlContains
trafficAnalyzing traffic to a specific blog subfolder.
List Domain URLsResearchReturns a list of URLs within a domain.required domainresult_dataGetting a sitemap-like view of a competitor.
Domain HistoryResearchProvides historical data on a domain's visibility.required domain, seresult_dataTracking a domain's SEO performance over time.
Domain SummaryReportProvides summary information for multiple domains.required domainsresult_dataQuickly comparing key metrics for several domains.
Domain VS DomainCompetitorsReturns common keywords between up to 3 domains.required domainsresult_dataFinding keyword overlap with competitors.
Domains' Unique KeywordsCompetitorsFinds unique keywords for domains that another domain lacks.required domains, minusDomainresult_dataAdvanced content gap analysis.
Domain AdsResearchReturns paid keywords and ad copy for a domain.required domain, seresult_dataAnalyzing a competitor's PPC strategy.
Ads ExamplesResearchRetrieves ad copy examples for specific keywords.required keyword, seresult_dataResearching ad copy for a new campaign.
Paid SERP Competitors By KeywordResearchLists PPC competitors for a given keyword.required query, seresult_dataIdentifying top bidders for your target keywords.
Summary Report (Backlinks)ReportGets general information about a domain's link profile.required query, searchTyperesult_dataA quick overview of a domain's backlink health.
Backlinks DynamicsAuditShows the history of found and lost backlinks.required query, searchTyperesult_dataTracking link building velocity over time.
Domain Rank DistributionAuditShows the quality distribution of referring domains.required query, searchTyperesult_dataAssessing the authority of a backlink profile.
TOP-10 AnchorsAuditReturns the top 10 most used anchor texts.required domain, searchTyperesult_dataChecking for a natural anchor text profile.
Top Level Domains DistributionAuditShows the TLD distribution of referring domains.required domain, searchTyperesult_dataAnalyzing the geographic source of backlinks.
Referring DomainsAuditLists all unique domains linking to the analyzed site.required query, searchTyperesult_dataAssessing the quality of a site's link profile.
Malicious Domains DonorsAuditLists malicious domains linking to your site.required queryresult_dataIdentifying potentially harmful backlinks.
Malicious Pages DonorsAuditLists malicious pages linking to your site.required domain, searchTyperesult_dataPinpointing specific toxic URLs.
Malicious Domains AcceptorsAuditLists malicious domains your site links out to.required domainresult_dataAuditing your outbound link profile for safety.
Active BacklinksAuditRetrieves a list of active backlinks pointing to a domain.required query, searchTyperesult_dataMonitoring your link-building efforts.
Lost BacklinksAuditRetrieves a list of backlinks that are no longer active.required queryresult_dataFinding link reclamation opportunities.
External DomainsAuditLists domains that the analyzed site links out to.required queryresult_dataAnalyzing your outbound link strategy.
External Lost LinksAuditLists external links from your site that are now broken.required queryresult_dataFixing broken outbound links.
External Active LinksAuditLists active external links from your site.required domainresult_dataReviewing all current outbound links.
AnchorsAuditGets a list of anchor texts used in backlinks.required queryresult_dataA detailed view of your anchor text profile.
Top Pages (Backlink)AuditLists the pages on a site with the most backlinks.required query, searchTyperesult_dataIdentifying your most authoritative content.
Links Intersection SummaryCompetitorsShows the number of common referring domains between sites.required query, intersectresult_dataQuick competitor backlink overlap analysis.
Links Intersection DetailingCompetitorsLists the specific backlinks from intersecting donors.required query, intersectresult_dataFinding specific domains that link to competitors.
Create Serpstat ProjectWriteCreates a new project in your Serpstat account.required domain, nameproject_idSetting up a new client or website for tracking.
Delete Serpstat ProjectWriteDeletes a project from your Serpstat account.required project_idresultRemoving an old or completed project.
List Serpstat ProjectsReadRetrieves a list of all your projects in Serpstat.required idresult_dataFinding a project_id for other operations.
Get Project SettingsReadReturns the settings for a specific audit project.required projectIdresultVerifying audit configurations.
Audit Settings SavingWriteSaves new settings for a site audit project.required projectId, mainSettingsresultProgrammatically configuring a site audit.
Get Project Default SettingsReadRetrieves the default settings for a project.required idresultChecking default audit configurations.
Audit StartWriteInitiates a site audit for a specified project.required projectIdreportIdKicking off a technical SEO audit automatically.
Stop Running AuditWriteStops an audit that is currently in progress.required projectIdresultHalting an audit if needed.
List AuditsReadProvides a list of all site audits for a project.required projectIdresultChecking the history of site audits.
Audit Basic InfoSite AuditReturns basic summary information for an audit report.required reportIdsdo, progressChecking the result of a completed audit.
List Report IssuesSite AuditLists all issues found in a specific audit report.required reportIdresult_categoriesGetting a summary of technical SEO errors.
Issue Elements DataSite AuditLists the specific URLs affected by a single issue.required reportId, errorNameresult_dataPinpointing pages with a specific error.
Issue Subelements DataSite AuditRetrieves sub-elements related to a specific audit issue.required projectId, reportIdresult_dataGetting granular data on complex SEO issues.
List Project RegionsRank TrackerReturns the regions configured for a rank tracking project.required projectIdregionsChecking which countries are being tracked.
List Rank Tracker ProjectsRank TrackerGet a list of your rank tracking projects.required idresult_dataFinding a projectId for other operations.
Get SERP History By KeywordsRank TrackerReturns historical Google top-100 results for project keywords.required projectId, projectRegionIdkeywordsTracking ranking changes over time.
List Team UsersAccountReturns a list of all users in your Serpstat team.required idresult_dataAuditing team access.
Add User To TeamAccountInvites a new user to join your Serpstat team.required emailsuccessAutomating user provisioning for new team members.
Check Account BalanceAccountReturns the current credit balance on your account.required idavailable_usdMonitoring API usage and costs.
INFO
Why Integrate Serpstat with Your Agent?

Serpstat is a comprehensive SEO toolkit. Integrating it with SmythOS allows you to build powerful agents that can automate nearly every aspect of SEO research, analysis, and reporting.

  • Automate Competitor Analysis: Create agents that run weekly to track your competitors' ranking keywords, new backlinks, and top pages, delivering a competitive intelligence report directly to you.
  • Streamline Keyword Research: Build a workflow that takes a single "seed" keyword, uses Related Keywords and Search Suggestions to build a massive list of potential targets, and then filters that list based on volume and competition.
  • Automated Content Audits: Use agents to find content gaps by comparing your domain's keywords to your competitors' with the Missing Keywords component, providing a ready-made list of content to create.
  • Automate SEO Reporting: Schedule agents to fetch data from Domain History, Backlinks Dynamics, and URL Rank Keywords to build custom, automated reports on your site's SEO performance over time.

Prerequisites

Before you begin, please ensure you have the following:

  • An active SmythOS account. (Sign up here).
  • A Serpstat account with a subscription plan that includes API access.
  • Your Serpstat API Token.

Getting Started With Serpstat

The connection between SmythOS and Serpstat is configured using a secure API Token.

Step 1: Get Your Serpstat API Token

  1. Log in to your Serpstat account.
  2. Navigate to your Profile Settings.
  3. Find the API section.
  4. Your API Token will be displayed here. If it's not present, you may need to generate it.
  5. Copy the token to your clipboard.

Step 2: Store Your API Token in SmythOS Vault

Your API Token is a sensitive credential. Use the SmythOS Vault to store it securely.

  1. In your SmythOS dashboard, navigate to the Vault.
  2. Create a new secret and paste your Serpstat API Token as the value. Give it a memorable name, like serpstat_api_token.
  3. For more details, see the Vault Documentation.

Step 3: Configure a Serpstat Component

  1. In your SmythOS agent graph, drag and drop any Serpstat component.
  2. Click the component to open its Settings panel.
  3. In the API token field, select the secret you saved in the Vault (e.g., serpstat_api_token).
  4. Your connection is now configured for that component.
Heads-up
You must add the API Token from the Vault to each Serpstat component you use. This ensures all your API calls are properly authenticated.

Which Serpstat Component Should I Use?

If you need to…TargetUse this ComponentWhy this one?
Find new keyword ideas for a blog postA seed keywordRelated KeywordsExpands your topic into a list of semantically similar keywords with metrics.
See what your competitor ranks forA competitor's domainDomain KeywordsThe best way to analyze a competitor's entire organic keyword footprint.
Find easy content opportunitiesYour domain and a competitor'sMissing KeywordsDirectly shows you what keywords your competitors rank for that you don't.
Check your backlink profile healthYour domainActive BacklinksProvides a full list of all current backlinks pointing to your site.
Start a technical SEO audit for a new clientA projectIdAudit StartKicks off Serpstat's comprehensive site audit tool programmatically.
Get a quick overview of a domain's statsA domainSummary ReportProvides a high-level snapshot of a domain's visibility, traffic, and keywords.

Component Details

This section provides detailed information for each Serpstat component.

Keyword Overview

Provides a comprehensive overview for a list of keywords.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
keywordsarrayYesAn array of keyword strings to analyze.
sestringOptionalSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array of overview data for each keyword.
left_linesintegerYour remaining API requests.
Use Case

An agent takes a list of target keywords for a new campaign and uses this component to get a quick summary of their volume, CPC, and competition level.

Retrieves related keywords with their metrics and search intent data.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
search_questionstringYesThe keyword to find related terms for.
search_countrystringYesTarget country for search data.

Outputs

FieldTypeDescription
keywordstringThe related keyword found.
volumeintegerThe search volume for the related keyword.
cpcfloatThe Cost Per Click for the related keyword.
search-intentstringUser intent classification (e.g., informational).
competition_valuefloatThe level of advertiser competition.
Use Case

A content strategy agent uses this component to find a list of related keywords, then filters them by high volume and low competition_value to identify easy-win topics.

Search Suggestions

Provides search suggestions for a requested keyword.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
keywordstringYesThe search term to analyze.
sestringOptionalSearch engine and region (e.g., g_us). Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array containing search suggestion results.
totalintegerTotal number of available results.
left_linesintegerYour remaining API requests for the day.
Use Case

An agent takes a broad topic like "content marketing" and uses this component to discover what specific long-tail searches users are performing related to it.

Keywords Selection

Exports organic keywords associated with a researched keyword to a CSV file.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
keywordstringYesThe keyword to analyze.
sestringOptionalSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
ResponseobjectThe API response, which will contain information about the export task.
Use Case

To perform a deep analysis, an agent uses this component to export thousands of organic keywords related to a core term into a CSV for processing in another tool.

Export Search Questions And Suggestions

Exports search suggestions and questions data to a file.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
keywordstringYesThe search term to analyze.
sestringYesSearch engine and region. Default: g_us.
withQuestionsbooleanOptionalInclude "People Also Ask" questions in the export.

Outputs

FieldTypeDescription
ResponseobjectThe API response, containing details about the initiated export task.
Use Case

For a deep-dive content strategy session, an agent exports all search suggestions and questions for a core topic to a CSV for manual review.

Domain Keywords

Finds keywords for which the analyzed domain ranks in the top 100 search results.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain.
sestringOptionalSearch engine and region.

Outputs

FieldTypeDescription
result_dataarrayAn array of keyword objects the domain ranks for.
totalintegerTotal number of ranking keywords found.
Use Case

To kick off a competitor analysis, an agent uses this component to get a full list of a competitor's organic keywords.

URL Rank Keywords

Returns keywords that a specific URL ranks for in the top 100 Google search results.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
urlstringYesThe target URL to analyze.
sestringYesSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array of keywords the URL ranks for, including position.
totalintegerTotal number of ranking keywords found.
Use Case

An agent analyzes a competitor's top blog post by passing its URL to this component to see all the keywords it ranks for, revealing content optimization strategies.

Competitors in OSERP

Lists a domain's main competitors in the top 20 organic Google search results.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain.
sestringOptionalSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array of competitor domain objects.
left_linesintegerYour remaining API requests.
Use Case

An agent runs this component monthly to identify new and emerging competitors in the organic search landscape.

URL Competitors

Returns a list of URLs that are competitors to a specific URL in organic search.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
urlstringYesThe target URL to analyze.
sestringYesSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array of competitor URL objects.
totalintegerTotal number of competitors found.
Use Case

To understand the competitive landscape for a specific blog post, an agent uses this component to find the top-ranking competing articles.

Missing Keywords

Returns keywords that competitors rank for but the given URL does not.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
urlstringYesThe URL of your page to analyze.
sestringYesSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array of keyword objects you are missing.
Use Case

A content optimization agent uses this component to find content gaps by comparing your page to a top competitor, generating a list of keywords to add to your article.

Top Pages By Domain

Returns a hierarchical list of a website's pages based on their SEO strength.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain.
sestringOptionalSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array of page objects, ordered by SEO value.
totalintegerThe total number of pages found.
Use Case

An SEO agent runs this component on a competitor's site to identify their most powerful pages, which are likely driving the most organic traffic.

Top Pages By Keyword

Returns website pages that rank for the largest number of variations of an analyzed keyword.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
keywordstringYesThe keyword to analyze.
sestringOptionalSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_urlsarrayAn array of URL data objects.
keywordstringThe keyword that was analyzed.
Use Case

A content strategist uses this component to find the most comprehensive, top-ranking pages for a given topic to use as reference.

Traffic By URL Mask

Returns information about traffic and keyword count for URLs matching a specific pattern or mask.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain to analyze.
sestringYesSearch engine and region. Default: g_us.
urlContainsstringOptionalA string that must be present in the URL (e.g., /blog/).

Outputs

FieldTypeDescription
urlsarrayA list of URLs matching the mask.
trafficintegerThe estimated traffic for the matching URLs.
Use Case

An agent analyzes the total traffic for all pages within the /blog/ section of a website to measure the performance of the content marketing efforts.

List Domain URLs

Returns the list of URLs within the analyzed domain and the number of keywords for each URL.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain.
sestringOptionalSearch engine and region. Default: g_us.

Outputs

FieldTypeDescription
result_dataarrayAn array of URL objects with their keyword counts.
totalintegerTotal number of URLs found.
Use Case

An agent gets a sitemap-like overview of a competitor's site structure and identifies which pages are targeting the most keywords.

Domain History

Provides historical data on a domain's number of keywords and visibility.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain to analyze.
sestringYesSearch engine and region.

Outputs

FieldTypeDescription
result_dataarrayAn array of historical data points showing keywords and visibility over time.
totalintegerTotal number of historical data points available.
Use Case

An agent tracks a competitor's SEO progress by fetching their domain history quarterly to see trends in keyword growth and overall visibility.

Domain Summary

Provides summary information for an array of domains.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainsarrayYesA list of domain strings to analyze.
sestringYesSearch engine and region (e.g., g_us).

Outputs

FieldTypeDescription
result_dataarrayAn array of summary objects, one for each requested domain.
Use Case

An agent gets a quick, high-level comparison of your domain versus three top competitors by passing all four domains to this component.

Domain VS Domain

Returns common keywords between up to 3 domains.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainsarrayYesA list of 2 or 3 domains to compare.
sestringYesSearch engine and region.

Outputs

FieldTypeDescription
result_dataarrayAn array of keywords that the specified domains have in common.
totalintegerTotal number of common keywords.
Use Case

An agent finds the exact keywords that you and your top competitor both rank for to identify highly contested SERPs.

Domains' Unique Keywords

Returns unique keywords of two domains that a third domain does not rank for.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainsarrayYesA list of domains to analyze.
sestringYesSearch engine and region.
minusDomainstringYesThe domain to use for exclusion.

Outputs

FieldTypeDescription
result_dataarrayAn array of keywords unique to the domains list and not found for the minusDomain.
Use Case

An agent performs an advanced content gap analysis by finding keywords that two of your competitors rank for, but you (minusDomain) do not.

Lists PPC competitors for a given keyword.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe search query/keyword.
sestringYesSearch engine and region.

Outputs

FieldTypeDescription
result_dataarrayAn array of competitor objects in paid search for the keyword.
left_linesintegerYour remaining API requests.
Use Case

A marketing agent identifies all the domains bidding on a high-value keyword to understand the competitive pressure in paid search.

Provides general information and key metrics about a domain's or URL's backlink profile.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe domain or URL to analyze.
searchTypestringYesThe type of query (e.g., domain, url).

Outputs

FieldTypeDescription
result_dataobjectAn object containing the summary report data.
left_linesintegerYour remaining API requests.
Use Case

As a first step in a backlink audit, an agent fetches the summary report for a domain to get a high-level overview of its total backlinks and referring domains.

Malicious Pages Donors

Returns a list of links from malicious sites referring to the analyzed domain.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain.
searchTypestringYesThe type of search, typically domain.

Outputs

FieldTypeDescription
result_dataarrayAn array of malicious page objects with link details.
totalintegerTotal number of malicious pages found.
Use Case

A security agent runs this component to find the exact URLs of toxic backlinks, which can then be added to a disavow file.

Malicious Domains Acceptors

Returns a list of malicious domains that the analyzed domain links out to.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain to audit.
searchTypestringOptionalThe type of search, default is domain.

Outputs

FieldTypeDescription
result_dataarrayAn array of malicious domains your site links to.
totalintegerTotal number of malicious acceptor domains found.
Use Case

An agent audits your website's outbound links to ensure you are not linking to any known malicious or spammy domains.

External Domains

Gives you a list of the domains that are linked to from the analyzed site.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe domain or URL to analyze.
searchTypestringOptionalThe type of query (domain or url).

Outputs

FieldTypeDescription
result_dataarrayAn array of external domain objects.
totalintegerTotal number of external domains linked to.
Use Case

An agent reviews all external domains your site links to, which can be useful for partnership analysis or checking for broken affiliate links.

Gives you a list of lost external links from a site you analyze (i.e., links that used to point from your site to another, but are now broken).

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe domain or URL to analyze.
searchTypestringYesThe type of query (domain or url).

Outputs

FieldTypeDescription
result_dataarrayAn array of lost external link objects.
totalintegerTotal number of lost external links found.
Use Case

A site maintenance agent runs this component to find and report broken outbound links that need to be fixed.

Lists all active external links pointing from your site to other domains.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
domainstringYesThe target domain to analyze.
searchTypestringYesThe type of search (domain or url).

Outputs

FieldTypeDescription
result_dataarrayAn array of active external link objects.
totalintegerTotal number of active external links found.
Use Case

An agent performs a full audit of all outbound links on a website for review.

Anchors

Gives you a list of keywords used as anchors for a site's backlinks.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe domain or URL to analyze.
searchTypestringOptionalThe type of query (domain or url).

Outputs

FieldTypeDescription
result_dataarrayAn array of anchor text objects and their usage counts.
totalintegerTotal number of unique anchors found.
Use Case

An SEO specialist uses an agent to get a detailed breakdown of a competitor's anchor text strategy.

Gives you a list of the leading pages of the analyzed site by the number of backlinks.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe domain or URL to analyze.
searchTypestringYesThe type of query (domain or url).

Outputs

FieldTypeDescription
result_dataarrayAn array of page objects, sorted by the number of backlinks.
totalintegerTotal number of pages found.
Use Case

An agent identifies a competitor's "link magnet" pages by finding which of their URLs have attracted the most backlinks.

Shows the number of common referring domains between multiple sites.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe primary domain for comparison.
intersectstringYesComma-separated list of competitor domains.

Outputs

FieldTypeDescription
result_dataarraySummary data of the backlink intersection.
totalintegerTotal number of intersecting domains.
Use Case

An agent gets a quick summary of how many of the same websites link to both you and your main competitor.

Lists the specific backlinks from the domains that link to multiple analyzed sites.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
querystringYesThe primary domain for comparison.
intersectstringYesComma-separated list of competitor domains.

Outputs

FieldTypeDescription
result_dataarrayA detailed list of backlinks from the intersecting domains.
totalintegerTotal number of intersecting backlinks.
Use Case

After finding common referring domains with the summary component, an agent uses this to get the exact URLs of the pages that link to your competitors, identifying high-value outreach targets.

Issue Categories Statistics

Brings in statistics by issue categories for a specific site audit report.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
reportIdstringYesThe ID of the audit report.

Outputs

FieldTypeDescription
resultarrayAn array of statistics for each issue category.
ResponseobjectThe raw JSON response from the API.
Use Case

An agent fetches the statistics for a completed audit to create a high-level summary chart for a client report.

Best Practices & Advanced Tips

  • Secure Your API Token: Always store your Serpstat API Token in the SmythOS Vault.
  • Manage API Lines: Serpstat's API usage is measured in "lines" or requests per day. The left_lines output is crucial for monitoring your consumption. Design agents to be efficient to stay within your plan's limits.
  • Use the se Parameter: For accurate, localized data, always specify the search engine and region code (e.g., g_uk for Google UK, g_ca for Google Canada) in your requests.
  • Chain Components for Deep Insights: The most powerful workflows combine components. For example, use Domain Keywords to find a competitor's top keyword, then use URL Rank Keywords to see which of their pages ranks for it, and finally use Active Backlinks on that URL to understand why it ranks well.

Troubleshooting Common Issues

  • Error: 401 Unauthorized

    • Cause: The API Token is incorrect, invalid, or your Serpstat plan does not include API access.
    • Solution: Verify that the API Token in your SmythOS Vault is correct. Log in to your Serpstat account to confirm your subscription level and that the token is active.
  • Error: "You have reached the end of your line limit"

    • Cause: You have exhausted your daily API request quota.
    • Solution: Check the left_lines output on previous successful calls. You must wait for your quota to reset (typically every 24 hours). Consider upgrading your plan for higher limits.
  • Empty result_data

    • Cause: The query may genuinely have no data (e.g., a new domain with no keywords), or the se (search engine region) specified has no database for that query.
    • Solution: Double-check your inputs (domain, keyword, se). Test the same query in the Serpstat web application to see if data exists there.

What's Next?

You are now ready to build powerful SEO intelligence workflows with the SmythOS Serpstat Integration!

Consider these ideas:

  • Build an Agent That...

    • Creates a "Content Gap Analysis" report. It takes your domain and three competitor domains, uses Domain Keywords on all of them, and then identifies keywords that all three competitors rank for but you do not.
    • Automates outreach prospecting. The agent gets a list of top-ranking articles for a keyword using the URL Rank Keywords component, then finds their contact information using other tools.
    • Monitors for negative SEO. It runs the Lost Backlinks and Malicious Domains Donors components weekly and sends an alert if a significant number of valuable links are lost or new toxic links are found.
  • Explore Other Integrations:

    • Combine Serpstat with an LLM component. Use Related Keywords to get a list of topics, then have the LLM write a draft article for the most promising one.
    • Feed the output of your Serpstat reports directly into a Google Sheet to create custom SEO dashboards and track performance over time.
    • When your agent discovers a new, high-authority backlink, post a celebratory message to a Slack or Microsoft Teams channel.