Search
Algolia Search mock API
Algolia Search REST API: records, search and browse, index settings, tasks, synonyms, rules and API keys.
At a glance
- Operations
- 78
- Stateful operations
- 36
- Stateful resources
- 7
- Webhook events
- 0
- Vendor API version
- 1
- Verification
- Spec-verified
How it works
Use Algolia Search without calling Algolia SAS
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
x-algolia-api-key: 0123456789abcdef0123456789abcdef State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Records | 9 |
| Search and browse | 4 |
| Index settings and indices | 5 |
| Tasks | 2 |
| Synonyms | 6 |
| Rules | 6 |
| API keys | 6 |
Webhooks
Events your handlers can receive
This API sends no webhooks.
Coverage
78 operations
36 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 40 |
| Records | 9 |
| API keys | 6 |
| Rules | 6 |
| Synonyms | 6 |
| Index settings and indices | 5 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
1 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the Algolia SAS API description, licensed under MIT.
- Algolia SAS API documentation
- Source specification
Each collection holds up to 1 MiB per API key (records, search text, settings, synonyms, rules and keys are separate collections); writes beyond that are dropped (x-maxoperf-vs-state: capacity). State is isolated by the x-algolia-api-key header and only that header is checked (x-algolia-application-id is not). Records, batch (addObject, updateObject, partialUpdateObject and partialUpdateObjectNoCreate behave like partialUpdateObject, deleteObject), getObjects, partial updates (attribute merge plus Increment/Decrement), clear, deleteBy and index copy/move are stateful, and writing to an unknown index creates it. A record touched twice in one batch uses its pre-batch state for partial updates; multi-index batch (*/batch), dictionaries, clusters, logs, security sources and the SDK helper operations answer stateless samples. Search is a case-insensitive substring match over the string, number and boolean attributes (one level of nesting) with no typo tolerance, ranking, highlighting or facets in the response; it supports page/hitsPerPage (clamped to 1000, nbPages up to 511), the legacy params string, and filters/facetFilters made of up to two attribute:value equalities joined by AND. Multi-index queries return page 0 of each request; browse pages by a numeric cursor; facet value search lists distinct values of one attribute. Synonyms and rules are stored and searched by objectID but are not applied to search; settings are merged top-level. Every write allocates an increasing taskID per API key and tasks are published immediately; only the last 500 task ids are remembered, older or never issued ids answer 404. Generated API keys are 32 alphanumeric characters (not hex), keys are not validated on requests, and a deleted key can be restored. Error texts for a missing task, key and synonym/rule use the form '<thing> does not exist'; the 400 error for a batch without requests is not implemented because Algolia does not publish its text.
MaxoPerf is not affiliated with, endorsed by, or sponsored by Algolia SAS. Algolia Search is a trademark of its owner.