This page provides a practical guide to quickly start using the Fess API (v2).
Get Started in 5 Minutes
Prerequisites
Fess is running (accessible at http://localhost:8080/)
Try the Search API
The v2 search endpoint is GET /api/v2/search.
curl command examples:
Example response (formatted):
v2 responses are returned in the response envelope.
Note
The example above is representative. The document fields included in data depend on the server configuration (the response-field allowlist). For the full list of available request parameters and response fields, see Search API. For the common response envelope, error model, and CSRF, see API Overview.
Try the Suggest API
The suggest endpoint is GET /api/v2/suggest-words.
Example response (formatted):
Try the Label API
Try the Health Check API
The health check endpoint is GET /api/v2/health.
Example response (formatted):
Using Postman
The Fess API can be easily used with Postman.
Collection Setup
Open Postman and create a new collection
Add the following requests:
Search API:
Method:
GETURL:
http://localhost:8080/api/v2/searchQuery Parameters: -
q: Search keyword -num: Number of results (optional) -start: Start position (optional)
Suggest API:
Method:
GETURL:
http://localhost:8080/api/v2/suggest-wordsQuery Parameters: -
q: Input string
Label API:
Method:
GETURL:
http://localhost:8080/api/v2/labels
Environment Variables
We recommend using Postman environment variables to manage server URLs.
Create a new environment in “Environments”
Add variable:
fess_url=http://localhost:8080Change request URL to
{{fess_url}}/api/v2/search
Code Samples by Programming Language
All samples call GET /api/v2/search and reference the response envelope.
Python
JavaScript (Node.js)
Java
API Version Compatibility
| Fess Version | API Version | Notes |
|---|---|---|
| 15.x | v2 | Latest version. Full feature support. |
| 14.x | v1 | Legacy API only. |
| 13.x | v1 | Basic API support. |
Note
In Fess 15.7, the former /api/v1 JSON search API and chat API were discontinued. Clients using /api/v1 should migrate to /api/v2. For detailed differences between versions, refer to the Release Notes.
Troubleshooting
API Not Working
Verify |Fess| is running
Confirm that http://localhost:8080/ is accessible.
Verify the endpoint uses v2
Make sure the request path starts with
/api/v2/.... The legacy/api/v1endpoints have been discontinued.When authentication is required
For endpoints that require authentication, see Authentication / Session API.
Next Steps
API Overview - Common API specifications (response envelope, error model, authentication/CSRF)
Search API - Search API details
Suggest API - Suggest API details
Label API - Label API details
Health API - Health Check API details
Admin API Reference - Admin API usage