APIVoid logo

Migrate from v1 to v2

If you are still using the APIVoid v1 endpoints, this guide covers everything needed to migrate to the v2 API. The v2 API introduces improved authentication, a cleaner JSON structure, and a more standardized request format. The complete v2 reference starts at the documentation home.

The v1 API was deprecated more than a year ago: the v1 endpoints still work today, but they may be permanently removed at any time from November 1, 2026. Migrate as soon as possible to avoid service interruption. If you have any questions, or need help migrating, don't hesitate to contact us.

1. HTTP method and authentication

In v1, requests used HTTP GET, with the API key passed in the query string via key=:

curl · v1
curl "https://endpoint.apivoid.com/iprep/v1/pay-as-you-go/?key=YOUR_API_KEY_HERE&ip=122.226.181.165"

In v2, requests use HTTP POST, the API key is sent in the X-API-Key header, and parameters go in a JSON body:

curl · v2
curl -X POST "https://api.apivoid.com/v2/ip-reputation" \
     -H "Content-Type: application/json" \
     -H "X-API-Key: YOUR_API_KEY_HERE" \
     -d '{"ip": "122.226.181.165"}'

What changed:

2. JSON response structure

Important breaking change: the root data object and the data.report wrapper were removed.

The v1 response structure:

json · v1 response
{
  "data": {
    "report": {
      "ip": "80.82.77.139",
      "blacklists": {
        ...
      }
    }
  }
}

To access the IP field in v1: response.data.report.ip

The v2 response structure:

json · v2 response
{
  "ip": "80.82.77.139",
  "version": "IPv4",
  "blacklists": {
    ...
  }
}

To access the IP field in v2: response.ip

What changed:

3. Migration checklist