# SpyFu

> Research SEO keywords, paid search, competitors, ad history and domain performance in SpyFu.

App · 13 actions. Web page: https://docs.lodol.com/docs/integrations/spyfu

## Actions

### Get latest domain stats

Read the latest SEO and PPC metrics for a domain.

**Inputs**

- Domain (`domain`, text, required): Domain to retrieve latest statistics for.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google version to query against (google.de for Germany, etc). Google.com (US) is the default. See full list of supported Countries. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.

**Outputs**

- `data` (object): Response wrapper containing comprehensive domain performance statistics across multiple time periods with detailed SEO and PPC metrics.

**Example output**

```json
{
  "data": {
    "domain": "example",
    "resultCount": 1,
    "results": []
  }
}
```

### List active domain dates

Find dates for which SpyFu has domain statistics.

**Inputs**

- Domain (`domain`, text, required): Domain to retrieve data coverage dates for.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google version to query against (google.de for Germany, etc). Google.com (US) is the default. See full list of supported Countries. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.

**Outputs**

- `data` (object): Response wrapper containing a list of available search dates for which domain statistics data is available, used for historical analysis and date-specific queries.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": []
  }
}
```

### List competitors

Find a domain’s combined SEO and PPC competitors.

**Inputs**

- Domain (`domain`, text, required): Domain to get competitors for
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `Domain`, `CommonTerms`, `Rank`.
- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 550.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 550.

**Outputs**

- `data` (object): Response wrapper containing comprehensive competitor analysis data across both paid and organic search channels with pagination metadata.

**Example output**

```json
{
  "data": {
    "combinedCompetitors": [],
    "ppcCompetitors": [],
    "resultCount": 1,
    "seoCompetitors": [],
    "totalMatchingResults": 1
  }
}
```

### List domain ad history

Read historical ad variations for a domain.

**Inputs**

- Domain (`domain`, text, required): Advertiser's root domain
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Sort order for grouped domain ad history results. One of: `Best`, `Worst`, `KeywordAsc`, `KeywordDesc`, `SearchDateId`.
- Page size (`page_size`, number): Number of ad history records to return per page. From 1 to 10000.
- Starting row (`starting_row`, number): Starting row number for pagination. From 1 to 2147483647.

**Outputs**

- `data` (object): Response wrapper containing domain ad history results with pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": []
  }
}
```

### List historical domain stats

Read SEO and PPC metrics over time.

**Inputs**

- Domain (`domain`, text, required): Domain to retrieve comprehensive statistics for.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.

**Outputs**

- `data` (object): Response wrapper containing comprehensive domain performance statistics across multiple time periods with detailed SEO and PPC metrics.

**Example output**

```json
{
  "data": {
    "domain": "example",
    "resultCount": 1,
    "results": []
  }
}
```

### List keyword ad history

Read historical ads shown for a keyword.

**Inputs**

- Term (`term`, text, required): Keyword to retrieve advertising history for.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Page size (`page_size`, number): Number of ad history records to return per page. From 1 to 10000.
- Starting row (`starting_row`, number): Starting row number for pagination. From 1 to 2147483647.

**Outputs**

- `data` (object): Response wrapper containing term ad history results with pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": []
  }
}
```

### List keywords gaining clicks

Find organic keywords generating more clicks.

**Inputs**

- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 10000.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `SearchVolume`, `KeywordDifficulty`, `Rank`, `RankChange`, `SeoClicks`, `SeoClicksChange`, `PercentMobileSearches`, `PercentDesktopSearches`, `PercentNotClicked`, `PercentPaidClicks`, and 10 more.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 10000.

**Outputs**

- `data` (object): Response wrapper containing organic SERP keyword results with comprehensive SEO metrics and pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": [],
    "totalMatchingResults": 1
  }
}
```

### List keywords gaining ranks

Find organic keywords that moved up in rank.

**Inputs**

- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 10000.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `SearchVolume`, `KeywordDifficulty`, `Rank`, `RankChange`, `SeoClicks`, `SeoClicksChange`, `PercentMobileSearches`, `PercentDesktopSearches`, `PercentNotClicked`, `PercentPaidClicks`, and 10 more.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 10000.

**Outputs**

- `data` (object): Response wrapper containing organic SERP keyword results with comprehensive SEO metrics and pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": [],
    "totalMatchingResults": 1
  }
}
```

### List lost keyword rankings

Find keywords that recently lost an organic ranking.

**Inputs**

- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 10000.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `SearchVolume`, `KeywordDifficulty`, `Rank`, `RankChange`, `SeoClicks`, `SeoClicksChange`, `PercentMobileSearches`, `PercentDesktopSearches`, `PercentNotClicked`, `PercentPaidClicks`, and 10 more.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 10000.

**Outputs**

- `data` (object): Response wrapper containing organic SERP keyword results with comprehensive SEO metrics and pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": [],
    "totalMatchingResults": 1
  }
}
```

### List new keyword rankings

Find keywords that recently gained an organic ranking.

**Inputs**

- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 10000.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `SearchVolume`, `KeywordDifficulty`, `Rank`, `RankChange`, `SeoClicks`, `SeoClicksChange`, `PercentMobileSearches`, `PercentDesktopSearches`, `PercentNotClicked`, `PercentPaidClicks`, and 10 more.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 10000.

**Outputs**

- `data` (object): Response wrapper containing organic SERP keyword results with comprehensive SEO metrics and pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": [],
    "totalMatchingResults": 1
  }
}
```

### List PPC competitors

Find competitors that share paid keywords.

**Inputs**

- Domain (`domain`, text, required): Domain to analyze for paid search competitors.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `Domain`, `CommonTerms`, `Rank`.
- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 550.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 550.

**Outputs**

- `data` (object): Response wrapper containing competitor analysis data for a specific search channel (SEO or PPC) with pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": [],
    "totalMatchingResults": 1
  }
}
```

### List SEO competitors

Find competitors that share organic keywords.

**Inputs**

- Domain (`domain`, text, required): Domain to analyze for organic search competitors.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `Domain`, `CommonTerms`, `Rank`.
- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 550.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 550.

**Outputs**

- `data` (object): Response wrapper containing competitor analysis data for a specific search channel (SEO or PPC) with pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": [],
    "totalMatchingResults": 1
  }
}
```

### List SEO keywords

Read organic keywords a domain ranks for.

**Inputs**

- Page size (`page_size`, number): The maximum number of rows returned. From 1 to 10000.
- Country code (`country_code`, text): Country market to search. Specifically, this maps to the Google domain version to query against (e.g., google.com for US, google.de for Germany, etc.). <a href='https://developer.spyfu.com/reference/adhistoryapi_getdomainadhistory_get#/'>All Countries</a>. One of: `AR` (Argentina), `AT` (Austria), `AU` (Australia), `BE` (Belgium), `BR` (Brazil), `CA` (Canada), `CH` (Switzerland), `DE` (Germany), `DK` (Denmark), `ES` (Spain), and 18 more.
- Sort by (`sort_by`, text): Column to sort by. One of: `SearchVolume`, `KeywordDifficulty`, `Rank`, `RankChange`, `SeoClicks`, `SeoClicksChange`, `PercentMobileSearches`, `PercentDesktopSearches`, `PercentNotClicked`, `PercentPaidClicks`, and 10 more.
- Starting row (`starting_row`, number): Row number to start the results with. From 1 to 10000.

**Outputs**

- `data` (object): Response wrapper containing organic SERP keyword results with comprehensive SEO metrics and pagination metadata.

**Example output**

```json
{
  "data": {
    "resultCount": 1,
    "results": [],
    "totalMatchingResults": 1
  }
}
```
