> For the complete documentation index, see [llms.txt](https://dev.ubidots.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.ubidots.com/sdks/javascript/ubidots-class/get-methods.md).

# Get methods

## Definition

Get methods retrieve data from the [`entity`](https://dev.ubidots.com/sdks/javascript/overview.md#supported-entities) on which they are called. These methods are common to all [`entities`](https://dev.ubidots.com/sdks/javascript/ubidots-class.md#ubidots-class-properties).

<table data-full-width="true"><thead><tr><th width="142" align="center">Method</th><th width="159" align="center">Description</th><th width="321" align="center">Usage</th><th width="193" align="center">Arguments</th><th align="center">Response</th></tr></thead><tbody><tr><td align="center"><code>all</code></td><td align="center">Returns a list of all <a href="https://dev.ubidots.com/sdks/javascript/overview.md#supported-entities"><code>entities</code></a> in the account.</td><td align="center"><code>Ubidots.&#x3C;entity>.all();</code></td><td align="center">None</td><td align="center"><a href="https://dev.ubidots.com/sdks/javascript/ubidots-class/ubidots-objects/entity-object.md"><code>entityObject[]</code></a></td></tr><tr><td align="center"><code>get</code></td><td align="center">Returns a list of the first 100 <a href="https://dev.ubidots.com/sdks/javascript/overview.md#supported-entities"><code>entities</code></a> in the account.</td><td align="center"><code>Ubidots.&#x3C;entity>.get();</code></td><td align="center">None</td><td align="center"><a href="https://dev.ubidots.com/sdks/javascript/ubidots-class/ubidots-objects/entity-object.md"><code>entityObject[]</code></a></td></tr><tr><td align="center"><code>first</code></td><td align="center">Returns the first <a href="https://dev.ubidots.com/sdks/javascript/overview.md#supported-entities"><code>entity</code></a> instance in the account.</td><td align="center"><code>Ubidots.&#x3C;entity>.first();</code></td><td align="center">None</td><td align="center"><a href="https://dev.ubidots.com/sdks/javascript/ubidots-class/ubidots-objects/entity-object.md"><code>entityObject[]</code></a></td></tr><tr><td align="center"><code>paginate</code></td><td align="center">Performs a paginated request to retrieve <a href="https://dev.ubidots.com/sdks/javascript/overview.md#supported-entities"><code>entities</code></a>.</td><td align="center"><code>Ubidots.&#x3C;entity>.paginate([page, [size]])</code></td><td align="center"><ul><li><code>page: number</code> The page number to retrieve</li><li><code>size: number</code> The maximum number of results per page</li></ul></td><td align="center"><a href="https://dev.ubidots.com/sdks/javascript/ubidots-class/ubidots-objects/paginator.md">paginator</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.ubidots.com/sdks/javascript/ubidots-class/get-methods.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
