API

REST API Endpoints

GET /api/v1/query/dns

Query DNS records from the authoritative server.

GET parameters:

  • name - domain name (required)
  • record_type - DNS record type (optional)
  • server - DNS server to query (optional)

Response:

{\"authoritative_server\": \"ns.example.com\", \"records\": [{\"name\": \"example.com.\", \"ttl\": 300, \"record_type\": \"A\", \"data\": \"93.184.216.34\"}]}

curl:

curl 'https://ipgeomancer.condacity.io/api/v1/query/dns?name=example.com&record_type=A'

GET /api/v1/query/whois

Query WHOIS information for a domain.

GET parameters:

  • domain - domain name (required)

Response:

{\"server\": \"whois.example.com\", \"data\": \"...\"}

curl:

curl 'https://ipgeomancer.condacity.io/api/v1/query/whois?domain=example.com'

GET /api/v1/query/rdap

Perform an RDAP query (domains, IPs, ASNs, ...).

GET parameters:

  • query - value to query (required)
  • qtype - query type (optional)

Response:

{\"objectClassName\": \"domain\", ...}

curl:

curl 'https://ipgeomancer.condacity.io/api/v1/query/rdap?query=example.com'

GET /api/v1/ping

Send ICMP echo requests to a host.

GET parameters:

  • host - target host (required)
  • timeout - seconds to wait (optional)
  • probes - number of pings (optional)
  • interval - interval seconds (optional)

Response:

{\"ip\": \"1.2.3.4\", ...}

curl:

curl 'https://ipgeomancer.condacity.io/api/v1/ping?host=example.com&probes=1'

GET /api/v1/query/traceroute

Trace the network path to a host.

GET parameters:

  • host - target host (required)
  • max_hops - maximum hops (optional)
  • queries - probes per hop (optional)
  • wait - seconds to wait per probe (optional)

Response:

{\"destination\": \"1.2.3.4\", \"hops\": [...]}

curl:

curl 'https://ipgeomancer.condacity.io/api/v1/query/traceroute?host=example.com&max_hops=1'

GET /api/v1/query/domain-certificate

Fetch TLS certificate information for a domain.

GET parameters:

  • domain - domain name (required)

Response:

{\"subject\": \"...\", \"issuer\": \"...\", \"not_before\": \"...\", \"not_after\": \"...\", \"valid\": true}

curl:

curl 'https://ipgeomancer.condacity.io/api/v1/query/domain-certificate?domain=example.com'

GET /api/v1/password-hash-generate

Generate a password hash.

GET parameters:

  • method - hashing method (only bcrypt supported)
  • password - password to hash (required)

Response:

{\"method\": \"bcrypt\", \"hash\": \"$2b$...\"}

curl:

curl 'https://ipgeomancer.condacity.io/api/v1/password-hash-generate?method=bcrypt&password=secret'