Skip to main content
GET
Get Face Neighbors

Headers

authorization
string | null

Path Parameters

face_id
string
required

Query Parameters

k
integer
default:5

Number of neighbours (max 100)

Required range: 1 <= x <= 100
scope
string
default:own

own (default, unchanged) searches your own faces. published searches the published corpus; use it with owner to name a query face you do not own.

Pattern: ^(own|published)$
owner
string | null

The account that owns the QUERY face, when it is not you. The same thing as the <owner>:<alias> handle in the path: /v1/faces/head:socrates/neighbors and /v1/faces/socrates/neighbors?owner=head are one request. Sending both and disagreeing is a 422. This scopes the QUERY face only; scope decides what is searched. The resolved owner comes back as owned_by on the response, so a bare alias can be checked.

include
string[] | null

Enrichment on each neighbour, same vocabulary as the list: 'profile', 'avatar', 'usage', 'owner_follow'. name, specialty, description and owned_by always come back, because a bare alias is not enough to draw or open a result.

component
string
default:face

What to compare on. The only accepted value is face, the overall score, which is also the default.

direction
string
default:nearest

Search direction

Pattern: ^(nearest|furthest)$

Response

Successful Response