Shortest Path

The Shortest Path endpoint returns a response identifying the shortest traversal path connecting each pair of entities.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Query parameters

entitiesstringRequired
A list of Sayari entity IDs specifying the source and target entities for the shortest path calculation. The list must contain exactly two entity IDs The first entity ID represents the source.The second entity ID represents the target.

Response

This endpoint returns an object.
entitieslist of strings
datalist of objects

Errors

400
Bad Request
401
Unauthorized
404
Not Found
405
Method Not Allowed
429
Rate Limit Exceeded
500
Internal Server Error
502
Bad Gateway
520
Connection Error