JavaScript SDK: swarmhit.database.suggestions(params)
Suggest valid values for a search filter (free, no credits). People fields: title, keyword, seniority, department, function, company, industry, companyType, hqCountry, country, city, state, continent, language, skill, school, degree, fieldOfStudy, headcountRange. Company fields: industry, country, headcountRange, lastRoundType, investor, technology, name. headcountRange returns a closed eight-value set on both entities.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/database/suggestions" \ -H "Content-Type: application/json" \ -d '{ "entity": "companies", "field": "industry", "query": "software" }'{ "data": [ "string" ]}List supported filters GET
**JavaScript SDK:** [`swarmhit.database.capabilities()`](/smart-api/sdk/methods#database) The filters, company sorts and suggestion fields the database supports for this workspace. The set can be narrower than the full filter list documented on the search endpoints; a search using a filter that is not listed here is rejected with 400 and the filter named. Free, no credits. An entity is `null` when the database is unavailable for it.
Enrich a company POST
**JavaScript SDK:** [`swarmhit.database.companies.enrich(params)`](/smart-api/sdk/methods#database.companies) Full database record for one company (headcount and growth, funding, revenue estimate, the number of open job listings) from its website domain (preferred), LinkedIn URL or name; when several are sent, the first in that order is used. Consumes workspace AI credits on a match, at the Company enrichment price (Settings → Credits usage, for owners and admins); a 404 (no match) is not charged. Out of credits is a 400 with `code: warning-no-credits`.