This page provides a practical guide to quickly start using the Fess API.
Get Started in 5 Minutes
Prerequisites
Fess is running (accessible at http://localhost:8080/)
JSON response is enabled in Admin Panel > System > General
Try the Search API
curl command examples:
Example response (formatted):
Try the Suggest API
Try the Label API
Try the Health Check API
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/v1/documentsQuery Parameters: -
q: Search keyword -num: Number of results (optional) -start: Start position (optional)
Suggest API:
Method:
GETURL:
http://localhost:8080/api/v1/suggestQuery Parameters: -
q: Input string
Label API:
Method:
GETURL:
http://localhost:8080/api/v1/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/v1/documents
Code Samples by Programming Language
Python
JavaScript (Node.js)
JavaScript (Browser)
Java
API Version Compatibility
| Fess Version | API Version | Notes |
|---|---|---|
| 15.x | v1 | Latest version. Full feature support |
| 14.x | v1 | Similar API. Some parameter differences may exist |
| 13.x | v1 | Basic API support |
Note
API compatibility is maintained, but new features are only available in the latest version. For detailed differences between versions, refer to the Release Notes.
Troubleshooting
API Not Working
Verify JSON response is enabled
Check that “JSON Response” is enabled in Admin Panel > System > General.
CORS errors from browser
If you get CORS errors when accessing from a browser, use JSONP or configure CORS settings on the server.
JSONP example:
Authentication required
If access tokens are configured, include them in the request header:
Next Steps
Search API - Search API details
Suggest API - Suggest API details
Admin API Reference - Admin API usage