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.
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.
Component | Action | What it Does | Inputs | Key Outputs | Use Case |
---|---|---|---|---|---|
Keyword Research | Research | Gathers organic keywords related to a seed keyword. | keyword , se | result_data | Finding long-tail variations of a target keyword. |
Related Keywords | Research | Retrieves related keywords with their metrics. | search_question | keyword , volume | Building a topic cluster for content strategy. |
Search Suggestions | Research | Provides search suggestions for a given keyword. | keyword , se | result_data | Understanding user search behavior and intent. |
Domain Keywords | Research | Finds keywords a specific domain ranks for. | domain , se | result_data | Analyzing a competitor's organic keyword strategy. |
Missing Keywords | Research | Finds keywords competitors rank for, but your URL doesn't. | url , se | result_data | Identifying content gaps and SEO opportunities. |
Competitors in OSERP | Research | Lists a domain's main competitors in organic search. | domain , se | result_data | Identifying who you're up against in the SERPs. |
Domain Ads | Research | Returns paid keywords and ad copy for a domain. | domain , se | result_data | Analyzing a competitor's PPC strategy and ad copy. |
Active Backlinks | Audit | Retrieves a list of active backlinks pointing to a domain. | query , searchType | result_data | Monitoring your link-building efforts. |
Referring Domains | Audit | Lists all unique domains linking to the analyzed site. | query , searchType | result_data | Assessing the quality of a site's link profile. |
Top Pages (Backlink) | Audit | Lists the pages on a site with the most backlinks. | query , searchType | result_data | Identifying your most authoritative content. |
Summary Report | Report | Gets general information about a domain's link profile. | query , searchType | result_data | A quick overview of a domain's backlink health. |
Create Serpstat Project | Write | Creates a new project in your Serpstat account. | domain , name | project_id | Setting up a new client or website for tracking. |
List Serpstat Projects | Read | Retrieves a list of all your projects in Serpstat. | id | result_data | Finding a project_id for other operations. |
Audit Start | Write | Initiates a site audit for a specified project. | projectId | reportId | Kicking off a technical SEO audit automatically. |
List Audits | Read | Provides a list of all site audits for a project. | projectId | result | Checking the history of site audits. |
Add User To Team | Write | Invites a new user to join your Serpstat team. | email | success , user_id | Automating 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.)
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
- Log in to your Serpstat account.
- Navigate to your Profile Settings.
- Find the API section.
- Your API Token will be displayed here. If it's not present, you may need to generate it.
- 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.
- In your SmythOS dashboard, navigate to the Vault.
- Create a new secret and paste your Serpstat API Token as the value. Give it a memorable name, like
serpstat_api_token
. - For more details, see the Vault Documentation.
Step 3: Configure a Serpstat Component
- In your SmythOS agent graph, drag and drop any Serpstat component.
- Click the component to open its Settings panel.
- In the
API Token
field, select the secret you saved in the Vault (e.g.,serpstat_api_token
). - Your connection is now configured for that component.
Which Serpstat Component Should I Use?
If you need to… | Target | Use this Component | Why this one? |
---|---|---|---|
Find new keyword ideas for a blog post | A seed keyword | Related Keywords | Expands your topic into a list of semantically similar keywords with metrics. |
See what your competitor ranks for | A competitor's domain | Domain Keywords | The best way to analyze a competitor's entire organic keyword footprint. |
Find easy content opportunities | Your domain and a competitor's | Missing Keywords | Directly shows you what keywords your competitors rank for that you don't. |
Check your backlink profile health | Your domain | Active Backlinks | Provides a full list of all current backlinks pointing to your site. |
Start a technical SEO audit for a new client | A projectId | Audit Start | Kicks off Serpstat's comprehensive site audit tool programmatically. |
Get a quick overview of a domain's stats | A domain | Summary Report | Provides 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.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
keyword | string | Yes | The search term to analyze. |
se | string | Optional | Search engine and region (e.g., g_us ). Default: g_us . |
page | integer | Optional | Page number for pagination. Default: 1 . |
size | integer | Optional | Number of results per page. Default: 100 . |
Outputs
Field | Type | Description |
---|---|---|
result_data | array | An array containing search suggestion results. |
total | integer | Total number of available results. |
left_lines | integer | Your remaining API requests for the day. |
{
"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.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
keyword | string | Yes | The keyword to analyze. |
se | string | Optional | Search engine and region. Default: g_us . |
Outputs
Field | Type | Description |
---|---|---|
Response | object | The API response, which will contain information about the export task. |
Related Keywords
Retrieves related keywords with their metrics and search intent data.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
search_question | string | Yes | The keyword to find related terms for. |
search_country | string | Yes | Target country for search data. |
Outputs
Field | Type | Description |
---|---|---|
keyword | string | The related keyword found. |
volume | integer | The search volume for the related keyword. |
cpc | float | The Cost Per Click for the related keyword. |
search-intent | string | User intent classification (e.g., informational). |
competition_value | float | The level of advertiser competition. |
Domain Ads
Returns paid keywords and ad copies for a specific domain.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
domain | string | Yes | The target domain to analyze. |
se | string | Yes | Search engine and region. Default: g_us . |
Outputs
Field | Type | Description |
---|---|---|
result_data | array | An array containing the domain's ad data, including keywords and ad copy. |
left_lines | integer | Your remaining API requests. |
Ads Examples
Retrieves paid keywords and ad copy examples for specific keywords.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
keyword | string | Yes | The keyword to analyze for ad examples. |
se | string | Yes | Search engine and region. |
Outputs
Field | Type | Description |
---|---|---|
result_data | array | An array of ad examples for the specified keyword. |
total | integer | The total number of ad examples found. |
Top Pages By Domain
Returns a hierarchical list of a website's pages based on their SEO strength.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
domain | string | Yes | The target domain. |
se | string | Optional | Search engine and region. Default: g_us . |
Outputs
Field | Type | Description |
---|---|---|
result_data | array | An array of page objects, ordered by SEO value. |
total | integer | The total number of pages found. |
URL Rank Keywords
Returns keywords that a specific URL ranks for in the top 100 Google search results.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
url | string | Yes | The target URL to analyze. |
se | string | Yes | Search engine and region. Default: g_us . |
Outputs
Field | Type | Description |
---|---|---|
result_data | array | An array of keywords the URL ranks for, including position. |
total | integer | Total number of ranking keywords found. |
URL Competitors
Returns a list of URLs that are competitors to a specific URL in organic search.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
url | string | Yes | The target URL to analyze. |
se | string | Yes | Search engine and region. Default: g_us . |
Outputs
Field | Type | Description |
---|---|---|
result_data | array | An array of competitor URL objects. |
total | integer | Total number of competitors found. |
Missing Keywords
Returns keywords that competitors rank for but the given URL does not.
Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
url | string | Yes | The URL of your page to analyze. |
se | string | Yes | Search engine and region. Default: g_us . |
Outputs
Field | Type | Description |
---|---|---|
result_data | array | An array of keyword objects you are missing. |
Backlinks & Domains
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.
Common Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
query | string | Yes | The domain or URL to analyze. |
searchType | string | Yes | The type of query (e.g., domain , url ). |
Common Outputs
Field | Type | Description |
---|---|---|
result_data | object/array | The specific backlink or domain data requested. |
left_lines | integer | Your remaining API requests. |
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.
Common Inputs
Field | Type | Required | Notes |
---|---|---|---|
id | string | Yes | A unique identifier for your request. |
projectId | string | Yes | The ID of the project in Serpstat to audit. |
reportId | string | Varies | The ID of a specific audit report to analyze. |
Common Outputs
Field | Type | Description |
---|---|---|
reportId | string | (Audit Start) The ID of the new audit report. |
progress | integer | (Audit Basic Info) The completion progress of the audit. |
result_categories | array | (List Report Issues) A list of issue categories found. |
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 useURL Rank Keywords
to see which of their pages ranks for it, and finally useActive 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.
- Cause: The query may genuinely have no data (e.g., a new domain with no keywords), or the
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
andMalicious Domains Donors
components weekly and sends an alert if a significant number of valuable links are lost or new toxic links are found.
- Creates a "Content Gap Analysis" report. It takes your domain and three competitor domains, uses
-
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.
- Combine Serpstat with an LLM component. Use