# ee.Image.id

Returns the ID of a given element within a collection. Objects outside collections are not guaranteed to have IDs.

<br />

| Usage | Returns |
|---|---|
| `Image.id()` | String |

| Argument | Type | Details |
|---|---|---|
| this: `element` | Element | The element from which the ID is taken. |