Skip to content

MaintenanceThe former company search endpoint goes into maintenance on November 9Migration guide

Endpoints // Utility

People auto-suggestion

New

Last verified

Available inAPISDK

Complete a skill as someone types, for free, to build a people search box in your own product.

POST/v2/search/people/auto-suggestion

Credits

Free.

Introduction

The People Auto-suggestion endpoint returns the skills that start with what someone has typed, most common first. It returns values only, never a profile.

It is made for products: use it to offer auto-suggestion in a search box of your own interface, then send the value your user picks to the skills filter of People search or of its free count.

This endpoint costs 0 credits, but each call still counts toward your rate limits.

Authorization

NameTypeRequiredDescription
apikeystringYesYour API key from the developer dashboard. Pass it via Authorization: Bearer YOUR_API_KEY header.

Request body

NameTypeRequiredDescription
fieldstringYesThe filter to complete. skills is the only value today
querystringYesWhat has been typed so far, 1 to 100 characters. Case and accents are ignored
limitnumberNoMaximum values returned, from 1 to 25. Defaults to 10

A value matches when it starts with query, spaces included: machine l returns machine learning, and script returns scripting but not javascript.

Any other field, an empty query or a limit out of range returns HTTP 422 and names the expected value.

Response structure

FieldTypeDescription
successbooleantrue if the request was processed successfully
errornullAlways null on success
dataobject

Values that start with the query

Show child attributes
FieldTypeDescription
objectstringAlways search_auto_suggestions
entitystringAlways person
fieldstringThe filter completed
suggestionsobjectThe values, most common first. Empty when no value starts with the query
suggestions[]object

One value

Show child attributes
FieldTypeDescription
valuestringThe value to show, and to send as it is in the skills filter

Values come in lowercase and without accents, as they are held for matching. The skills filter ignores case, so you can restyle a value for display and still send it.

A few habits keep the box fast and your rate limit intact:

  • Call from your server. The call needs your API key, which must never reach a browser.
  • Wait for a pause in the typing. Calling about 200 ms after the last key sends one request for a burst of keys.
  • Start at two characters. One letter matches too much to help.
  • Cancel the previous request when a new one starts, so a late answer never replaces a newer one.
  • Keep the answers for the session: the same prefix returns the same values.
  • Let people add what they typed. An empty list only means that no value starts this way, so a person can still search on their own wording.

Code examples

Code Examples

curl -X POST https://api.reversecontact.com/v2/search/people/auto-suggestion \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "field": "skills",
    "query": "pyth",
    "limit": 5
  }'

Example response

200 - Success

Example Response

{
  "success": true,
  "data": {
    "object": "search_auto_suggestions",
    "entity": "person",
    "field": "skills",
    "suggestions": [
      { "value": "python programming language" },
      { "value": "python" },
      { "value": "python langage de programmation" },
      { "value": "python programmiersprache" }
    ]
  },
  "error": null,
  "quotas": {
    "creditsConsumed": 0,
    "workspace": {
      "id": "ws_abc123",
      "credits": { "total": 10000, "used": 4521, "left": 5479 }
    }
  },
  "metadata": {
    "requestId": "req_a1u2t3o4",
    "executionTimeMs": 170
  }
}