serpstat-mcp-server
v1.1.5Serpstat MCP Server for Serpstat API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_domains_info
GET SEO metrics for multiple domains. USE WHEN: comparing domains, bulk analysis. Returns: visibility, keywords, traffic, dynamics.
| Parameter | Type | Description |
|---|---|---|
domains * | array | List of domains to analyze (1-100 domains) |
se * | string | Search engine database (e.g., g_us for Google US) |
filters | object | Optional filters for the results |
get_domain_competitors
FIND competitor domains. USE WHEN: competitive analysis, finding rivals. Returns: domains with visibility, traffic, relevance.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain to analyze |
se * | string | Search engine database ID |
filters | object | Optional filter conditions |
size | integer | Number of results to return |
get_domain_keywords
GET keywords a domain ranks for in Google top-100. USE WHEN: domain keyword research, SEO audit. Returns: position, traffic, difficulty, CPC.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain name to analyze |
se * | string | Search engine database ID |
filters | object | Filter conditions |
keywords | array | Array of keywords to search for |
minusKeywords | array | Array of keywords to exclude from search |
page | integer | Page number |
size | integer | Number of results per page |
sort | object | Sort configuration |
url | string | Specific URL to filter results |
withIntents | boolean | Include keyword intents (works for g_ua and g_us only) |
withSubdomains | boolean | Include subdomains in analysis |
get_domain_urls
GET domain URLs with keyword counts. USE WHEN: finding top pages, URL structure analysis. Returns: URLs ranked by keyword count. Cost: 1 credit per URL.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain name to analyze |
se * | string | Search engine database ID |
filters | object | URL filtering options |
page | integer | Page number |
size | integer | Number of results per page |
sort | object | Sort configuration |
get_domain_regions_count
**REQUIRED FIRST STEP for domain analysis.** Determines best regional database (se parameter) by checking keyword presence across all Google regions. USE WHEN: starting any domain analysis, choosing se parameter. Returns: keyword count by country, primary market identification.
| Parameter | Type | Description |
|---|---|---|
domain * | string | Domain name to analyze |
order | string | Sort order |
sort | string | Sort by field |
get_domain_uniq_keywords
COMPARE two domains' unique keywords excluding a third domain. USE WHEN: domain vs domain analysis, finding keyword gaps between competitors.
| Parameter | Type | Description |
|---|---|---|
domains * | array | Array of domains to analyze for unique keywords (min 1, max 2) |
minusDomain * | string | Domain with keywords which must not intersect with domains parameter |
se * | string | Search engine database ID |
filters | object | Filter conditions for unique keywords |
page | integer | Page number |
size | integer | Number of results per page |
get_market_categories
LIST all market categories (1000+). **Call first before get_category_top_domains.** USE WHEN: market research, industry analysis. Returns: hierarchical category names with category_id (required for get_category_top_domains).
get_category_top_domains
GET top domains in market category. Requires category_id from get_market_categories. USE WHEN: market research, industry leaders. Returns: ranked domains with traffic, visibility, keywords, backlinks, SDR.
| Parameter | Type | Description |
|---|---|---|
category_id * | string | Category identifier in format .X.Y.Z. (e.g., '.2.' for Arts & Entertainment or '.2.13.1.' for Arts & Entertainment/TV & Video/Online Video). Get this from get_market_categories method. |
se * | string | Search engine database (e.g., g_us for Google US) |
filters | object | Filter conditions. All filters support exact value, min threshold, and max threshold. |
order | string | Sort order (asc or desc) |
page | integer | Page number |
size | integer | Number of results per page (allowed values: 20, 50, 100, 200, 500) |
sort | string | Sort field (global_rank, category_rank, traffic, visibility, keywords, referring_domains, backlinks, sdr) |
get_keywords
FIND organic keywords related to a keyword (by shared ranking domains). USE WHEN: keyword research, expanding keyword list. Returns: search volume, CPC, competition per keyword.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Keyword for finding related keywords |
se * | string | Search database ID |
filters | object | Results filters |
minusKeywords | array | Keywords to exclude from search |
page | integer | page number |
size | integer | results per page |
sort | object | Sorting parameters for results |
withIntents | boolean | Whether to include keyword intents |
get_keywords_info
GET metrics for multiple keywords at once. USE WHEN: bulk keyword analysis, checking volume/difficulty for keyword list. Returns: volume, CPC, competition, difficulty, SERP features, intents per keyword.
| Parameter | Type | Description |
|---|---|---|
keywords * | array | Array of keywords to analyze (1-1000 keywords) |
se * | string | Search engine database ID |
filters | object | Filter conditions |
sort | object | Sort configuration |
withIntents | boolean | Include keyword intents (works for g_ua and g_us only) |
get_keyword_suggestions
GET autocomplete-style keyword suggestions. USE WHEN: finding long-tail keywords, expanding seed keyword. Returns: keyword suggestions with geo-name flags.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Keyword to search for suggestions |
se * | string | Search engine database ID |
filters | object | Filter conditions |
page | integer | Page number in response |
size | integer | Number of results per page in response |
get_keyword_full_top
GET Google top-100 SERP with domain metrics for a keyword. USE WHEN: SERP analysis, checking who ranks. Returns: position, domain visibility, organic/PPC keyword counts, SDR, backlinks.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Keyword to search for |
se * | string | Search engine database ID |
size | integer | Number of results per page in response (minimum 10, maximum 100) |
sort | object | Order of sorting the results in the format: field: order |
get_keyword_top_urls
GET top URLs ranking for keyword variations by traffic. USE WHEN: finding best content for keyword, competitor page analysis. Returns: URLs with keyword count, traffic, shares.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Keyword to search for |
order | string | Sorting order |
page | integer | Page number |
page_size | integer | Number of results per page (allowed values: 10, 20, 30, 50, 100, 200, 500) |
se | string | Search engine database ID |
sort | string | Sorting by parameters (any field in urls section of response: url, keywords, traff, fbShares) |
get_keyword_competitors
FIND domains ranking for keyword in Google top-20. USE WHEN: keyword competition analysis, finding who ranks. Returns: visibility, traffic, keyword dynamics, relevance.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Keyword to search for competitors |
se * | string | Search engine database ID |
filters | object | Filters for search. Fields are combined using the AND logic |
size | integer | Number of results per page in response |
sort | object | Order of sorting the results in the format: field: order (e.g., {"region_queries_count": "desc"}) |
get_keyword_top
**DEPRECATED - use get_keyword_full_top instead.** GET Google top-100 positions for keyword. Returns: position, URL, domain, subdomain, SERP features.
| Parameter | Type | Description |
|---|---|---|
keyword * | string | Keyword to search for |
se * | string | Search engine database ID |
filters | object | Filters for search results |
size | integer | Number of results per page in response |
get_backlinks_summary
GET backlink profile overview. USE WHEN: backlink audit, link building assessment. Returns: referring domains count, backlinks count, link types, quality metrics, recent changes.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain or subdomain to analyze |
searchType | string | Type of search query |
get_anchors
GET anchor text distribution for backlinks. USE WHEN: anchor text audit, link diversity check. Returns: anchor texts with referring domains, backlinks count, nofollow ratio.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain, subdomain, or URL to analyze |
searchType * | string | Type of search query |
anchor | string | Filter by specific anchor text |
count | string | Number of words in anchor text filter |
order | string | Sort order (asc, desc) |
page | integer | Page number for pagination |
size | integer | Number of results per page |
sort | string | Sort results by field (total, refDomains, nofollow, anchor, lastupdate) |
get_active_backlinks
LIST active backlinks pointing to domain/URL. USE WHEN: backlink audit, finding link sources. Returns: linking page, target page, anchor, link type, attributes, discovery date.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain, subdomain, or URL to analyze |
linkPerDomain | integer | Use this parameter **ONLY** if you need one link per donor domain |
order | string | Sort order (asc, desc) |
page | integer | Page number for pagination |
searchType | string | Type of search query (domain, domain_with_subdomains, url, part_url) |
size | integer | Number of results per page |
sort | string | Sort results by field (url_from, anchor, link_nofollow, links_external, link_type, url_to, check, add, domain_rank) |
get_referring_domains
LIST domains linking to target site. USE WHEN: referring domain audit, link diversity analysis. Returns: domains with domain rank, referring pages count.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain to analyze for referring domains |
order | string | Sort order (asc, desc) |
page | integer | Page number for pagination |
searchType | string | Type of search query (domain, domain_with_subdomains) |
size | integer | Number of results per page |
sort | string | Sort results by field (domain_links, domain_from, domain_rank, check) |
get_lost_backlinks
LIST recently lost backlinks. USE WHEN: monitoring link losses, detecting problems. Returns: lost links with source, target, attributes, deletion date. **TIP: sort by check desc for most recent.**
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain name or URL to analyze |
additionalFilters | array | Additional filter options |
order | string | Sort order: asc or desc |
page | integer | Page number for pagination |
searchType | string | Type of search: domain, domain_with_subdomains, url, or part_url |
size | integer | Number of results per page |
sort | string | Field to sort results by |
get_top10_anchors
GET top-10 anchor texts (quick overview). USE WHEN: fast anchor check, backlink snapshot. Returns: top 10 anchors with backlink and referring domain counts.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain name to analyze |
searchType | string | Type of search: domain or domain_with_subdomains |
get_top_pages_by_backlinks
GET pages with most backlinks on a domain. USE WHEN: finding most linked pages, content analysis. Returns: pages ranked by referring pages, domains, IPs.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain name to analyze |
order | string | Sort order: asc or desc |
page | integer | Page number for pagination |
searchType | string | Type of search: domain or domain_with_subdomains |
size | integer | Number of results per page |
sort | string | Field to sort results by |
get_backlinks_intersection
FIND shared referring domains across multiple sites. USE WHEN: competitor backlink gap analysis, finding link opportunities. Returns: domains linking to multiple targets with link metrics and authority scores.
| Parameter | Type | Description |
|---|---|---|
intersect * | array | Array of competitor domains for intersection analysis |
query * | string | Main domain to analyze for backlinks intersection |
order | string | Sort order: asc or desc |
page | integer | Page number for pagination |
size | integer | Number of results per page |
sort | string | Field to sort results by (domain_rank, links_count1, links_count2, links_count3) |
get_active_outlinks
GET outbound links from domain/URL. USE WHEN: outlink audit, partnership analysis, checking external links. Returns: target URLs, anchors, link attributes (follow/nofollow), dates.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain name or URL to analyze for outbound links |
searchType * | string | Type of search: domain, domain_with_subdomains, url, or part_url |
linkPerDomain | integer | Maximum number of links to return per domain |
order | string | Sort order: asc or desc |
page | integer | Page number for pagination |
size | integer | Number of results per page |
sort | string | Field to sort results by |
get_active_outlink_domains
GET domains that receive outlinks from target. USE WHEN: outlink domain analysis, finding partnerships. Returns: target domains with link counts and patterns.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain name to analyze outbound link destinations |
searchType * | string | Search type for analysis |
order | string | Sort order |
page | integer | Page number for pagination |
size | integer | Number of results per page |
sort | string | Field to sort results by |
get_threat_backlinks
GET toxic/malicious backlinks. USE WHEN: disavow audit, threat detection, link cleanup. Returns: links from flagged sites (malware, social engineering, unwanted software) with threat type, source/target URLs, dates.
| Parameter | Type | Description |
|---|---|---|
query * | string | Domain to analyze for threat backlinks |
linkPerDomain | integer | Maximum number of links per domain to return |
order | string | Sort order: asc or desc |
page | integer | Page number for pagination |
searchType | string | Search type: 'domain' (exact domain) or 'domain_with_subdomains' (includes subdomains) |
size | integer | Number of results per page |
sort | string | Field to sort by: lastupdate, url_from, url_to, platform_type, threat_type |
get_url_summary_traff
GET traffic and keyword stats for URLs matching a pattern. USE WHEN: section traffic analysis, URL mask analysis. **HIGH-COST: 1000 credits per output type (traffic|keywords). Confirm with user before executing.** Returns: organic traffic, keyword count for matching URLs.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain for which to retrieve traffic and keyword data |
se * | string | Search database ID |
urlContains * | string | URL pattern to filter results. Must be at least 3 characters long. Method finds all URLs containing this substring and aggregates statistics. Examples: '/blog/' matches all blog pages, '/products/' ma… |
output_data | string | Specify which data to return. 'traffic' returns only traffic estimates (1000 credits). 'keywords' returns only keyword counts (1000 credits). If not specified, returns both traffic and keywords (2000… |
get_url_competitors
FIND competitor URLs ranking for same keywords in Google top-10. USE WHEN: page-level competition analysis, finding similar pages. URL must include https:// protocol. Requires 10+ keywords in top-10 (returns 'Data not found' for low-traffic pages). Cost: 1 credit/row.
| Parameter | Type | Description |
|---|---|---|
se * | string | Search database ID |
url * | string | Full URL to analyze including protocol. Examples: 'https://example.com/' or 'https://example.com/page'. The URL must rank for keywords in Google top-10 to have competitor data. New or low-traffic page… |
page | integer | Page number in response |
size | integer | Number of results per page |
sort | object | Sorting parameters |
get_url_keywords
GET keywords a URL ranks for in Google top-100. USE WHEN: page keyword analysis, content audit. Returns: position, traffic, difficulty, volume, SERP features per keyword. Cost: 1 credit/row.
| Parameter | Type | Description |
|---|---|---|
se * | string | Search database ID |
url * | string | Full URL to analyze including protocol (https://). Returns keywords where this exact URL ranks in Google top-100 (Bing top-50). Examples: 'https://example.com/', 'https://example.com/blog/article' |
filters | object | Filter conditions |
page | integer | Page number in response |
size | integer | Number of results per page |
sort | object | Sorting parameters |
withIntents | boolean | Include keyword search intent classification (informational, navigational, commercial, transactional). When enabled, response includes intents array for each keyword. |
get_url_missing_keywords
FIND content gap keywords (competitors rank in top-20, your URL does not). USE WHEN: content gap analysis, finding quick wins, keyword opportunities. Returns: missing keywords with weight (higher = more competitors rank for it). Cost: 1 credit/row.
| Parameter | Type | Description |
|---|---|---|
se * | string | Search database ID |
url * | string | Analyzed URL |
filters | object | Filter conditions |
page | integer | Page number in response |
size | integer | Number of results per page |
sort | object | Sorting parameters. Sort by `weight` to see keywords where most competitors rank (highest opportunity) |
create_project
CREATE new project for SEO tracking and audits. USE WHEN: starting new project, setting up monitoring.
| Parameter | Type | Description |
|---|---|---|
domain * | string | The domain associated with the project (e.g., example.com) |
name * | string | The name of the project. Can be the same as the domain or a custom name |
groups | array | Optional list of groups to associate with the project. Groups will be created if they don't exist |
delete_project
DELETE project permanently. **CRITICAL: Request user confirmation. Cannot be undone.** USE WHEN: removing project.
| Parameter | Type | Description |
|---|---|---|
project_id * | number | The unique ID of the project to delete |
list_projects
LIST account projects. USE WHEN: viewing projects, finding project ID. Supports pagination.
| Parameter | Type | Description |
|---|---|---|
page | number | The page number in the projects list |
size | number | Number of results per page. Allowed values: 20, 50, 100, 200, 500 |
get_credits_for_audit_stats
CHECK audit credits. USE WHEN: before running audits, checking limits. Returns: one-page audit credits, JS scanning credits, page crawl limits.
get_credits_stats
CHECK API credits and usage stats. USE WHEN: monitoring usage, before expensive operations. Returns: credits balance, usage stats, account info.
get_rt_projects_list
LIST rank tracking projects. USE WHEN: finding projects, starting rank analysis. Returns: projectId, name, domain, creation date, status.
| Parameter | Type | Description |
|---|---|---|
page | number | Page number in the projects list |
pageSize | number | Number of results per page. Allowed values: 20, 50, 100, 500 |
get_rt_project_status
CHECK position update status for project/region. USE WHEN: before requesting rank data, checking if data ready. Returns: parsing status.
| Parameter | Type | Description |
|---|---|---|
projectId * | number | Project identifier |
regionId * | number | Search region ID (see https://docs.google.com/spreadsheets/d/1LUDtm-L1qWMVpmWuN-nvDyYFfQtfiXUh5LIHE8sjs0k/edit?gid=75443986#gid=75443986) |
get_rt_project_regions_list
LIST regions configured for project. USE WHEN: finding regionId, checking tracked regions. Returns: regionId, status, SERP type, device type, search engine, location.
| Parameter | Type | Description |
|---|---|---|
projectId * | number | Project identifier |
get_rt_project_keyword_serp_history
GET full top-100 SERP history for tracked keywords. USE WHEN: competitor tracking, SERP changes analysis. Returns: positions, URLs, domains, volumes per date. **WARNING: large datasets. Use pageSize 20-50, date/keyword filters to reduce.** Supports keyword tagging.
| Parameter | Type | Description |
|---|---|---|
page * | number | Page number for pagination. Starts at 1. |
projectId * | number | Project identifier |
projectRegionId * | number | Region ID for the project. Required. Get from get_rt_project_regions_list method. Each project can track multiple regions. See region reference: https://docs.google.com/spreadsheets/d/1LUDtm-L1qWMVpmW… |
dateFrom | string | Start date of the period in YYYY-MM-DD format (e.g., '2025-09-01'). Use to filter historical data and reduce response size. |
dateTo | string | End date of the period in YYYY-MM-DD format (e.g., '2025-09-30'). Use to filter historical data and reduce response size. |
keywords | array | Filter by specific keywords (max 1000 keywords) |
order | string | Sorting order: 'asc' (oldest first) or 'desc' (newest first). Default is 'desc'. |
pageSize | number | Number of keywords per page. Allowed values: 20, 50, 100, 500. RECOMMENDED: Use 20 or 50 to avoid response truncation due to large dataset sizes. Each keyword returns full top-100 SERP for all dates. |
sort | string | Sort results by 'keyword' (alphabetically) or 'date' (chronologically). Default is 'date'. |
withTags | boolean | Include keyword tags in the response. Tags are used to group and categorize keywords in the project. Set to true to receive tag IDs and values for each keyword. |
get_rt_project_url_serp_history
GET YOUR domain's ranking history only (not full top-100). Unlike get_rt_project_keyword_serp_history, shows only where your URL ranks. USE WHEN: tracking own rankings, performance monitoring. Returns: positions, volumes, keyword tags.
| Parameter | Type | Description |
|---|---|---|
page * | number | Page number for pagination. Starts at 1. |
projectId * | number | Rank tracker project ID. Required. Get from get_rt_projects_list method. |
projectRegionId * | number | Region ID for the project. Required. Get from get_rt_project_regions_list method. Each project can track multiple regions. See region reference: https://docs.google.com/spreadsheets/d/1LUDtm-L1qWMVpmW… |
dateFrom | string | Start date of the period in YYYY-MM-DD format (e.g., '2025-09-01'). Filters historical data to this date range. |
dateTo | string | End date of the period in YYYY-MM-DD format (e.g., '2025-09-30'). Filters historical data to this date range. |
domain | string | Domain or URL to track. Accepts: 'domain.com' (tracks all URLs from this domain), 'subdomain.domain.com' (tracks specific subdomain), or full URL 'https://domain.com/page' (tracks specific page). Do N… |
keywords | array | Filter results by specific keywords (max 1000 keywords). Returns only data for the specified keywords where your domain ranks. |
order | string | Sorting order: 'asc' (oldest first) or 'desc' (newest first). Default is 'desc'. |
pageSize | number | Number of keywords per page. Allowed values: 20, 50, 100, 500. Recommended: 100 for most use cases (response is much smaller than get_rt_project_keyword_serp_history since it only shows your domain's… |
sort | string | Sort results by 'keyword' (alphabetically) or 'date' (chronologically). Default is 'keyword'. |
withTags | boolean | Include keyword tags in the response. Tags are used to group and categorize keywords in the project. Set to true to receive tag IDs and values for each keyword. |
get_site_audit_settings
GET current settings of EXISTING audit project. USE WHEN: reviewing project config, before modifying settings. Returns: mainSettings, scan filters, auth, notifications, scheduling, error thresholds. Compare with get_site_audit_project_default_settings (template for NEW projects). Free.
| Parameter | Type | Description |
|---|---|---|
projectId * | integer | Project ID to get settings for |
set_site_audit_settings
UPDATE audit project configuration. USE WHEN: creating or modifying audit project. Get template from get_site_audit_project_default_settings first, modify, save with this method. Required: mainSettings, scanSetting (1=all site, 2=URL list, 3=sitemap), scheduleSettings, mailTriggerSettings, baseAuthBlock, keyword filters. Free.
| Parameter | Type | Description |
|---|---|---|
baseAuthBlock * | object | HTTP Basic authentication credentials |
dontScanKeywordsBlock * | object | Exclude pages with these keywords in URL |
mailTriggerSettings * | object | Email notification settings |
mainSettings * | object | |
onlyScanKeywordsBlock * | object | Only scan pages with these keywords in URL |
projectId * | integer | Project ID to update settings for |
scanSetting * | object | Scan type and URL list settings |
scheduleSettings * | object | Scan scheduling settings |
errorsSettings | object | Error detection thresholds (optional) |
start_site_audit
START audit scan for project. USE WHEN: launching site crawl. Returns: reportId. Check progress with get_site_audits_list (progress field). **Cost: 1 credit/page (10 credits/page with JS rendering).** Wait for progress=100 before analyzing.
| Parameter | Type | Description |
|---|---|---|
projectId * | integer | Project ID to start audit for |
stop_site_audit
STOP active audit scan. USE WHEN: canceling crawl. Partial results may be available. Check get_site_audits_list for stopped status.
| Parameter | Type | Description |
|---|---|---|
projectId * | integer | Project ID to stop audit for |
get_site_audit_results_by_categories
GET aggregated error stats by category. USE WHEN: quick audit overview, identifying problem areas. Returns: error counts per category (highCount, mediumCount, lowCount, informationCount). Categories: pages_status, meta_tags, headings, content, multimedia, indexation, redirects, links, server_params, https, hreflang, amp, markup, pagespeed. For error details use get_site_audit_deteailed_report. Free.
| Parameter | Type | Description |
|---|---|---|
reportId * | integer | Audit report ID to get statistics for |
get_site_audit_history
TRACK specific error type trend over time. USE WHEN: verifying fixes, monitoring error growth. Returns: reportId, date, count per audit. errorName must match error.key from get_site_audit_deteailed_report (e.g., 'no_desc'). Free.
| Parameter | Type | Description |
|---|---|---|
errorName * | string | Error type name (e.g., h1_missing, no_desc, long_title) |
projectId * | integer | Project ID to get error history for |
limit | integer | Number of history items to return |
offset | integer | Offset for pagination |
get_site_audits_list
**STARTING POINT for audit analysis.** LIST all audit reports for project. USE WHEN: finding reportId, checking audit status. Returns: reportId (for other methods), date, SDO score (0-100), pages scanned, issue counts, progress (0-100), hasDetailData flag. **TIP: sort by date for most recent.** Free.
| Parameter | Type | Description |
|---|---|---|
projectId * | integer | Project ID to get audits list for |
limit | integer | Number of audits to return |
offset | integer | Offset for pagination |
get_site_audit_scanned_urls_list
GET configured URL list for scanning (input config, not scan results). **ONLY works when scanSetting.type is 2 (URL list) or 3 (sitemap list).** Returns error for type=1 (scan all site). USE WHEN: checking scan URL configuration. For actual scanned page count use get_site_audits_list. Free.
| Parameter | Type | Description |
|---|---|---|
projectId * | integer | Project ID to get scanned URLs list for |
get_site_audit_project_default_settings
GET default template for NEW audit projects (not existing project settings). USE WHEN: creating new project, populating defaults. Workflow: 1) Call this, 2) Modify (set domain, name, limits), 3) Save with set_site_audit_settings. Defaults: pagesLimit=5000, scheduleRepeatOption=3 (weekly). No projectId required. Free.
get_site_audit_bref_info
GET quick audit summary (lightweight). USE WHEN: dashboard display, quick status check. Returns: SDO score (0-100), error counts by priority, pages scanned, progress, stopped/captcha flags. For details use get_site_audit_results_by_categories or get_site_audit_deteailed_report. Free.
| Parameter | Type | Description |
|---|---|---|
reportId * | integer | The unique identifier for an audit report |
get_site_audit_deteailed_report
GET complete error breakdown by categories. **Main method for detailed analysis.** USE WHEN: full audit review, error analysis. Returns: categories with errors (key, priority, countAll, countNew, countFixed). Use compareReportId for diff between audits. Use error.key with get_site_audit_history or get_site_audit_pages_spec_errors for drill-down. Free.
| Parameter | Type | Description |
|---|---|---|
reportId * | integer | The unique identifier for an audit report |
compareReportId | integer | Another unique identifier for an audit report from the same project to compare |
get_site_audit_pages_spec_errors
**DRILL-DOWN STEP 1:** GET pages/elements with specific error. USE WHEN: finding affected pages for an error. Returns: url, urlCrc/imageCrc (for step 2), count. Use CRC with get_site_audit_elements_with_issues for deeper analysis. Mode: 'all'|'new'|'solved' (vs compareReportId). Free.
| Parameter | Type | Description |
|---|---|---|
compareReportId * | integer | Another unique identifier for an audit report from the same project to compare |
errorName * | string | Error name to filter by |
projectId * | integer | The unique identifier for an audit site project |
reportId * | integer | The unique identifier for an audit report |
limit | integer | Count of returned items in response |
mode | string | Error display mode: all (all errors), new (new errors), solved (fixed errors) |
offset | integer | Batch number required for pagination |
get_site_audit_elements_with_issues
**DRILL-DOWN STEP 2:** Shows WHERE problematic element is used. USE WHEN: tracing error to pages. Use crc from get_site_audit_pages_spec_errors. **ONLY for hierarchical errors (images, scripts, links).** Returns 'Error don't have sub elements' for page-level errors (no_desc, h1_missing). Free.
| Parameter | Type | Description |
|---|---|---|
crc * | integer | URL CRC from get_site_audit_pages_spec_errors response |
errorName * | string | Error name to filter by |
projectId * | integer | The unique identifier for an audit site project |
reportId * | integer | The unique identifier for an audit report |
compareReportId | integer | Another unique identifier for an audit report from the same project to compare |
limit | integer | Count of returned items in response |
mode | string | Error display mode: all (all errors), new (new errors), solved (fixed errors) |
offset | integer | Batch number required for pagination |
page_audit_start_scan
SCAN single webpage with JS rendering. USE WHEN: page audit, on-page SEO check. Returns: pageId, reportId. Track with page_audit_get_reports_for_page. **Cost: 10 credits.** Wait for progress=100 before results.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the audit project |
url * | string | Page URL to scan |
userAgent * | integer | User agent ID. Recommended: 0 (Chrome) for most use cases. Values: 0=Chrome, 1=Serpstat, 2=Google, 3=Yandex, 4=Firefox, 5=IE |
httpAuthLogin | string | Login for Basic HTTP authentication (optional) |
httpAuthPass | string | Password for Basic HTTP authentication (optional) |
page_audit_get_last_scans
**STARTING POINT for page audits.** LIST all page audit projects. USE WHEN: finding pageId, listing audited pages. Returns: pageId (for other methods), url, name, status, lastActiveReport with SDO and counts. Free.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Number of items to return (optional, default 30) |
offset | integer | Offset for pagination (optional, default 0) |
teamMemberId | integer | Filter by team member ID (optional) |
page_audit_get_reports_for_page
GET audit report history for page. USE WHEN: tracking scan completion, viewing past results. Returns: reportId, date, status (1=in progress, 3=finalizing, 4=completed), SDO, error counts, progress. **TIP: sort by date for most recent.** Free.
| Parameter | Type | Description |
|---|---|---|
pageId * | integer | Page ID to get reports for |
limit | integer | Number of reports to return (optional) |
offset | integer | Offset for pagination (optional) |
page_audit_get_results_report
GET detailed page audit results. USE WHEN: analyzing page issues, reviewing errors after scan. Returns: categories (errors by type: meta_tags, headings, content, multimedia, pagespeed), page data, report (SDO, counts). Each error has: key, priority, counts, hasAdditionRows (if true, drill down with page_audit_report_drill_down). Free.
| Parameter | Type | Description |
|---|---|---|
pageId * | integer | Page ID to get audit results for. Use pageId from page_audit_get_last_scans or page_audit_start_scan response. |
page_audit_rescan
RESCAN existing page audit. USE WHEN: re-checking after fixes. Returns: reportId. Track with page_audit_get_reports_for_page. **Cost: 10 credits.**
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name (can update if needed) |
pageId * | integer | Page ID to rescan |
userAgent * | integer | User agent ID. Recommended: 0 (Chrome) for most use cases. Values: 0=Chrome, 1=Serpstat, 2=Google, 3=Yandex, 4=Firefox, 5=IE |
httpAuthLogin | string | Login for Basic HTTP authentication (optional) |
httpAuthPass | string | Password for Basic HTTP authentication (optional) |
page_audit_stop
STOP active page audit scan. USE WHEN: canceling scan. Returns: success boolean.
| Parameter | Type | Description |
|---|---|---|
pageId * | integer | Page ID to stop scanning |
page_audit_delete
DELETE page audit project. USE WHEN: removing audit project. Returns: success boolean.
| Parameter | Type | Description |
|---|---|---|
pageId * | integer | Page ID to remove |
page_audit_get_report_by_categories
GET audit results by categories for report. USE WHEN: category-level analysis, comparing reports. Returns: categories with errors by type, page data. Use compareReportId for countNew/countFixed vs previous report. Free.
| Parameter | Type | Description |
|---|---|---|
reportId * | integer | Report ID to get audit results for |
compareReportId | integer | Report ID to compare with (optional). When provided, countNew and countFixed will show differences between the two reports. |
page_audit_report_drill_down
GET problematic elements for specific error. **ONLY works if hasAdditionRows=true** from page_audit_get_results_report. USE WHEN: drilling into error details. Returns error for hasAdditionRows=false. Response varies: multimedia errors -> image URL array; page-level errors -> page URL array. **Check hasAdditionRows flag first.** Free.
| Parameter | Type | Description |
|---|---|---|
error * | string | Error type key to get details for. Must match error.key value from page_audit_get_results_report response (e.g., image_no_alt, broken_image_url, large_image_size). Only works for errors where hasAddit… |
reportId * | integer | Report ID to get error details for |
compareReportId | integer | Report ID to compare with for new/solved filtering (optional, required when mode is new or solved) |
mode | string | Filter mode: all (all errors), new (errors added since compareReportId), solved (errors fixed since compareReportId). Optional, default is all. |
page | integer | Page number for pagination (optional) |
size | integer | Number of results per page (optional, max 1000) |
page_audit_get_scan_names
LIST page audit project names. USE WHEN: discovering projects. Returns: pageId, name, url, finishedReportCount. Free.
| Parameter | Type | Description |
|---|---|---|
teamMemberId | integer | Filter by team member ID (optional) |
page_audit_scan_logs
GET scan event logs. USE WHEN: debugging scan issues, tracking progress. Returns: log items with message (audit_finish, crawl_start, etc), type (info/warning/error), params, timestamp. Supports pagination. Free.
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number for pagination (optional, default 0, starts from 0) |
pageSize | integer | Number of log items per page (optional, default 100) |
reportId | integer | Report ID to get logs for (required). If not specified, returns logs for all scans. |