GET api/Search?contenttype={contenttype}&phone={phone}&country={country} Authentication required

The following method allows you to search for matching records in our databases based on a phone number. Please note that you can choose between json or xml output. Note also that you can submit phone numbers in their local or international formats.

Authentication

Every request must be authenticated. There are two login methods:

MethodHowStatus
1. API key

Authorization: Bearer header

Recommended

2. Username and password

username and password parameters in the URL

Deprecated: closed after 31 January 2027

Method 1: API key (recommended)

Send your personal API key in the Authorization header, with the Bearer scheme:

Authorization: Bearer cid_YourApiKey
  • The key is accepted only in the header. A key sent in the URL is refused.
  • Keep your key secret, like a password. We do not keep a copy and cannot send it again: if it is lost or exposed, contact us and we will replace it.
  • Always call the API over HTTPS.
  • If you do not have an API key yet, contact us to get one.

Example:

GET https://callerid.infobel.com/api/Search?contenttype=json&phone=3225551234&country=Belgium
Authorization: Bearer cid_YourApiKey
curl -H "Authorization: Bearer cid_YourApiKey" "https://callerid.infobel.com/api/Search?contenttype=json&phone=3225551234&country=Belgium"

Method 2: username and password (deprecated)

This method is deprecated and will be closed: the last day it works is 31 January 2027. From 1 February 2027, requests with a username and password are refused. Please switch to the API key before that date.

Send your username and password as URL parameters:

NameDescriptionTypeAdditional information
username

Your username

string

Deprecated, until 31 January 2027

password

Your password

string

Deprecated, until 31 January 2027

Example:

GET https://callerid.infobel.com/api/Search?contenttype=json&phone=3225551234&country=Belgium&username=YourUserName&password=YourPassword

If a request contains an API key, the username and password are ignored.

Error responses

StatusMeaning
403 Forbidden

The API key (or username/password) was not accepted. Check that the key was copied completely, including the cid_ prefix.

429 Too Many Requests

Too many failed logins from your IP address. Wait 15 minutes and try again.

Request

URI Parameters

The search parameters, the same for both login methods (see Authentication above for the login).

NameDescriptionTypeAdditional information
contenttype

Either text/json or text/xml depending of the output format you expect

string

Required

phone

The phone number to lookout. Can be provided in its local or international format. If it is in its international format (meaning with the starting + url encoded to %2B ; and the international phone code), the country is not required

string

Required

country

If the phone is provided in its local format, you need to specify the country

string

Optional

Response

If the provided phone number finds one or several matches in our databases, returns additional information about the best match

Output : object (See Model)

Output Sample

{
  "Input": {
    "ContentType": "sample string 1",
    "Country": "sample string 2",
    "Phone": "sample string 3",
    "UserName": "sample string 4",
    "Ip": "sample string 5"
  },
  "Result": {
    "FullName": "sample string 1",
    "Phone": "sample string 2",
    "FullStreet": "sample string 3",
    "City": "sample string 4",
    "PostCode": "sample string 5",
    "Country": "sample string 6",
    "Count": "sample string 7",
    "CountryCode": "sample string 8",
    "Source": 9,
    "IsBusiness": true
  },
  "Message": null
}