# Botify

> Read Botify's crawls of your websites, the URLs they found and their SEO data, run BQL queries, start crawls and exports, and follow new and finished analyses and exports.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/botify

## Actions

### Create export job

Start an export of a BQL query's rows, up to a million, to a file to download. Get job says when it's DONE and where the file is.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Collections (`collections`, list, required): The data sources to query, such as crawl.20261120 or search_console. List collections lists the project's.
- Dimensions (`dimensions`, list): The fields to group by, such as url or crawl.20261120.http_code.
- Metrics (`metrics`, list): The fields to count or sum, such as crawl.20261120.count_urls_crawl.
- Filter (`filters`, object): Only rows matching this BQL filter, such as {"field": "crawl.20261120.http_code", "predicate": "eq", "value": 200}.
- From (`period_start`, date): The first day of the period, for dated sources such as Search Console.
- To (`period_end`, date): The last day of the period, for dated sources such as Search Console.
- Rows (`export_size`, number, required): How many rows to export. From 1 to 1000000.
- Format (`formatter`, text): The file's format. Leave empty for CSV. One of: `csv`, `json`, `xml`.
- Compression (`compression`, text): How the file is compressed. Leave empty for GZIP. One of: `gzip` (GZIP (.gz)), `zip` (ZIP (.zip)).

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "date_created": "example",
    "job_id": "example",
    "job_status": "example",
    "job_type": "example",
    "job_url": "example",
    "metadata": {},
    "payload": {},
    "results": {},
    "user": "example"
  }
}
```

### Export URLs to CSV

Start a CSV export of an analysis's URLs that match a filter, with the fields you choose. Get URL export says when its file is ready.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Fields (`fields`, list, required): The fields to export for each URL, by their Botify names, up to 10. List URL fields lists them.
- Filter (`filters`, object): Only URLs matching this Botify filter, such as {"field": "http_code", "predicate": "eq", "value": 404}.
- URLs (`area`, text): Which URLs to look at. Leave empty for the URLs in this analysis. One of: `current` (URLs in this analysis), `disappeared` (URLs gone since the previous analysis), `new` (URLs new since the previous analysis), `search_engines_orphans` (Orphan URLs search engines crawl), `gsc_keywords` (Search Console keywords), `gsc_keywords_by_country` (Search Console keywords by country).
- Most URLs (`size`, number): The most URLs to export, up to 100,000. From 1 to 100000.
- Compression (`compression`, text): How the file is compressed. Leave empty for GZIP. One of: `gzip` (GZIP (.gz)), `zip` (ZIP (.zip)).
- Compare with (`previous_analysis`, text): An earlier analysis to compare with, for new and gone URLs. Leave empty for the one before.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "area": "example",
    "date_created": "example",
    "job_id": "example",
    "job_status": "example",
    "job_url": "example",
    "nb_results": 1,
    "results": {},
    "size": 1,
    "user": "example"
  }
}
```

### Get analysis

Get an analysis (crawl): its status, how many URLs it crawled, its settings and dates.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Compare with (`previous_analysis`, text): An earlier analysis to compare with, for new and gone URLs. Leave empty for the one before.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "crawl_launch_type": "example",
    "date_crawl_done": "example",
    "date_created": "example",
    "date_finished": "example",
    "date_last_modified": "example",
    "date_launched": "example",
    "excluded_from_trends": true,
    "friendly_name": "example",
    "name": "example",
    "owner": "example",
    "pk": "example",
    "slug": "example",
    "status": "example",
    "to_be_deleted_at": "example",
    "url": "example",
    "urls_done": "example",
    "urls_in_queue": "example",
    "user": {
      "email": "example",
      "first_name": "example",
      "last_name": "example",
      "username": "example"
    }
  }
}
```

### Get crawl statistics

Get a crawl's progress: URLs found and crawled, by HTTP status, its depth, speed and time left.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "crawler_state": "example",
    "depth_current": 1,
    "last_upd_dt": "example",
    "pages_dones": 1,
    "pages_dones_2xx": 1,
    "pages_dones_3xx": 1,
    "pages_dones_4xx": 1,
    "pages_dones_5xx": 1,
    "pages_dones_networkerror": 1,
    "pages_dones_xxx": 1,
    "pages_known": 1,
    "pages_max": 1,
    "pages_per_sec": 1,
    "remaining_seconds": 1,
    "speed_max": 1
  }
}
```

### Get job

Get an export job's status (CREATED, PENDING, PROCESSING, DONE or FAILED) and, once done, its results and download link.

**Inputs**

- Job ID (`job_id`, text, required): The job's ID, which Create export job returns.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "date_created": "example",
    "job_id": "example",
    "job_status": "example",
    "job_type": "example",
    "job_url": "example",
    "metadata": {},
    "payload": {},
    "results": {},
    "user": "example"
  }
}
```

### Get saved filter

Get a saved, account or recommended filter's name, ID and filter, to use in Search URLs or a query.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Filter (`filter_id`, text, required): The saved filter.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "created_date": "example",
    "description": "example",
    "filters": {},
    "identifier": "example",
    "name": "example",
    "project_name": "example",
    "type": "example"
  }
}
```

### Get Search Console clicks and impressions

Get the clicks and impressions per day from Google Search Console for an analysis's period.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "stats": [
      {
        "data": [
          {}
        ],
        "type": "example",
        "url": "example"
      }
    ]
  }
}
```

### Get sitemaps report

Get an analysis's sitemaps report: the sitemaps and indexes found, their valid and invalid URLs, and errors.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "errors": [
      {
        "file_type": "example",
        "invalid_urls": 1,
        "last_modified": "example",
        "sitemap_indexes": [
          "example"
        ],
        "url": "example",
        "valid_urls": 1
      }
    ],
    "sitemap_indexes": [
      {
        "file_type": "example",
        "invalid_urls": 1,
        "last_modified": "example",
        "sitemap_indexes": [
          "example"
        ],
        "url": "example",
        "valid_urls": 1
      }
    ],
    "sitemap_only": {
      "in_configuration": 1,
      "out_of_configuration": 1
    },
    "sitemaps": [
      {
        "file_type": "example",
        "invalid_urls": 1,
        "last_modified": "example",
        "sitemap_indexes": [
          "example"
        ],
        "url": "example",
        "valid_urls": 1
      }
    ]
  }
}
```

### Get URL details

Get what an analysis found for one URL: its HTTP code, depth, links, title and other fields.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- URL (`url`, text, required): The full URL, such as https://www.example.com/page.
- Fields (`fields`, list): Only these fields, by their Botify names. Leave empty for all.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "url": "example"
  }
}
```

### Get URL export

Get a CSV export's status and, once it's DONE, the link to download its file.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Export ID (`export_id`, text, required): The export's job ID, which Export URLs to CSV returns.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "area": "example",
    "date_created": "example",
    "job_id": "example",
    "job_status": "example",
    "job_url": "example",
    "nb_results": 1,
    "results": {},
    "size": 1,
    "user": "example"
  }
}
```

### Launch analysis

Create and start a new analysis (crawl) of a project with its saved crawl settings. It counts against the plan's crawl allowance.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {}
}
```

### List analyses

List a project's analyses (crawls), newest first, with each one's status and dates.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Only finished (`only_finished`, true/false): Only analyses that finished successfully. Leave empty for yes.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "crawl_launch_type": "example",
        "date_crawl_done": "example",
        "date_created": "example",
        "date_finished": "example",
        "date_last_modified": "example",
        "date_launched": "example",
        "excluded_from_trends": true,
        "friendly_name": "example",
        "name": "example",
        "owner": "example",
        "pk": "example",
        "slug": "example",
        "status": "example",
        "to_be_deleted_at": "example",
        "url": "example",
        "urls_done": "example",
        "urls_in_queue": "example",
        "user": {
          "email": "example",
          "first_name": "example",
          "last_name": "example",
          "username": "example"
        }
      }
    ],
    "size": 1
  }
}
```

### List collections

List a project's collections: the data sources, such as each crawl and Search Console, a BQL query can read.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.

**Outputs**

- `data` (list): The response from Botify.

**Example output**

```json
{
  "data": [
    {
      "date": "example",
      "date_end": "example",
      "date_start": "example",
      "generic_name": "example",
      "id": "example",
      "name": "example",
      "timestamped": true
    }
  ]
}
```

### List jobs

List your export jobs and their status, optionally for one project or analysis.

**Inputs**

- Project (`project`, text): Only jobs for this project.
- Analysis (`analysis`, text): Only jobs for this analysis.
- Job type (`job_type`, text): Only jobs of this type, such as export.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "date_created": "example",
        "job_id": "example",
        "job_status": "example",
        "job_type": "example",
        "job_url": "example",
        "metadata": {},
        "payload": {},
        "results": {},
        "user": "example"
      }
    ],
    "size": 1
  }
}
```

### List latest crawled URLs

List the 1,000 URLs an analysis crawled most recently, or only those with HTTP errors.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Show (`list_type`, text, required): Every crawled URL, or only those with HTTP errors. One of: `crawled` (Every crawled URL), `errors` (Only URLs with HTTP errors).

**Outputs**

- `data` (list): The response from Botify.

**Example output**

```json
{
  "data": [
    {
      "content_type": "example",
      "date": "example",
      "delay_first_byte": 1,
      "delay_last_byte": 1,
      "gzip": true,
      "http": 1,
      "length": 1,
      "redirects_to": "example",
      "url": "example"
    }
  ]
}
```

### List orphan URLs

List URLs that got visits from search or social, by your analytics, but that the crawl didn't find linked from your site.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Visits from (`medium`, text, required): Visits from organic search or from social networks. One of: `organic` (Organic search), `social` (Social networks).
- Source (`source`, text, required): The search engine or social network the visits came from. One of: `all` (Every source), `aol`, `ask`, `baidu`, `bing`, `facebook`, `google`, `google+`, `linkedin`, `naver`, and 6 more.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "url": "example",
        "visits": 1
      }
    ],
    "size": 1
  }
}
```

### List projects

List the Botify projects (websites) under the connected account's username.

**Inputs**

- Name (`name`, text): Only projects with this name.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "date_created": "example",
        "has_crawl": true,
        "has_keywords": "example",
        "has_logs": true,
        "name": "example",
        "organization": {
          "email": "example",
          "is_organization": "example",
          "name": "example",
          "owner": {
            "email": "example",
            "first_name": "example",
            "last_name": "example",
            "username": "example"
          },
          "slug": "example"
        },
        "pk": "example",
        "slug": "example",
        "url": "example",
        "webproperty": {
          "domain": "example",
          "name": "example",
          "public_id": "example"
        }
      }
    ],
    "size": 1
  }
}
```

### List saved filters

List a project's saved filters, with each one's name, ID and filter.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Name contains (`search`, text): Only filters whose name contains this.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "created_date": "example",
        "description": "example",
        "filters": {},
        "identifier": "example",
        "name": "example",
        "project_name": "example",
        "type": "example"
      }
    ],
    "size": 1
  }
}
```

### List segments

List the segments (groups of pages, such as product or category pages) an analysis was split into.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "segments": {}
      }
    ],
    "size": 1
  }
}
```

### List URL exports

List an analysis's CSV exports and the status of each.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "area": "example",
        "date_created": "example",
        "job_id": "example",
        "job_status": "example",
        "job_url": "example",
        "nb_results": 1,
        "results": {},
        "size": 1,
        "user": "example"
      }
    ],
    "size": 1
  }
}
```

### List URL fields

List the fields an analysis has for each URL, with their Botify names and types, to use in Search URLs and exports.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- URLs (`area`, text): Which URLs to look at. Leave empty for the URLs in this analysis. One of: `current` (URLs in this analysis), `disappeared` (URLs gone since the previous analysis), `new` (URLs new since the previous analysis), `search_engines_orphans` (Orphan URLs search engines crawl), `gsc_keywords` (Search Console keywords), `gsc_keywords_by_country` (Search Console keywords by country).

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "fields": [
      {
        "id": "example",
        "multiple": true,
        "name": "example",
        "permissions": [
          "example"
        ],
        "subtype": "example",
        "type": "example"
      }
    ]
  }
}
```

### Pause analysis

Pause a running analysis (crawl).

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {}
}
```

### Resume analysis

Resume a paused analysis (crawl).

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {}
}
```

### Run BQL query

Query a project's SEO data (crawls, Search Console, analytics, logs) with Botify Query Language, up to 2,000 rows a page.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Collections (`collections`, list, required): The data sources to query, such as crawl.20261120 or search_console. List collections lists the project's.
- Dimensions (`dimensions`, list): The fields to group by, such as url or crawl.20261120.http_code.
- Metrics (`metrics`, list): The fields to count or sum, such as crawl.20261120.count_urls_crawl.
- Filter (`filters`, object): Only rows matching this BQL filter, such as {"field": "crawl.20261120.http_code", "predicate": "eq", "value": 200}.
- From (`period_start`, date): The first day of the period, for dated sources such as Search Console.
- To (`period_end`, date): The last day of the period, for dated sources such as Search Console.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many rows per page, up to 2,000. Leave empty for 500. From 1 to 2000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "dimensions": [
          {}
        ],
        "metrics": [
          {}
        ]
      }
    ],
    "size": 1
  }
}
```

### Search URLs

Find the URLs an analysis crawled that match a filter, with the fields you choose, such as HTTP code, depth or title.

**Inputs**

- Project (`project`, text, required): The Botify project (website) to use.
- Analysis (`analysis`, text, required): The analysis (crawl), such as 20261120. Its slug is the crawl's date.
- Fields (`fields`, list, required): The fields to return for each URL, by their Botify names, such as url, http_code or depth. List URL fields lists them.
- Filter (`filters`, object): Only URLs matching this Botify filter, such as {"field": "http_code", "predicate": "eq", "value": 404}.
- URLs (`area`, text): Which URLs to look at. Leave empty for the URLs in this analysis. One of: `current` (URLs in this analysis), `disappeared` (URLs gone since the previous analysis), `new` (URLs new since the previous analysis), `search_engines_orphans` (Orphan URLs search engines crawl), `gsc_keywords` (Search Console keywords), `gsc_keywords_by_country` (Search Console keywords by country).
- Compare with (`previous_analysis`, text): An earlier analysis to compare with, for new and gone URLs. Leave empty for the one before.
- Page (`page`, number): The page of results to read, starting at 1. Leave empty for the first. At least 1.
- Results per page (`size`, number): How many results per page. Leave empty for Botify's default. From 1 to 1000.

**Outputs**

- `data` (object): The response from Botify.

**Example output**

```json
{
  "data": {
    "count": 1,
    "next": "example",
    "page": 1,
    "previous": "example",
    "results": [
      {
        "url": "example"
      }
    ],
    "size": 1
  }
}
```
