Skip to main content
POST
/
people
/
search
AI people search
curl --request POST \
  --url https://api.village.do/v1/people/search \
  --header 'Content-Type: application/json' \
  --header 'user-identifier: <user-identifier>' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "prompt": "software engineers in silicon valley",
  "limit": 25,
  "high_reasoning": false,
  "network_filters": {
    "connection_degrees": [
      1,
      2
    ],
    "exclude_teams": true,
    "user_to_introducer_types": [
      "linkedin_contact",
      "worked_together"
    ],
    "user_to_introducer_min_score": "good",
    "introducer_to_target_types": [
      "linkedin_contact"
    ],
    "introducer_to_target_min_score": "good"
  }
}
'
{
  "success": true,
  "data": [
    {
      "id": "420587592",
      "avatar": "https://village.sfo3.cdn.digitaloceanspaces.com/l-castilhos-anderson.jpg",
      "first_name": "Anderson",
      "last_name": "Castilhos",
      "full_name": "Anderson Castilhos",
      "title": "Senior Software Engineer",
      "linkedin_identifier": "castilhos-anderson",
      "linkedin_url": "https://linkedin.com/in/castilhos-anderson",
      "location": "Porto Alegre, Rio Grande Do Sul, Brazil",
      "village_person_url": "https://rafael-village-tunnel.village.do/people/profile/5KvSxBQ%252B%252FbUGKWrxxnr%252Fnw%253D%253D!vNnNM",
      "relationship": {
        "paths": {
          "count": 1,
          "avatars": [
            "https://village.sfo3.cdn.digitaloceanspaces.com/l-rafaelmuttoni.jpg"
          ]
        },
        "score": 17.4
      },
      "relevant_work": {
        "position": "Senior Software Engineer",
        "start_date": null,
        "end_date": null,
        "company": {
          "name": "PayPal",
          "employee_size": null,
          "domain_name": null,
          "image_url": "",
          "linkedin_url": null,
          "website": ""
        }
      }
    }
  ],
  "pagination": {
    "cursor": "eyJzb3VyY2UiOiJuZXR3b3JrIiwiY2h1bmtTa2lwIjowLCJyZXN1bHRzU2tpcCI6MTAwfQ",
    "hasNextPage": true,
    "count": 25
  },
  "metadata": {
    "resultSource": "network",
    "networkStageComplete": false
  }
}

Authorizations

x-access-token
string
header
required

JWT token obtained from /users/authorization endpoint

Headers

user-identifier
string
required

Specify the user making the request. This identifier should match the one you used when integrating the user with Village. Not needed when using user token authentication.

Body

application/json
prompt
string
required

Natural language search query

Example:

"software engineers in silicon valley"

limit
integer
default:25

Number of results per page

Required range: x <= 100
cursor
string

Cursor for pagination (returned from previous requests)

high_reasoning
boolean
default:false

Enable high reasoning mode for complex queries

network_filters
object

Advanced filters to refine people search results based on relationship connections and network paths. Only applicable to people search - ignored for company search.

Response

Successfully processed AI search query

success
boolean

Indicates if the request was successful

Example:

true

data
object[]

Array of people search results

pagination
object
metadata
object