All Collections
Versions 3.0 and 2.0
Implement
Portal 2.0
How do I use a CSV located at a URL as a source for my data?
How do I use a CSV located at a URL as a source for my data?
Elisa Dinsmore avatar
Written by Elisa Dinsmore
Updated over a week ago

This article is for Flatfile's Portal 2.0. If you'd like to check out the latest version of the Flatfile Data Exchange Platform, click here!

Flatfile Portal 2.0 does not support using a URL directly as a source for data. To use a URL, you will need to use `fetch`.

The code to do so should look something like this:

const csvRequest = await fetch(csvUrl)importer.requestDataFromUser({
 source: await csvRequest.text()
})

The ability to do this is only possible in Portal 2.0 at this time, not Portal 3.0 or Workspaces.

Did this answer your question?