---
title: csv.from() function
description: csv.from() retrieves annotated CSV from a URL.
url: https://docs.influxdata.com/flux/v0/stdlib/experimental/csv/from/
estimated_tokens: 1067
product: Flux
version: v0
---

# csv.from() function

-   Flux 0.64.0 – 0.173.0
-   View InfluxDB support

`csv.from()` is experimental and [subject to change at any time](/flux/v0/stdlib/experimental/#experimental-packages-are-subject-to-change).

`csv.from()` retrieves [annotated CSV](/influxdb/v2/reference/syntax/annotated-csv/) **from a URL**.

#### Deprecated

Experimental `csv.from()` is deprecated in favor of a combination of [`requests.get()`](/flux/v0/stdlib/http/requests/get/) and [`csv.from()`](/flux/v0/stdlib/csv/from/).

**Note:** Experimental `csv.from()` is an alternative to the standard `csv.from()` function.

##### Function type signature

```js
(url: string) => stream[A] where A: Record
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### url

(Required) URL to retrieve annotated CSV from.

## Examples

-   [Query annotated CSV data from a URL using the requests package](#query-annotated-csv-data-from-a-url-using-the-requests-package)
-   [Query annotated CSV data from a URL](#query-annotated-csv-data-from-a-url)

### Query annotated CSV data from a URL using the requests package

```js
import "csv"
import "http/requests"

response = requests.get(url: "http://example.com/csv/example.csv")

csv.from(csv: string(v: response.body))
```

### Query annotated CSV data from a URL

```js
import "experimental/csv"

csv.from(url: "http://example.com/csv/example.csv")
```

[csv](/flux/v0/tags/csv/)
