---
updatedAt: 2025-06-12T13:58:20.000Z
agentTools:
  projectIndex: https://developer.data.world/llms.txt
---

# Download a file

Download a file within the dataset as originally uploaded. Prefer `POST:/sql` or `POST:/sparql` for
retrieving clean and structured data.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "contact": {
      "name": "Contact Us",
      "url": "https://data.world/company/contact-us"
    },
    "termsOfService": "https://data.world/terms-policies",
    "title": "data.world Public API",
    "version": "0"
  },
  "servers": [
    {
      "url": "https://api.data.world/v0"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "files"
    }
  ],
  "paths": {
    "/file_download/{owner}/{id}/{file}": {
      "get": {
        "description": "Download a file within the dataset as originally uploaded. Prefer `POST:/sql` or `POST:/sparql` for\nretrieving clean and structured data.",
        "operationId": "downloadFile",
        "parameters": [
          {
            "in": "path",
            "name": "owner",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "*/*": {}
            },
            "description": "default response"
          }
        },
        "summary": "Download a file",
        "tags": [
          "files"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "jsonSchemaDialect": "https://spec.openapis.org/oas/3.1/dialect/base"
}
```