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. This is a comprehensive suite for all your SEO data needs.

ComponentActionWhat it DoesInputsKey OutputsUse Case
Keyword ResearchResearchGathers organic keywords related to a seed keyword.keyword, seresult_dataFinding long-tail variations of a target keyword.
Related KeywordsResearchRetrieves related keywords with their metrics.search_questionkeyword, volumeBuilding a topic cluster for content strategy.
Search SuggestionsResearchProvides search suggestions for a given keyword.keyword, seresult_dataUnderstanding user search behavior and intent.
Domain KeywordsResearchFinds keywords a specific domain ranks for.domain, seresult_dataAnalyzing a competitor's organic keyword strategy.
Missing KeywordsResearchFinds keywords competitors rank for, but your URL doesn't.url, seresult_dataIdentifying content gaps and SEO opportunities.
Competitors in OSERPResearchLists a domain's main competitors in organic search.domain, seresult_dataIdentifying who you're up against in the SERPs.
Domain AdsResearchReturns paid keywords and ad copy for a domain.domain, seresult_dataAnalyzing a competitor's PPC strategy and ad copy.
Active BacklinksAuditRetrieves a list of active backlinks pointing to a domain.query, searchTyperesult_dataMonitoring your link-building efforts.
Referring DomainsAuditLists all unique domains linking to the analyzed site.query, searchTyperesult_dataAssessing the quality of a site's link profile.
Top Pages (Backlink)AuditLists the pages on a site with the most backlinks.query, searchTyperesult_dataIdentifying your most authoritative content.
Summary ReportReportGets general information about a domain's link profile.query, searchTyperesult_dataA quick overview of a domain's backlink health.
Create Serpstat ProjectWriteCreates a new project in your Serpstat account.domain, nameproject_idSetting up a new client or website for tracking.
List Serpstat ProjectsReadRetrieves a list of all your projects in Serpstat.idresult_dataFinding a project_id for other operations.
Audit StartWriteInitiates a site audit for a specified project.projectIdreportIdKicking off a technical SEO audit automatically.
List AuditsReadProvides a list of all site audits for a project.projectIdresultChecking the history of site audits.
Add User To TeamWriteInvites a new user to join your Serpstat team.emailsuccess, user_idAutomating user provisioning for new team members.

(This is a selection of the most common components. A full, detailed list follows in the Component Details sections.)

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 an active subscription 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.

Search Suggestions

Provides search suggestions for the keyword you requested through full-text search functionality.

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.
pageintegerOptionalPage number for pagination. Default: 1.
sizeintegerOptionalNumber of results per page. Default: 100.

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.

{
"component": "serpstat.searchSuggestions",
"id": "req-123",
"keyword": "how to build ai agents",
"se": "g_uk"
}

Keywords Selection

Exports organic keywords associated with the 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.

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.

Domain Ads

Returns paid keywords and ad copies for a specific domain.

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.

Outputs

FieldTypeDescription
result_dataarrayAn array containing the domain's ad data, including keywords and ad copy.
left_linesintegerYour remaining API requests.
Use Case

A competitive intelligence agent runs this component on a competitor's domain to analyze their PPC strategy, including the keywords they are bidding on and the ad copy they are using.

Ads Examples

Retrieves paid keywords and ad copy examples for specific keywords.

INFO
This component requires an API Token for authentication.

Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
keywordstringYesThe keyword to analyze for ad examples.
sestringYesSearch engine and region.

Outputs

FieldTypeDescription
result_dataarrayAn array of ad examples for the specified keyword.
totalintegerThe total number of ad examples found.
Use Case

A PPC manager agent uses this component to research ad copy ideas for a new campaign by looking at what top competitors are using for a specific keyword.

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.

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.

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.

This group includes components for analyzing a domain's backlink profile, such as Summary Report, Backlinks Dynamics, Referring Domains, Active Backlinks, Lost Backlinks, and more.

INFO
These components require an API Token for authentication.

Common Inputs

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

Common Outputs

FieldTypeDescription
result_dataobject/arrayThe specific backlink or domain data requested.
left_linesintegerYour remaining API requests.
Use Case: Backlink Monitoring

A link-building agent runs weekly. It uses Active Backlinks to find new links, checks their quality using Referring Domains to get the domain rating, and sends a report of all new, high-quality links to a Slack channel.

Site Audit

This group includes components for managing technical SEO audits, such as List Audits, Get Project Settings, Audit Start, Stop Running Audit, and analyzing results with components like Audit Basic Info and List Report Issues.

INFO
These components require an API Token for authentication.

Common Inputs

FieldTypeRequiredNotes
idstringYesA unique identifier for your request.
projectIdstringYesThe ID of the project in Serpstat to audit.
reportIdstringVariesThe ID of a specific audit report to analyze.

Common Outputs

FieldTypeDescription
reportIdstring(Audit Start) The ID of the new audit report.
progressinteger(Audit Basic Info) The completion progress of the audit.
result_categoriesarray(List Report Issues) A list of issue categories found.
Use Case: Automated Audits
  1. An agent uses Create Serpstat Project for a new client's website.
  2. It then calls Audit Start to kick off the initial technical SEO audit.
  3. Another agent runs daily, uses List Audits to find the latest report, checks the progress, and once complete, uses List Report Issues to send a summary of critical errors to the development team.

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.