Episodes_LocateEpisode
const url = 'https://junction-api.qualiastudios.dev/v1/accounts/example/datasets/example/episodes/example:locate';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://junction-api.qualiastudios.dev/v1/accounts/example/datasets/example/episodes/example:locate \ --header 'X-API-Key: <X-API-Key>'Where one episode sits in a filtered, ordered list of its dataset: its position and neighbours, for “12 / 340” and prev / next in the studio. NOT_FOUND when the filter excludes it.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The account id.
The dataset id.
The episode id.
Query Parameters
Section titled “Query Parameters ”Same language as ListEpisodes.filter.
Same values as ListEpisodes.order_by.
The page size the returned page_token is for; same rules as ListEpisodes.page_size. Pass the same value to ListEpisodes.
Locate it in the list as this version froze it, the one ListEpisodes.version reads: that version’s episodes, in its order. Same values as ListEpisodes.version; pass the same value to ListEpisodes.
Responses
Section titled “ Responses ”OK
Response for Episodes.LocateEpisode.
object
Its index in the filtered order, from 0.
Episodes the filter leaves.
The episode before it; empty at the start.
The episode after it; empty at the end.
A ListEpisodes page_token that starts the page containing it.
Example generated
{ "position": 1, "totalSize": 1, "previousEpisode": "example", "nextEpisode": "example", "pageToken": "example"}default
Section titled “default ”Default error response
A refusal from the API itself.
object
The gRPC code name in upper case, e.g. NOT_FOUND.
Whether the same call may succeed if retried.
Empty, except when a dataset copy or move is refused: then one google.rpc.ErrorInfo with the refusal’s reason code, its domain and, in metadata, the datasets it names.
object
A refusal from the gateway before the call reaches the API, for example 401 bad or missing API key, 403 key lacks the scope or environment closed, 413 body too large.
object
What went wrong.
Example generated
{ "code": "example", "message": "example", "retryable": true, "details": [ {} ]}