Search Session
Initialize a Search Session
Creates a new search session for a given query. Returns session info with available services and quota information.
The returned session.id should be passed as search_id to all subsequent service calls.
POST
https://oathnet.org/api
/
service
/
search
/
init
Initialize a Search Session
curl --request POST \
--url https://oathnet.org/api/service/search/init \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"query": "user@example.com",
"search_type": "email"
}
'import requests
url = "https://oathnet.org/api/service/search/init"
payload = {
"query": "user@example.com",
"search_type": "email"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'user@example.com', search_type: 'email'})
};
fetch('https://oathnet.org/api/service/search/init', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://oathnet.org/api/service/search/init",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'user@example.com',
'search_type' => 'email'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://oathnet.org/api/service/search/init"
payload := strings.NewReader("{\n \"query\": \"user@example.com\",\n \"search_type\": \"email\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://oathnet.org/api/service/search/init")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"user@example.com\",\n \"search_type\": \"email\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://oathnet.org/api/service/search/init")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"user@example.com\",\n \"search_type\": \"email\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Search session initialized successfully",
"data": {
"session": {
"id": "sess_abc123",
"query": "user@example.com",
"search_type": "email",
"status": "active",
"created_at": "2024-01-15T10:30:00Z",
"expires_at": "2024-01-15T11:30:00Z",
"duration_minutes": 60
},
"user": {
"plan": "Pro",
"plan_type": "pro",
"daily_lookups": {
"used": 450,
"remaining": 550,
"limit": 1000,
"is_unlimited": false
}
},
"services": {
"service_key": {
"name": "Service Name",
"service_id": "service-id",
"category": "general",
"is_available": true,
"is_premium": false,
"session_quota": 100,
"today_usage": 45,
"recommended_quota": 50
}
},
"summary": {
"total_services": 2,
"available_services": 2,
"session_expires_in_minutes": 60
}
}
}Authorizations
API key for authentication (lowercase header name)
Body
application/json
The search query
Example:
"user@example.com"
Optional hint for the detected query type. The API still validates and
may infer the type from query.
Available options:
email, username, ip, domain, discord_id, steam_id, xbox_id, roblox_id, stealer Example:
"email"
⌘I
Initialize a Search Session
curl --request POST \
--url https://oathnet.org/api/service/search/init \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"query": "user@example.com",
"search_type": "email"
}
'import requests
url = "https://oathnet.org/api/service/search/init"
payload = {
"query": "user@example.com",
"search_type": "email"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'user@example.com', search_type: 'email'})
};
fetch('https://oathnet.org/api/service/search/init', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://oathnet.org/api/service/search/init",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'user@example.com',
'search_type' => 'email'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://oathnet.org/api/service/search/init"
payload := strings.NewReader("{\n \"query\": \"user@example.com\",\n \"search_type\": \"email\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://oathnet.org/api/service/search/init")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"user@example.com\",\n \"search_type\": \"email\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://oathnet.org/api/service/search/init")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"user@example.com\",\n \"search_type\": \"email\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Search session initialized successfully",
"data": {
"session": {
"id": "sess_abc123",
"query": "user@example.com",
"search_type": "email",
"status": "active",
"created_at": "2024-01-15T10:30:00Z",
"expires_at": "2024-01-15T11:30:00Z",
"duration_minutes": 60
},
"user": {
"plan": "Pro",
"plan_type": "pro",
"daily_lookups": {
"used": 450,
"remaining": 550,
"limit": 1000,
"is_unlimited": false
}
},
"services": {
"service_key": {
"name": "Service Name",
"service_id": "service-id",
"category": "general",
"is_available": true,
"is_premium": false,
"session_quota": 100,
"today_usage": 45,
"recommended_quota": 50
}
},
"summary": {
"total_services": 2,
"available_services": 2,
"session_expires_in_minutes": 60
}
}
}