HTTP Post formatting - JSON / Form Encoded

v1 / v2

HTTP Post formatting - JSON / Form Encoded

Overview

We can accept your request using either the JSON or Form Encoding Content Types.

The preferred request format when calling the hlrlookup.com API is JSON. Optionally instead you can use form encoded, however only 1 telephone number is supported per form request.

Use the following examples to make your requests using either JSON or Form Encoding.

JSON

HTTP Headers:

You have the option of including your own ReferenceID and AccountID for each request.

If included this information will be stored in our Database.

We can refer back to your requests using specific ID's if required. Unfortunately this information is currently not available on your dashboard stats but we are working on it.

Example requests:

Single telephone number lookup without additional parameters:

Single telephone number lookup with additional parameters:

Multiple number lookups at the same time, with some optional parameters:

Form Encoded

HTTP Headers:

Example requests:

Single telephone number lookup without additional parameters:

Single telephone number lookup with additional parameters:

Note - Multiple number lookups at the same time are not supported with form-encoded requests.