---
agentTools:
  projectIndex: https://spyse-dev.readme.io/llms.txt
---

# IP bulk search download

Initiates the creation of the file with data about IPs that matched the search query. When the file is created, it will be available for download. On the successful call, returns the unique identifier that represents the file creation process. The file creation is an asynchronous process, because the amount of data that should be exported to the file and the export duration is hard to predict. The call to this endpoint just initiates the file creation. To check the file status and get the download link, send a GET request to the `/v4/data/account/downloads/` API endpoint with the identifier returned by this endpoint. The number of rows available for download is determined by the subscription plan.

# OpenAPI definition

````json
{
  "openapi": "3.0.0",
  "info": {
    "description": "The purpose of this application is to provide authorized access to the data of the spyse project.",
    "title": "Data API",
    "version": "4.0.0"
  },
  "paths": {
    "/bulk-search/ip/download": {
      "post": {
        "description": "Initiates the creation of the file with data about IPs that matched the search query. When the file is created, it will be available for download. On the successful call, returns the unique identifier that represents the file creation process. The file creation is an asynchronous process, because the amount of data that should be exported to the file and the export duration is hard to predict. The call to this endpoint just initiates the file creation. To check the file status and get the download link, send a GET request to the `/v4/data/account/downloads/` API endpoint with the identifier returned by this endpoint. The number of rows available for download is determined by the subscription plan.",
        "tags": [
          "Bulk Search"
        ],
        "summary": "IP bulk search download",
        "operationId": "bulk_search_ip_download",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchBulkIPDownloadRequest"
              }
            }
          },
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "description": "Operation successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.spyse.com/v4/data/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "DownloadResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/DownloadResponseData"
          }
        }
      },
      "DownloadResponseData": {
        "type": "object",
        "properties": {
          "download_id": {
            "description": "Unique identifier that represents the file. Use this identifier to check the file creation status and get the download link at the `/v4/data/account/downloads/` API endpoint.",
            "type": "integer",
            "format": "int64",
            "x-go-name": "DownloadID"
          }
        }
      },
      "Error": {
        "description": "Error is represents response error model",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "x-go-name": "Code"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldError"
            },
            "x-go-name": "Errors"
          },
          "message": {
            "type": "string",
            "x-go-name": "Message"
          }
        }
      },
      "ErrorResponse": {
        "description": "ErrorResponse is returned on request handling error",
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        }
      },
      "FieldError": {
        "description": "FieldError is represents response fields error model",
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "x-go-name": "Code"
          },
          "location": {
            "type": "string",
            "x-go-name": "Location"
          },
          "message": {
            "type": "string",
            "x-go-name": "Message"
          }
        }
      },
      "SearchBulkIPDownloadRequest": {
        "type": "object",
        "required": [
          "column_list",
          "file_format",
          "ip_list"
        ],
        "properties": {
          "column_list": {
            "description": "List of columns to download. Supported values: ```ip, ptr_record_value, spyse_score, country, as_number, as_organization, isp, osh, city, open_ports_count, open_ports, abuses_score```",
            "type": "array",
            "minLength": 1,
            "items": {
              "type": "string"
            },
            "x-go-name": "ColumnList",
            "example": [
              "ip",
              "ptr_record_value",
              "spyse_score",
              "country",
              "city",
              "as_number",
              "as_organization",
              "isp",
              "osh",
              "open_ports_count",
              "open_ports",
              "abuses_score"
            ]
          },
          "description": {
            "description": "An optional field with a short file description. Max length: 254 characters.",
            "type": "string",
            "maxLength": 254,
            "x-go-name": "Description",
            "example": "description"
          },
          "file_format": {
            "description": "The file format to use for the file creation. Supported values: ```ndjson```, ```csv```.",
            "type": "string",
            "enum": [
              "csv",
              "ndjson"
            ],
            "x-go-name": "FileFormat"
          },
          "ip_list": {
            "description": "The list of valid IPv4 addresses to search for.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "x-go-name": "IPList",
            "example": [
              "8.8.8.8",
              "8.8.8.7"
            ]
          },
          "rows_count": {
            "description": "The number of rows the user wants to receive in the current download request.",
            "type": "integer",
            "format": "int64",
            "minimum": 1,
            "x-go-name": "RowsCount"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 96,
      "1": 116,
      "2": 57,
      "3": 140,
      "4": 54,
      "5": 155,
      "6": 214,
      "7": 2,
      "8": 125,
      "9": 74,
      "10": 155,
      "11": 87
    }
  }
}
````