list_directory_v1_directories_get
Fetch and analyze a web directory listing to extract files and subdirectories, then get a suggested next action like 'discover' for data files or 'browse' for subdirectories.
Instructions
GET /v1/directories (public) — List Directory — List and analyze a web directory.
Fetches the directory listing from the provided URL, parses the content to extract file and subdirectory entries, and analyzes the contents to suggest appropriate next actions.
The response includes a suggested_action field:
"discover": Directory contains data files ready to be added as datasets
"browse": Directory contains subdirectories to explore further
"mixed": Directory contains both data files and subdirectories
Results are cached for 5 minutes to reduce load on remote servers.
Use refresh=true to bypass the cache and fetch fresh data.
Args: request: FastAPI request for getting client IP url: URL of the directory to list (must be a valid HTTP/HTTPS URL) refresh: If true, by…
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the directory to list | |
| refresh | No | Bypass cache and fetch fresh data |