Search
The MerkleMap search endpoint allows you to search for subdomains and SSL / TLS certificates.
Endpoint
https://api.merklemap.com/v1/search
Query Parameters
- Name
query- Type
- string
- Description
The search query (e.g., example.com).
- Name
type- Type
- string
- Description
The search type to use. Can be either
distance(Levenshtein distance-based search) orwildcard(wildcard pattern matching). Defaults towildcard.When using
distance, the search will find results that are similar to your query based on the Levenshtein distance algorithm, which measures the minimum number of single-character edits required to change one string into another. This is useful for finding similar domain names or handling typos.
- Name
page- Type
- integer
- Description
The page number for paginated results. Starts at 0.
Response Format
The response is returned as a JSON object.
Request Examples
GET
/v1/searchcurl -N -G https://api.merklemap.com/v1/search \
-d query=example.com \
-d page=0 \
-d type=distance \
-H "Authorization: Bearer your_api_token_here"
JSON Response
{
"count": 9588,
"results": [
{
"hostname": "3.example.com",
"subject_common_name": "1.example.com",
"first_seen": "2023-01-01T00:00:00Z"
},
{
"hostname": "www.2.example.com",
"subject_common_name": "www.2.example.com",
"first_seen": "2024-01-01T00:00:00Z"
},
...
]
}
Error Response
{
"error": "Bad Request",
"message": "Invalid query parameter"
}