---
title: "Datapoints.GetInto"
description: "Get a datapoint by its ID from one or more collections of the same dataset."
image: "https://tilebox.com/images/tilebox-docs-social-preview.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://tilebox.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Datapoints.GetInto

import { Fragment } from "astro/jsx-runtime";

import ApiReference from "@docs/components/ApiReference.astro";

import ParamField from "@docs/components/ParamField.astro";

```go
func (datapointClient) GetInto(
  ctx context.Context,
  datasetID uuid.UUID,
  datapointID uuid.UUID,
  datapoint proto.Message,
  options ...QueryOption,
) error
```

Get a datapoint by its ID from one or more collections of the same dataset.

The data point is stored in the `datapoint` parameter.

## Parameters

**datasetID**

type: uuid.UUID

The ID of the dataset to query.
**datapointID**

type: uuid.UUID

The id of the datapoint to query
**datapoint**

type: proto.Message

The datapoint to query into
**options**

type: []QueryOption

Options for querying data points.

## Options

**WithCollections(collections ...*datasets.Collection)**

Restrict the lookup to specific dataset collections by collection object.
**WithCollectionIDs(collectionIDs ...uuid.UUID)**

Restrict the lookup to specific dataset collections by collection ID.
**WithSkipData()**

default: false

Skip the data when querying datapoint.
If set, only the required and auto-generated fields will be returned.

## Returns

An error if data point could not be queried.

<h2 id="request-example">Usage example</h2>

```go
var datapoint v1.Sentinel1Sar
err = client.Datapoints.GetInto(ctx,
  dataset.ID,
  datapointID,
  &datapoint,
  datasets.WithCollectionIDs(collection.ID),
)
```

Source: https://tilebox.com/docs/api-reference/go/datasets/Datapoints.GetInto/index.mdx
