filters pattren<filter>:<value>
allow quick and precise access to the required information. These filters can be used in application programming interfaces (API) or user interfaces (UI).
Filter | Pattren | Notes |
---|---|---|
text | text:<string> | Any text content in general |
ip | ip:<string> | Specific IPAddressV4 if doesn't get results, please try again after a few minutes. |
port | port:<intger> | Specific UDP or TCP port is a numerical value ranging from 1 to 60000. |
service | service:<string> | a service or application running on a remote computer that listens for incoming network connections or requests for examples HTTP, SSH, SMTP, POP3, IMAP |
product | product:<string> | Specific software or information of these service running on a networked device for example Apache, MongoDB, vsftpd, Asterisk |
version | version:<string> | Specific version or release of a software or service running on a networked device |
info | info:<string> | Additional information or details about a service or software version |
cpe | cpe:<string> | CPE stands for 'Common Platform Enumeration.' It is a standardized method for describing and identifying software applications A CPE name is typically structured as follows:cpe:/<part>:<vendor>:<product>:<version> |
os | os:<string> | Operating System for example: linux, unix, windows, router |
isp | isp:<string> | An Internet Service Provider is a company or organization that provides Internet access and related services to individuals, businesses, and other entities |
org | org:<string> | organization that provides Internet access |
city | city:<string> | A specific city, for example, Baghdad |
country | country:<string> | A Specific Country, for example: Palestine |
zip | zip:<string> | A Specific zipcode, for example: 90210 |
These options are only available in the applications programming interface (API).
Options | Default | Description |
---|---|---|
apikey | A secret code that identifies a user or application. It's used to access data or services provided by an API. | |
size | 10 | The number of results retrieved in a single request. It determines the page size or the quantity the request should return. |
page | 1 | Used to specify the desired page of results when using paginated search. It's often used in conjunction with 'size to segment results into pages, page = [1,2,3,n] -> results = [n*size] && skip = [n*size] |
pretty | false | Determines whether the retrieved data will be displayed neatly and organized in the browser. |
This is all the expected responses from the server.
Code | Message |
---|---|
200 | Sucsess |
401 | Unauthorized - your api key is not valid or missing. |
402 | Payment Requierd - service unavailable in current subscription |
429 | Too Many Requests - you have reached the maximum number of requests. |
410 | Subscription Expired - please renew your subscription. |
500 | Internal Server Error - we encountered an unexpected error while processing yourrequest. |
503 | Service Unavailable - the service is currently unavailable. Please try again later. |
504 | Gateway Timeout - the server did not receive a timely response from an upstream server. |
import requests
params = {
"port": [80, 8080],
"product": "apache",
"country": "us",
"apikey": "YOUR-SCRATE-APIKEY",
}
responce = requests.get("https://anytarget.net/api/stats", params=params)
if responce.status_code = 200 :
print(responce.json())
else:
print(f"Request failed with status code: {responce.status_code}")
curl -X GET "https://anytarget.net/api/stats" \
-d "port=80" \
-d "port=8080" \
-d "product=apache" \
-d "country=us" \
-d "apikey=YOUR-SECRET-APIKEY" \
-G \
-f
require 'net/http'
require 'uri'
uri = URI.parse("https://anytarget.net/api/stats")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
params = {
"port" => [80, 8080],
"product" => "apache",
"country" => "us",
"apikey" => "YOUR-SECRET-APIKEY"
}
uri.query = URI.encode_www_form(params)
request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)
if response.code.to_i == 200
puts response.body
else
puts "Request failed with status code: #{response.code}"
end
Json Response:
{
"country": {
"Australia": 3008,
"Iraq": 567,
"Oman": 386,
"Russian Federation": 607,
"United States": 5561
},
"isp": {
"AMX Argentina S.A.": 418,
"AS21565": 303,
"ATLANTICBB-JOHNSTOWN": 729,
"HULUMTELE": 544,
"INCAPSULA": 311
},
"org": {
"AMX Argentina S.A.": 418,
"Breezeline": 729,
"Horry Telephone Cooperative, Inc.": 303,
"Hulum Almustakbal Company for Communication Engineering and Services Ltd": 544,
"Incapsula Inc": 311
},
"os": {
"IOS": 2,
"Linux": 20,
"Mac OS X": 2,
"RouterOS": 6,
"Windows": 6
},
"port": {
"161": 13714,
"443": 486,
"5060": 607,
"80": 441,
"8888": 281
},
"total": 15430
}
import requests
params = {
"port": [80, 8080],
"product": "apache",
"country": "us",
"apikey": "YOUR-SCRATE-APIKEY",
"page": 2,
"size": 1
}
responce = requests.get("https://anytarget.net/api/search", params=params)
if responce.status_code == 200 :
print(responce.json())
else:
print(f"Request failed with status code: {responce.status_code}")
curl -X GET "https://anytarget.net/api/search" \
-d "port=80" \
-d "port=8080" \
-d "product=apache" \
-d "country=us" \
-d "apikey=YOUR-SECRET-APIKEY" \
-G \
-f
require 'net/http'
require 'uri'
uri = URI.parse("https://anytarget.net/api/search")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
params = {
"port" => [80, 8080],
"product" => "apache",
"country" => "us",
"apikey" => "YOUR-SECRET-APIKEY"
}
uri.query = URI.encode_www_form(params)
request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)
if response.code.to_i == 200
puts response.body
else
puts "Request failed with status code: #{response.code}"
end
Json Response:
[
{
"asn": "18002",
"city": "New Delhi",
"coordinates": [
77.224,
28.636
],
"country": "India",
"date": "2023-11-28T22:32:41.254538",
"ip": "202.89.78.2",
"isp": "WORLDPHONE-IN AS Number for Interdomain Routing",
"org": "AS Number for Interdomain Routing",
"ports": [
{
"cpe": [
"cpe:/a:openbsd:openssh:7.4"
],
"info": "protocol 2.0",
"port": "22",
"product": "OpenSSH",
"protocol": "tcp",
"script": {
"ssh-hostkey": "2048 a2:8d:5e:30:a0:4c:6f:20:80:e7:e6:d7:a9:c3:0d:49 (RSA)
256 b2:1c:1f:b1:d1:f8:54:d0:98:55:50:d1:48:28:b6:8e (ECDSA)
256 b2:4c:8b:44:ee:bf:3e:ba:56:85:6e:10:b4:85:a5:9d (ED25519)"
},
"service": "ssh",
"version": "7.4"
},
{
"cpe": [
"cpe:/a:apache:http_server:2.4.6"
],
"info": "(CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33",
"port": "80",
"product": "Apache httpd",
"protocol": "tcp",
"script": {
"http-headers": "Date: Tue, 28 Nov 2023 22:32:27 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33
Content-Length: 347
Connection: close
Content-Type: text/html; charset=iso-8859-1
(Request type: GET)",
"http-server-header": "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33",
"http-title": "400 Bad Request"
},
"service": "http",
"version": "2.4.6"
},
{
"cpe": [
"cpe:/a:apache:http_server:2.4.6"
],
"info": "(CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33",
"port": "443",
"product": "Apache httpd",
"protocol": "tcp",
"script": {
"http-headers": "Date: Tue, 28 Nov 2023 22:32:25 GMT
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33
Content-Length: 347
Connection: close
Content-Type: text/html; charset=iso-8859-1
(Request type: GET)",
"http-server-header": "Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.33",
"http-title": "400 Bad Request",
"ssl-cert": "Subject: commonName=*.aaacloud.in
Subject Alternative Name: DNS:*.aaacloud.in, DNS:aaacloud.in
Issuer: commonName=Sectigo RSA Domain Validation Secure Server CA/organizationName=Sectigo Limited/stateOrProvinceName=Greater Manchester/countryName=GB
Public Key type: rsa
Public Key bits: 2048
Signature Algorithm: sha256WithRSAEncryption
Not valid before: 2023-08-09T00:00:00
Not valid after: 2024-07-09T23:59:59
MD5: 34ee:b75a:9105:1d1a:5221:bed9:fc6d:e467
SHA-1: 128e:6972:bd0a:3ca6:84a7:a524:1fcc:466a:cefc:cd90"
},
"service": "http",
"version": "2.4.6"
}
],
"state": "Delhi",
"zip": "110098"
}
]