---
title: "Fetch Url"
method: POST
path: "/v1/projects/{project_id}/data/fetch"
tags: ["data-input"]
---

# Fetch Url

`POST /v1/projects/{project_id}/data/fetch`

Fetch data from a URL.

Can fetch webpages, API responses, file downloads, etc.

## Path parameters

- `project_id` string, required

## Request body

- UrlFetchRequest — Request to fetch data from a URL.
  - `source_name` string, nullable — Name/description of the data source
  - `metadata` object — Additional metadata
  - `url` string, uri, required — URL to fetch data from

## Response `200`

Successful Response

- DataInputResponse — Response after data input is accepted.
  - `input_id` string, required — Unique identifier for this input
  - `input_type` string, required — Type of input (file, url, paste, webhook)
  - `source_name` string, nullable — Name of the data source
  - `detected_format` string, nullable — Detected format (if available)
  - `size_bytes` integer, required — Size of the input in bytes
  - `preview` object, nullable — Preview of the data
  - `status` string — Processing status
  - `created_at` string, date-time

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/ontora/apis/ontora-api.md) · [All operations](https://skmtc.dev/ontora/apis/ontora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ontora/ontora-api/revisions/7f57037fd94b/schema)
