IPQualityScore API
GET
Email Validation
{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")
require "http/client"
url = "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE');
echo $response->getBody();
setUrl('{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE
http GET {{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/json/email/:YOUR_API_KEY_HERE/:USER_EMAIL_HERE")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"associated_names": {
"names": [
"names",
"names"
],
"status": "Enterprise Plus or higher required."
},
"associated_phone_numbers": {
"phone_numbers": [
"phone_numbers",
"phone_numbers"
],
"status": "Enterprise Plus or higher required."
},
"catch_all": true,
"common": false,
"deliverability": "high.",
"disposable": false,
"dns_valid": true,
"domain_age": {
"human": "9 years ago",
"iso": "2013-09-10T14:18:53-04:00",
"timestamp": 1378837133
},
"domain_velocity": "none",
"first_name": "Success.",
"first_seen": {
"human": "9 years ago",
"iso": "2013-09-10T14:18:53-04:00",
"timestamp": 1378837133
},
"fraud_score": 1,
"frequent_complainer": false,
"generic": false,
"honeypot": false,
"leaked": false,
"message": "Success.",
"overall_score": 2,
"recent_abuse": false,
"request_id": "8cib1Ircsadw3gB",
"sanitized_email": "example@example.com",
"smtp_score": 5,
"spam_trap_score": "none.",
"success": true,
"suggested_domain": "N/A",
"suspect": false,
"timed_out": true,
"user_activity": "Enterprise L4+ required.",
"valid": true
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"message": "You have insufficient credits to make this query. Please contact IPQualityScore support if this error persists.",
"request_id": "4OTORR352FU0p",
"success": false
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"message": "You have insufficient credits to make this query. Please contact IPQualityScore support if this error persists.",
"request_id": "4OTORR352FU0p",
"success": false
}
GET
Malicious URL Scanner
{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE")
require "http/client"
url = "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/json/url/:YOUR_API_KEY_HERE/:URL_HERE HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/json/url/:YOUR_API_KEY_HERE/:URL_HERE',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE');
echo $response->getBody();
setUrl('{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/json/url/:YOUR_API_KEY_HERE/:URL_HERE")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/json/url/:YOUR_API_KEY_HERE/:URL_HERE') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE
http GET {{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/json/url/:YOUR_API_KEY_HERE/:URL_HERE")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"adult": false,
"category": "Search Engine",
"content_type": "text/html; charset=UTF-8",
"dns_valid": true,
"domain": "google.com",
"domain_age": {
"human": "3 months ago",
"iso": "2019-09-09T16:40:34-04:00",
"timestamp": 1568061634
},
"domain_rank": 1,
"ip_address": "172.217.7.206",
"malware": false,
"message": "Success.",
"page_size": 68553,
"parking": false,
"phishing": false,
"request_id": "4ZGSfWu9RDf3oH",
"risk_score": 0,
"server": "nginx",
"spamming": false,
"status_code": 200,
"success": true,
"suspicious": false,
"unsafe": true
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"message": "You have insufficient credits to make this query. Please contact IPQualityScore support if this error persists.",
"request_id": "4OTORR352FU0p",
"success": false
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"message": "You have insufficient credits to make this query. Please contact IPQualityScore support if this error persists.",
"request_id": "4OTORR352FU0p",
"success": false
}
GET
Phone Validation
{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE
Examples
REQUEST
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE");
CURLcode ret = curl_easy_perform(hnd);
(require '[clj-http.client :as client])
(client/get "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")
require "http/client"
url = "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE"
response = HTTP::Client.get url
puts response.body
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
var client = new RestClient("{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE");
var request = new RestRequest("", Method.Get);
var response = client.Execute(request);
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
GET /baseUrl/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE HTTP/1.1
Host: example.com
AsyncHttpClient client = new DefaultAsyncHttpClient();
client.prepare("GET", "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")
.execute()
.toCompletableFuture()
.thenAccept(System.out::println)
.join();
client.close();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")
.get()
.build();
Response response = client.newCall(request).execute();
HttpResponse response = Unirest.get("{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")
.asString();
const data = null;
const xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener('readystatechange', function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open('GET', '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE');
xhr.send(data);
import axios from 'axios';
const options = {
method: 'GET',
url: '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const url = '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const settings = {
async: true,
crossDomain: true,
url: '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE',
method: 'GET',
headers: {}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
val client = OkHttpClient()
val request = Request.Builder()
.url("{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")
.get()
.build()
val response = client.newCall(request).execute()
const http = require('https');
const options = {
method: 'GET',
hostname: 'example.com',
port: null,
path: '/baseUrl/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE',
headers: {}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on('data', function (chunk) {
chunks.push(chunk);
});
res.on('end', function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
const request = require('request');
const options = {
method: 'GET',
url: '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE'
};
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
const unirest = require('unirest');
const req = unirest('GET', '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE');
req.end(function (res) {
if (res.error) throw new Error(res.error);
console.log(res.body);
});
const axios = require('axios').default;
const options = {
method: 'GET',
url: '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE'
};
try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error);
}
const fetch = require('node-fetch');
const url = '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE';
const options = {method: 'GET'};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
#import
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSLog(@"%@", httpResponse);
}
}];
[dataTask resume];
open Cohttp_lwt_unix
open Cohttp
open Lwt
let uri = Uri.of_string "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE" in
Client.call `GET uri
>>= fun (res, body_stream) ->
(* Do stuff with the result *)
"{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
request('GET', '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE');
echo $response->getBody();
setUrl('{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE');
$request->setMethod(HTTP_METH_GET);
try {
$response = $request->send();
echo $response->getBody();
} catch (HttpException $ex) {
echo $ex;
}
setRequestUrl('{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE');
$request->setRequestMethod('GET');
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
$response = Invoke-WebRequest -Uri '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE' -Method GET
$response = Invoke-RestMethod -Uri '{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE' -Method GET
import http.client
conn = http.client.HTTPSConnection("example.com")
conn.request("GET", "/baseUrl/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import requests
url = "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE"
response = requests.get(url)
print(response.json())
library(httr)
url <- "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE"
response <- VERB("GET", url, content_type("application/octet-stream"))
content(response, "text")
require 'uri'
require 'net/http'
url = URI("{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body
require 'faraday'
conn = Faraday.new(
url: 'https://example.com',
)
response = conn.get('/baseUrl/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE') do |req|
end
puts response.status
puts response.body
use reqwest;
#[tokio::main]
pub async fn main() {
let url = "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE";
let client = reqwest::Client::new();
let response = client.get(url)
.send()
.await;
let results = response.unwrap()
.json::()
.await
.unwrap();
dbg!(results);
}
curl --request GET \
--url {{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE
http GET {{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE
wget --quiet \
--method GET \
--output-document \
- {{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE
import Foundation
let request = NSMutableURLRequest(url: NSURL(string: "{{baseUrl}}/json/phone/:YOUR_API_KEY_HERE/:USER_PHONE_HERE")! as URL,
cachePolicy: .useProtocolCachePolicy,
timeoutInterval: 10.0)
request.httpMethod = "GET"
let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error as Any)
} else {
let httpResponse = response as? HTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"VOIP": true,
"active": true,
"active_status": "N/A",
"associated_email_addresses": {
"emails": [
"names",
"names"
],
"status": "No associated emails found."
},
"carrier": "ONVOY, LLC",
"city": "SEATTLE",
"country": "US",
"dialing_code": 1,
"do_not_call": false,
"formatted": "+3234232342",
"fraud_score": 100,
"leaked": false,
"line_type": "VOIP",
"local_format": "(206) 456-3059",
"mcc": "N/A",
"message": "Success.",
"mnc": "N/A",
"name": "N/A",
"prepaid": "tempor ea proident quis",
"recent_abuse": true,
"region": "WA",
"request_id": "8ctDi1gwuP",
"risky": true,
"sms_domain": "N/A",
"sms_email": "N/A",
"spammer": false,
"success": true,
"timezone": "America/Los_Angeles",
"user_activity": "Enterprise L4+ required.",
"valid": true,
"zip_code": "98104"
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"message": "You have insufficient credits to make this query. Please contact IPQualityScore support if this error persists.",
"request_id": "4OTORR352FU0p",
"success": false
}
RESPONSE HEADERS
Content-Type
application/json
RESPONSE BODY json
{
"message": "You have insufficient credits to make this query. Please contact IPQualityScore support if this error persists.",
"request_id": "4OTORR352FU0p",
"success": false
}