Bulk API Documentation

Bulk Verification CSV API Uploading

IPQualityScore supports bulk CSV file uploading via multiple methods: HTTP POST file upload, URL file retrieval and JSON. All of these upload methods work via the same URL, but may require additional parameters. Each upload method is covered below in more detail. Allowed file types are: "proxy", "email", "phone", or "url". Example code is provided on the side menu for different methods of uploading data.

This API will return responses that will contain your API key. Treat these responses like passwords and do not share them with third parties.

JSON:

Note: You may optionally remove the key and type of file from the URL and pass them in as POST/GET/JSON parameters instead. In which case the URL would look like this:

JSON:
HTTP Post / File Upload

To upload via POST / form file upload, please include the headers below with your request. If you don't include these headers then it's likely your file upload will fail. Include one file in the body of your request with any key. The request must be form-data encoded.

Headers
Field Value
Content-Type multipart/form-data
Content-Length «calculated when request is sent»
GET / POST / URL Parameters
Field Value
key Your API Key
type The type of CSV ("proxy", "email", "url", or "phone")
file_name An optional name for this file. A name will automatically be generated if none is supplied.

An example success/failure response is included below.

Upload Via URL

You can upload your file by providing us with the file's download URL via either GET or POST parameters. Your URL MUST lead directly to the file, MUST include the protocol (http/https/ftp) and MUST include any authentication methods in the URL.

GET / POST Parameters
Field Value
key Your API Key
type The type of CSV (proxy, email, url or phone)
input OR url The full link to download the file you wish to process.
file_name An optional name for this file. A name will automatically be generated if none is supplied.

An example success/failure response is included below.

Upload Via JSON

You can upload your data for processing via JSON. Below is an example request and example JSON structure.

Headers
Field Value
Content-Type application/json
JSON Body / Data

An example success/failure response is included below. * file_name is optional.

Example Success Response

This is an example of a successful API response after uploading a file.

Once your file has uploaded you can check the status URL provided to get the current status of the CSV. The remainder of the fields are documented on the Bulk CSV API Processing Status Documentation.

Example Failure Response

If your CSV fails to upload for some reason then you should receive an error message detailing why. For further troubleshooting steps see the troubleshooting documentation page.

Example Code