# Validate YAML From URL

**Use case:** 

Fetch raw YAML, JSON, or TOML files from URLs and validate them in bulk for repositories, config audits, and release checks.

## Input

```json
{
  "documents": [
    "name: John Doe\nage: 30\nroles:\n  - admin\n  - editor\naddress:\n  city: New York\n  zip: \"10001\""
  ],
  "urls": [
    "https://raw.githubusercontent.com/github/docs/main/data/reusables/actions/actions-shorthand-versions.md"
  ],
  "operation": "validate",
  "inputFormat": "auto",
  "outputFormat": "json",
  "jsonIndent": 2,
  "stopOnError": false,
  "includeOriginal": true
}
```

## Output

```json
{
  "index": {
    "label": "#",
    "format": "number"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "inputFormat": {
    "label": "Format",
    "format": "text"
  },
  "isValid": {
    "label": "Valid",
    "format": "boolean"
  },
  "errorMessage": {
    "label": "Error",
    "format": "text"
  },
  "errorLine": {
    "label": "Line",
    "format": "number"
  },
  "outputFormat": {
    "label": "Output Format",
    "format": "text"
  },
  "convertedContent": {
    "label": "Converted Content",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [YAML Validator & Converter](https://apify.com/automation-lab/yaml-validator) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/yaml-validator) to learn more, explore other use cases, and run it yourself.