> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# SpyFu

> SpyFu competitive research API: domain stats, organic and paid keywords, competitors, top pages and keyword data.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/spyfu.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=761dbe463e72b88733d8fb20f03fd5b8)

[Web Catalog · SEO](https://docs.webrouter.net/data-apis.md?category=seo)

Needs&#x20;

`SPYFU_API_KEY`

Endpoints

8

Auth

Key in query

[Vendor docs](https://developer.spyfu.com/)

&#x20;·&#x20;

[Pricing](https://developer.spyfu.com/docs/api-pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `SPYFU_API_KEY` | required | your SpyFu API Secret Key (Account Settings > API Usage at spyfu.com/account/api) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Each API group has its own path prefix under /apis: domain\_stats\_api, serp\_api, keyword\_api, competitors\_api.
* Billing is pay-as-you-go per row returned, priced per 1,000 rows by endpoint (stated in each note). Pro + AI plans include a \$40 monthly credit and Team/Agency plans \$100.
* pageSize defaults to 5 rows, so set it explicitly; page with startingRow.
* Rate limits are per endpoint, per second, and a 429 comes with Retry-After: 1. Some endpoints allow only 10 requests a second.
* SpyFu also accepts HTTP Basic with the API ID and Secret Key, or an HMAC signature; this entry uses the api\_key query parameter.

## Endpoints

GET

Latest domain stats

Latest SEO and PPC metrics for a domain: keywords, clicks, traffic value, ad spend and ranks.

[Open](#spyfu-domain-stats-latest)

GET

Most valuable organic keywords

Keywords that bring a domain, subdomain, path or URL the most organic clicks.

[Open](#spyfu-seo-most-valuable-keywords)

GET

Most successful paid keywords

Paid search keywords a domain has advertised on with the strongest results over the past year.

[Open](#spyfu-ppc-most-successful-keywords)

GET

Top organic competitors

Domains competing for the same organic keywords as a domain.

[Open](#spyfu-seo-top-competitors)

GET

Related keywords

Keywords thematically related to a seed keyword, with volume, difficulty and click data.

[Open](#spyfu-keywords-related)

GET

Keyword information in bulk

Search volume, difficulty, cost and click metrics for a list of exact keywords.

[Open](#spyfu-keywords-info)

GET

Highest-traffic pages

A domain's pages with the most estimated organic traffic.

[Open](#spyfu-seo-top-pages)

GET

SERP analysis for a keyword

Domains ranking in positions 1-100 for a keyword, updated monthly.

[Open](#spyfu-seo-serp-analysis)

### Latest domain stats

GET

`/domain_stats_api/v2/getLatestDomainStats`

`spyfu.domain.stats_latest`

Latest SEO and PPC metrics for a domain: keywords, clicks, traffic value, ad spend and ranks.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain` required</td><td>string</td><td>query</td><td>The domain to get statistics for. Example `example.com`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>

    <tr>
      <td>
        `pastNMonths`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Return the latest N months of stats instead of one row.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/domainstatsapi_getlatestdomainstats_get) · Same job: [Adyntel](https://docs.webrouter.net/data-apis/adyntel.md#adyntel-domain-keywords), [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-metrics), [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-traffic), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-web-traffic), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-domain-traffic), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-index-item-info)

```python Python theme={null}
router.call_data_api("spyfu.domain.stats_latest", {'domain': 'example.com', 'countryCode': 'US'})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.domain.stats_latest", params={"domain": "example.com", "countryCode": "US"})
```

> [!NOTE]
>
> * Billed per row returned at \$0.50 per 1,000 rows.

### Most valuable organic keywords

GET

`/serp_api/v2/seo/getMostValuableKeywords`

`spyfu.seo.most_valuable_keywords`

Keywords that bring a domain, subdomain, path or URL the most organic clicks.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>Domain, URL, subdomain or path to analyze. Example `example.com/blog`</td></tr>

    <tr>
      <td>
        `compareDomain`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A domain to compare against.
      </td>
    </tr>

    <tr>
      <td>
        `includeTerms`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated terms that must appear in the keyword.
      </td>
    </tr>

    <tr>
      <td>
        `includeAnyTerm`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        With includeTerms: true matches any term, false (default) requires all.
      </td>
    </tr>

    <tr>
      <td>
        `excludeTerms`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated terms to leave out.
      </td>
    </tr>

    <tr>
      <td>
        `searchVolume_min`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Minimum monthly search volume.
      </td>
    </tr>

    <tr>
      <td>
        `searchVolume_max`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Maximum monthly search volume.
      </td>
    </tr>

    <tr>
      <td>
        `rank_min`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Best rank position to include (1 is top).
      </td>
    </tr>

    <tr>
      <td>
        `rank_max`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Worst rank position to include.
      </td>
    </tr>

    <tr>
      <td>
        `keywordDifficulty_max`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Maximum keyword difficulty, 0-100.
      </td>
    </tr>

    <tr><td>`pageSize`</td><td>integer</td><td>query</td><td>Maximum rows returned. Default 5. Example `5`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>

    <tr>
      <td>
        `sortBy`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Column to sort by; default SearchVolume. Others include KeywordDifficulty, Rank, RankChange, SeoClicks and SeoClicksChange.
      </td>
    </tr>

    <tr><td>`sortOrder`</td><td>string</td><td>query</td><td>Sort direction; default Descending. One of `Ascending`, `Descending`</td></tr>
    <tr><td>`startingRow`</td><td>integer</td><td>query</td><td>Row number to start from, for paging. Default 1. Example `1`</td></tr>

    <tr>
      <td>
        `adultFilter`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Exclude adult keywords. Default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/organicserpapi_getmostvaluablekeywords_get) · Same job: [Advanced Web Ranking](https://docs.webrouter.net/data-apis/advanced-web-ranking.md#advanced-web-ranking-marketshare-domain-keywords), [BuiltWith](https://docs.webrouter.net/data-apis/builtwith.md#builtwith-keywords-get), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-labs-ranked-keywords), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-domain-keywords), [Similarweb](https://docs.webrouter.net/data-apis/similarweb.md#similarweb-keywords-website)

```python Python theme={null}
router.call_data_api("spyfu.seo.most_valuable_keywords", {'query': 'example.com/blog', 'pageSize': 5, 'countryCode': 'US', 'startingRow': 1})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.seo.most_valuable_keywords", params={"query": "example.com/blog", "pageSize": 5, "countryCode": "US", "startingRow": 1})
```

> [!NOTE]
>
> * Billed per row returned at \$0.50 per 1,000 rows. The endpoint takes many more min/max filters; only the main ones are listed.
> * Default pageSize is 5, so raise it.

### Most successful paid keywords

GET

`/keyword_api/v2/ppc/getMostSuccessful`

`spyfu.ppc.most_successful_keywords`

Paid search keywords a domain has advertised on with the strongest results over the past year.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>Domain or URL to analyze. Example `example.com`</td></tr>

    <tr>
      <td>
        `includeTerms`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated terms that must appear in the keyword.
      </td>
    </tr>

    <tr>
      <td>
        `includeAnyTerm`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        With includeTerms: true matches any term, false (default) requires all.
      </td>
    </tr>

    <tr>
      <td>
        `excludeTerms`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated terms to leave out.
      </td>
    </tr>

    <tr>
      <td>
        `excludeDomain`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A domain to exclude from the keyword results.
      </td>
    </tr>

    <tr>
      <td>
        `isQuestion`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only question keywords.
      </td>
    </tr>

    <tr>
      <td>
        `isTransactionalIntent`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only keywords with transactional intent.
      </td>
    </tr>

    <tr><td>`pageSize`</td><td>integer</td><td>query</td><td>Maximum rows returned. Default 5. Example `5`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>

    <tr>
      <td>
        `sortBy`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Column to sort by; default SearchVolume. Others include LiveSearchVolume, RankingDifficulty and TotalMonthlyClicks.
      </td>
    </tr>

    <tr><td>`sortOrder`</td><td>string</td><td>query</td><td>Sort direction; default Descending. One of `Ascending`, `Descending`</td></tr>
    <tr><td>`startingRow`</td><td>integer</td><td>query</td><td>Row number to start from, for paging. Default 1. Example `1`</td></tr>

    <tr>
      <td>
        `adultFilter`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Exclude adult keywords. Default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/paidserpapi_getmostsuccessful_get) · Same job: [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-domain-paid-keywords)

```python Python theme={null}
router.call_data_api("spyfu.ppc.most_successful_keywords", {'query': 'example.com', 'pageSize': 5, 'countryCode': 'US', 'startingRow': 1})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.ppc.most_successful_keywords", params={"query": "example.com", "pageSize": 5, "countryCode": "US", "startingRow": 1})
```

> [!NOTE]
>
> * Billed per row returned at \$2.00 per 1,000 rows.

### Top organic competitors

GET

`/competitors_api/v2/seo/getTopCompetitors`

`spyfu.seo.top_competitors`

Domains competing for the same organic keywords as a domain.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`domain` required</td><td>string</td><td>query</td><td>The domain to find organic competitors for. Example `example.com`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>
    <tr><td>`sortBy`</td><td>string</td><td>query</td><td>Column to sort by; default Rank. One of `Domain`, `CommonTerms`, `Rank`</td></tr>
    <tr><td>`sortOrder`</td><td>string</td><td>query</td><td>Sort direction; default Descending. One of `Ascending`, `Descending`</td></tr>
    <tr><td>`pageSize`</td><td>integer</td><td>query</td><td>Maximum rows returned. Default 5. Example `5`</td></tr>
    <tr><td>`startingRow`</td><td>integer</td><td>query</td><td>Row number to start from, for paging. Default 1. Example `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/competitorsapi_gettopseocompetitors_get) · Same job: [Advanced Web Ranking](https://docs.webrouter.net/data-apis/advanced-web-ranking.md#advanced-web-ranking-marketshare-metadata), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-domain-competitors), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-domain-organic-competitors), [SE Ranking](https://docs.webrouter.net/data-apis/seranking.md#seranking-domain-competitors), [Serpstat](https://docs.webrouter.net/data-apis/serpstat.md#serpstat-domain-competitors), [Similarweb](https://docs.webrouter.net/data-apis/similarweb.md#similarweb-similar-sites)

```python Python theme={null}
router.call_data_api("spyfu.seo.top_competitors", {'domain': 'example.com', 'countryCode': 'US', 'pageSize': 5, 'startingRow': 1})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.seo.top_competitors", params={"domain": "example.com", "countryCode": "US", "pageSize": 5, "startingRow": 1})
```

> [!NOTE]
>
> * Billed per row returned at \$0.20 per 1,000 rows.

### Related keywords

GET

`/keyword_api/v2/related/getRelatedKeywords`

`spyfu.keywords.related`

Keywords thematically related to a seed keyword, with volume, difficulty and click data.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>Seed keyword. Example `seo tools`</td></tr>

    <tr>
      <td>
        `includeTerms`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated terms that must appear in the keyword.
      </td>
    </tr>

    <tr>
      <td>
        `includeAnyTerm`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        With includeTerms: true matches any term, false (default) requires all.
      </td>
    </tr>

    <tr>
      <td>
        `excludeTerms`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated terms to leave out.
      </td>
    </tr>

    <tr>
      <td>
        `isQuestion`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only question keywords.
      </td>
    </tr>

    <tr>
      <td>
        `isTransactionalIntent`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Only transactional-intent keywords.
      </td>
    </tr>

    <tr>
      <td>
        `serpFirstResult`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only keywords where this domain ranks first organically.
      </td>
    </tr>

    <tr><td>`pageSize`</td><td>integer</td><td>query</td><td>Maximum rows returned. Default 5. Example `5`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>

    <tr>
      <td>
        `sortBy`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Column to sort by; includes SearchVolume, LiveSearchVolume, RankingDifficulty and TotalMonthlyClicks.
      </td>
    </tr>

    <tr><td>`sortOrder`</td><td>string</td><td>query</td><td>Sort direction; default Descending. One of `Ascending`, `Descending`</td></tr>
    <tr><td>`startingRow`</td><td>integer</td><td>query</td><td>Row number to start from, for paging. Default 1. Example `1`</td></tr>

    <tr>
      <td>
        `adultFilter`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Exclude adult keywords. Default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/relatedkeywordsv2api_getrelatedkeywords_get) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-matching-terms), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-labs-keyword-ideas), [Google Ads](https://docs.webrouter.net/data-apis/google-ads.md#google-ads-keywords-ideas), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-related-keywords), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-keywords-related), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-keyword-related)

```python Python theme={null}
router.call_data_api("spyfu.keywords.related", {'query': 'seo tools', 'pageSize': 5, 'countryCode': 'US', 'startingRow': 1})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.keywords.related", params={"query": "seo tools", "pageSize": 5, "countryCode": "US", "startingRow": 1})
```

> [!NOTE]
>
> * Billed per row returned at \$2.50 per 1,000 rows.

### Keyword information in bulk

GET

`/keyword_api/v2/related/getKeywordInformation`

`spyfu.keywords.info`

Search volume, difficulty, cost and click metrics for a list of exact keywords.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`keywords` required</td><td>string</td><td>query</td><td>Comma-separated exact keywords. Example `seo,seo tools`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>

    <tr>
      <td>
        `isQuestion`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Filter on question keywords.
      </td>
    </tr>

    <tr>
      <td>
        `isTransactionalIntent`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Filter on transactional intent.
      </td>
    </tr>

    <tr>
      <td>
        `adultFilter`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Exclude adult keywords. Default true.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/relatedkeywordsv2api_getkeywordsbybulksearch_get) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-keywords-overview), [Bing Webmaster Tools](https://docs.webrouter.net/data-apis/bing-webmaster.md#bing-webmaster-keywords-stats), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-keywords-google-ads-volume), [Google Ads](https://docs.webrouter.net/data-apis/google-ads.md#google-ads-keywords-historical-metrics), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-keyword-data), [Semrush](https://docs.webrouter.net/data-apis/semrush.md#semrush-keyword-overview-all-databases)

```python Python theme={null}
router.call_data_api("spyfu.keywords.info", {'keywords': 'seo,seo tools', 'countryCode': 'US'})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.keywords.info", params={"keywords": "seo,seo tools", "countryCode": "US"})
```

> [!NOTE]
>
> * Billed per row returned at \$0.20 per 1,000 rows. A POST version exists for larger lists.

### Highest-traffic pages

GET

`/serp_api/v2/seo/getMostTrafficTopPages`

`spyfu.seo.top_pages`

A domain's pages with the most estimated organic traffic.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>Domain, URL, subdomain or path to analyze. Example `example.com`</td></tr>

    <tr>
      <td>
        `keywordFilter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only pages ranking for keywords containing this term.
      </td>
    </tr>

    <tr><td>`pageSize`</td><td>integer</td><td>query</td><td>Maximum rows returned. Default 5. Example `5`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>

    <tr>
      <td>
        `sortBy`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Column to sort by; default SeoClicks.
      </td>
    </tr>

    <tr><td>`sortOrder`</td><td>string</td><td>query</td><td>Sort direction; default Descending. One of `Ascending`, `Descending`</td></tr>
    <tr><td>`startingRow`</td><td>integer</td><td>query</td><td>Row number to start from, for paging. Default 1. Example `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/toppagesapi_getmosttraffictoppages_get) · Same job: [Ahrefs](https://docs.webrouter.net/data-apis/ahrefs.md#ahrefs-top-pages), [Majestic](https://docs.webrouter.net/data-apis/majestic.md#majestic-domain-top-pages), [Mangools](https://docs.webrouter.net/data-apis/mangools.md#mangools-site-top-content), [Moz](https://docs.webrouter.net/data-apis/moz.md#moz-links-top-pages)

```python Python theme={null}
router.call_data_api("spyfu.seo.top_pages", {'query': 'example.com', 'pageSize': 5, 'countryCode': 'US', 'startingRow': 1})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.seo.top_pages", params={"query": "example.com", "pageSize": 5, "countryCode": "US", "startingRow": 1})
```

> [!NOTE]
>
> * Billed per row returned at \$5.00 per 1,000 rows.

### SERP analysis for a keyword

GET

`/serp_api/v2/seo/getSerpAnalysisKeywords`

`spyfu.seo.serp_analysis`

Domains ranking in positions 1-100 for a keyword, updated monthly.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`keyword` required</td><td>string</td><td>query</td><td>The keyword to analyze. Example `seo tools`</td></tr>
    <tr><td>`pageSize`</td><td>integer</td><td>query</td><td>Ranking results to return; default and maximum 105. Example `105`</td></tr>
    <tr><td>`countryCode`</td><td>string</td><td>query</td><td>Two-letter country market (the matching Google domain is queried); default US. One of `AR`, `AT`, `AU`, `BE`, `BR`, `CA`, `CH`, `DE`, `DK`, `ES`, `FR`, `IE`, `IN`, `IT`, `JP`, `MX`, `NL`, `NO`, `NZ`, `PL`, `PT`, `SE`, `SG`, `TR`, `UA`, `UK`, `US`, `ZA` Example `US`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developer.spyfu.com/reference/organicserpapi_getserpanalysiskeywords_get) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-google-search), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-serp), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-serp-google-organic), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-search), [Massive (Web Render)](https://docs.webrouter.net/data-apis/joinmassive.md#joinmassive-search)

```python Python theme={null}
router.call_data_api("spyfu.seo.serp_analysis", {'keyword': 'seo tools', 'pageSize': 105, 'countryCode': 'US'})
```

```text MCP theme={null}
call_data_api(endpoint="spyfu.seo.serp_analysis", params={"keyword": "seo tools", "pageSize": 105, "countryCode": "US"})
```

> [!NOTE]
>
> * Billed per row returned at \$0.50 per 1,000 rows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.