# Subfinder

## Perform subfinder scan on a domain

> Combines automateScanDomain and subdomains endpoints to perform a complete subfinder scan. First scans the domain for JS URLs, then extracts subdomains from the scan results.

```json
{"openapi":"3.0.0","info":{"title":"JSMON API","version":"1.0.0"},"servers":[{"url":"https://api-dev.jsmon.sh","description":"Development Server (For internal testing)"},{"url":"https://api.jsmon.sh","description":"Production Server (Stable release)"}],"security":[{"Bearer":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-JSMON-KEY","description":"API Key to access the Jsmon API. Example: \"X-JSMON-KEY: your_api_key_here\""}}},"paths":{"/api/v2/subfinderScan":{"post":{"summary":"Perform subfinder scan on a domain","description":"Combines automateScanDomain and subdomains endpoints to perform a complete subfinder scan. First scans the domain for JS URLs, then extracts subdomains from the scan results.","tags":["Subfinder"],"parameters":[{"in":"query","name":"wkspId","required":true,"schema":{"type":"string","format":"uuid"},"description":"The workspace ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","description":"The domain to scan for subdomains"}}}}}},"responses":{"200":{"description":"Successfully extracted subdomains","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}},"400":{"description":"Bad Request - Invalid domain or missing required fields"},"403":{"description":"Forbidden - No access to workspace"},"500":{"description":"Internal server error"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledge.jsmon.sh/api-reference/reference/subfinder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
