FOFA
Exposed asset search engine: IPs, ports, websites and certificates
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
- Account emailOptional
Where to find them
- Sign in at fofa.info (or en.fofa.info) with your account.
- Open your “Personal Center” → “API” and copy the “API KEY”. API usage depends on the account level: paid plans come with a monthly quota of queries and results, and without them F-points are used. Error messages often arrive in Chinese.
Tools (2)
FOFA API request
FOFA_SEND_REQUESTAuthenticated call to the FOFA API (https://fofa.info/api/v1). Any endpoint of the API is allowed. Queries go in base64 (parameter qbase64). Examples: GET /search/all?qbase64=<query in base64>&fields=ip,port,host,domain,title,server,protocol,country&size=100&page=1, GET /search/stats?qbase64=…&fields=country,port (aggregates), GET /host/{ip}?detail=true, GET /info/my. Syntax: domain="example.com", host="…", ip="1.2.3.0/24", cert="example.com", title="…", port="3389" && country="US", app="…". Errors arrive with status 200 and "error": true.
Required scopes
No scopes required
Input
FOFA API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Search
FOFA_SEARCH_HOSTSSearches with FOFA syntax (domain="…", host="…", ip="1.2.3.0/24", cert="…", title="…", port="3389" && country="US", app="…"…). Returns the total and the results: IP, port, host, domain, title, server, protocol, country and organization. Uses API quota according to the plan.
Required scopes
No scopes required
Input
Search input Name Type Description queryrequiredstringe.g. domain="example.com" || cert="example.com" pageintegerDefault: 1maxintegerDefault: 50

