- Takes: IP address
- Takes: Domain
- Passive: the target is not contacted
The query is base64-encoded in qbase64. Results are sorted by update time and are returned as arrays of the requested fields, in the order given in fields. With full unset, only results within one year are returned. When the query contains cert or banner the maximum size is 2000 per page; when it contains body, 500.
Query parameters
qbase64The FOFA query syntax, base64-encoded
fieldsComma-separated fields to return (see Appendix 1 of the docs: ip, port, protocol, country, region, city, asn, org, host, domain, os, server, title, jarm, header, banner, cert, link, status_code and more; some need a paid level)
pagePage number, sorted by update time
sizeResults per page (maximum 10,000)
fulltrue searches all results instead of only the last year
r_typeSet to json to return data in JSON format
Response fields · 6ShowHide
error
Whether the request failed
size
Total number of results for the query
page
Page number
mode
Query mode
query
The query syntax that was run
results[]
One array per result with the requested fields in order
curl 'https://en.fofa.info/api/v1/search/all?qbase64=aXA9IjE5OC41MS4xMDAuNyI%3D&key=YOUR_API_KEY'{
"error": false,
"size": 2,
"page": 1,
"mode": "extended",
"query": "ip=\"198.51.100.7\"",
"results": [
[
"198.51.100.7",
"198.51.100.7",
"80"
],
[
"https://www.example.com",
"198.51.100.7",
"443"
]
]
}