# ByID Search

{% hint style="success" %}
Regarding provision of slots via the API, there are four options available:

i)`discovery-geo` query parameter search = multiple facilities + multiple days + no slots.

ii)`upcoming-slots` query parameter search = multiple facilities + one day + slots.

**iii)`FacilityUse ByID`search = one facility + multiple days + slots.**

**iv)`Slot ByID` search = one facility + one day + one slot.**
{% endhint %}

A `ByID` search, which can only be made once an `upcoming-slots` query parameter search has been completed, will return two `id`s for each `FacilityUse`:

1. The `FacilityUse id`: this root URL looks like [https://search.imin.co/facilities-api/v2/facility-uses/{`identifier`}](https://search.imin.co/facilities-api/v2/facility-uses/) and can be used to make a `FacilityUse ByID` search.<br>
2. The `Slot id`: this URL can be found in the `FacilityUse` at the`event` array and looks like [https://search.imin.co/facilities-api/v2/slots/{`event[].id` }](https://search.imin.co/facilities-api/v2/slots/). It can be used to make a `Slot ByID` search.

{% hint style="danger" %}
Query parameters **cannot** be used to complete a`ByID` search.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.imin.co/platform-products/search/imin-facilities-api/byid-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
