# Convert OpenAPI specs to a RAG dataset

**Use case:** 

Flatten API specs into per-endpoint rows with parameters and response codes — ready to chunk and embed for RAG.

## Input

```json
{
  "emitMode": "per-endpoint",
  "includeParameters": true,
  "includeSchemas": true,
  "maxApis": 25,
  "monitorMode": false,
  "alertOnNewApi": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "requestConcurrency": 6,
  "diagnose": false
}
```

## Output

```json
{
  "api": {
    "label": "API",
    "format": "string"
  },
  "method": {
    "label": "Method",
    "format": "string"
  },
  "path": {
    "label": "Path",
    "format": "string"
  },
  "summary": {
    "label": "Summary",
    "format": "string"
  },
  "operation_id": {
    "label": "Operation",
    "format": "string"
  },
  "server": {
    "label": "Server",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [OpenAPI Spec Scraper — APIs to LLM Agent Tools (MCP-Ready)](https://apify.com/scrapersdelight/openapi-spec-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapersdelight/openapi-spec-scraper) to learn more, explore other use cases, and run it yourself.