{
  "openapi": "3.0.1",
  "info": {
    "title": "Smart Data Converters",
    "description": "A versatile 5-in-1 data conversion actor that intelligently transforms data between formats. Every converter includes sensible defaults in the input schema so you can run it instantly without any configuration.",
    "version": "0.0",
    "x-build-id": "IWcc6ZJMzOQIJOReg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moving_beacon-owner1~my-actor-65/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moving_beacon-owner1-my-actor-65",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/moving_beacon-owner1~my-actor-65/runs": {
      "post": {
        "operationId": "runs-sync-moving_beacon-owner1-my-actor-65",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/moving_beacon-owner1~my-actor-65/run-sync": {
      "post": {
        "operationId": "run-sync-moving_beacon-owner1-my-actor-65",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "converter_type"
        ],
        "properties": {
          "converter_type": {
            "title": "Converter Type",
            "enum": [
              "html_to_clean_text",
              "html_to_article_summary",
              "json_to_report",
              "logs_to_structured_json",
              "form_to_api_request"
            ],
            "type": "string",
            "description": "Select which smart converter to run.",
            "default": "html_to_clean_text"
          },
          "html_input": {
            "title": "HTML Input",
            "type": "string",
            "description": "Raw HTML string to convert. Used by converters 1 (Clean Text) and 2 (Article Summary).",
            "default": "<!DOCTYPE html>\n<html>\n<head><title>Sample Article — AI Trends</title>\n<meta name=\"author\" content=\"Jane Doe\">\n<meta name=\"description\" content=\"A look at the latest artificial intelligence trends shaping 2025.\">\n<meta name=\"date\" content=\"2025-01-15\">\n</head>\n<body>\n<nav><a href=\"/\">Home</a> | <a href=\"/tech\">Tech</a></nav>\n<script>var ads = true; trackPageView();</script>\n<style>.promo { color: red; }</style>\n<div class=\"ad-banner\">Buy our product now! Limited offer!</div>\n<article>\n  <h1>AI Trends Shaping the Future of Technology</h1>\n  <p>Artificial intelligence continues to evolve at a breathtaking pace. From large language models to autonomous robotics, the field is experiencing unprecedented growth and innovation.</p>\n  <p>In 2025, several key trends have emerged. First, multimodal AI systems that combine text, image, and audio understanding are becoming mainstream. Companies across industries are adopting these systems for customer service, content creation, and data analysis.</p>\n  <p>Second, the rise of small, efficient models has democratized AI access. Organizations no longer need massive compute budgets to deploy intelligent systems. Edge computing and on-device AI are making real-time processing possible even on mobile devices.</p>\n  <p>Third, AI safety and alignment research has matured significantly. Governments and institutions worldwide have established frameworks for responsible AI development, including mandatory testing and transparency requirements.</p>\n  <p>Experts predict that by 2027, AI will be embedded in virtually every software product. The economic impact is estimated at <strong>$15.7 trillion</strong> globally, according to a <a href=\"https://example.com/ai-report\">recent industry report</a>.</p>\n  <p>However, challenges remain. Data privacy concerns, algorithmic bias, and workforce displacement continue to spark debate among policymakers and technologists alike.</p>\n</article>\n<footer><p>&copy; 2025 TechNews. All rights reserved.</p>\n<div class=\"newsletter-signup\">Subscribe to our newsletter!</div></footer>\n</body>\n</html>"
          },
          "preserve_links": {
            "title": "Preserve Links (HTML → Clean Text)",
            "type": "boolean",
            "description": "If enabled, hyperlink URLs are appended after link text as [url]. Applies only to converter 1.",
            "default": true
          },
          "preserve_line_breaks": {
            "title": "Preserve Line Breaks (HTML → Clean Text)",
            "type": "boolean",
            "description": "If enabled, block-level HTML tags (p, div, br, h1-h6, li) are converted to newlines. Applies only to converter 1.",
            "default": true
          },
          "summary_sentences": {
            "title": "Summary Sentences (HTML → Summary)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of key sentences to include in the extractive summary. Applies only to converter 2.",
            "default": 5
          },
          "json_input": {
            "title": "JSON Input",
            "type": "string",
            "description": "Raw JSON string (object or array) to convert into a human-readable report. Used by converter 3.",
            "default": "{\n  \"company\": \"TechCorp Inc.\",\n  \"fiscal_year\": 2025,\n  \"is_public\": true,\n  \"ceo\": \"Jane Smith\",\n  \"founded\": \"2010-03-15\",\n  \"website\": \"https://techcorp.example.com\",\n  \"departments\": [\n    {\"name\": \"Engineering\", \"headcount\": 150, \"budget\": 5000000.00},\n    {\"name\": \"Marketing\", \"headcount\": 45, \"budget\": 2000000.00},\n    {\"name\": \"Sales\", \"headcount\": 80, \"budget\": 3500000.00},\n    {\"name\": \"HR\", \"headcount\": 20, \"budget\": 800000.00}\n  ],\n  \"quarterly_revenue\": [\n    {\"quarter\": \"Q1\", \"revenue\": 12500000, \"growth_pct\": 5.2},\n    {\"quarter\": \"Q2\", \"revenue\": 13200000, \"growth_pct\": 5.6},\n    {\"quarter\": \"Q3\", \"revenue\": 14100000, \"growth_pct\": 6.8},\n    {\"quarter\": \"Q4\", \"revenue\": 15800000, \"growth_pct\": 12.1}\n  ]\n}"
          },
          "report_max_width": {
            "title": "Report Max Width (JSON → Report)",
            "minimum": 40,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum character width for the formatted report output. Applies only to converter 3.",
            "default": 100
          },
          "log_input": {
            "title": "Log Input",
            "type": "string",
            "description": "Raw multi-line log text to parse into structured JSON. Supports Apache, Nginx, Syslog, generic app logs, and JSON-line logs. Used by converter 4.",
            "default": "2025-01-15T08:30:01.123Z [INFO] [AuthService] User login successful: user_id=12345\n2025-01-15T08:30:02.456Z [DEBUG] [DBPool] Connection acquired: pool_size=8/20\n2025-01-15T08:30:05.789Z [WARN] [RateLimiter] Rate limit approaching for IP 192.168.1.50: 95/100\n2025-01-15T08:30:10.012Z [ERROR] [PaymentGateway] Transaction failed: timeout after 30s, tx_id=TXN-98765\n2025-01-15T08:30:10.234Z [ERROR] [PaymentGateway] Retry attempt 1/3 for tx_id=TXN-98765\n2025-01-15T08:30:15.567Z [INFO] [PaymentGateway] Transaction succeeded on retry: tx_id=TXN-98765\n2025-01-15T08:30:20.890Z [INFO] [CacheManager] Cache hit ratio: 87.3%, evictions=12\n2025-01-15T08:31:01.111Z [WARN] [HealthCheck] Service 'recommendation-engine' response time: 2500ms (threshold: 2000ms)\n2025-01-15T08:31:05.222Z [CRITICAL] [DiskMonitor] Disk usage at 95%: /var/data partition\n2025-01-15T08:31:10.333Z [INFO] [Scheduler] Cleanup job started: removing logs older than 30 days"
          },
          "form_input": {
            "title": "Form Input (JSON object)",
            "type": "string",
            "description": "A flat JSON object representing form field names and their string values. Used by converter 5.",
            "default": "{\n  \"first_name\": \"Ali\",\n  \"last_name\": \"Hassan\",\n  \"email\": \"ali.hassan@example.com\",\n  \"age\": \"28\",\n  \"is_subscribed\": \"yes\",\n  \"signup_date\": \"2025/01/15\",\n  \"phone\": \"+92-300-1234567\",\n  \"interests\": \"AI, Machine Learning, Python\",\n  \"address_city\": \"Lahore\",\n  \"address_country\": \"PK\"\n}"
          },
          "field_mapping": {
            "title": "Field Mapping (Form → API)",
            "type": "string",
            "description": "A JSON object mapping form field names to nested API field paths (dot notation). Used by converter 5. Leave empty for 1:1 mapping.",
            "default": "{\n  \"first_name\": \"user.firstName\",\n  \"last_name\": \"user.lastName\",\n  \"email\": \"user.email\",\n  \"age\": \"user.age\",\n  \"is_subscribed\": \"preferences.newsletter\",\n  \"signup_date\": \"metadata.signupDate\",\n  \"phone\": \"user.phone\",\n  \"interests\": \"preferences.interests\",\n  \"address_city\": \"user.address.city\",\n  \"address_country\": \"user.address.country\"\n}"
          },
          "api_base_url": {
            "title": "API Base URL (Form → API)",
            "type": "string",
            "description": "The base URL for the generated API request. Applies only to converter 5.",
            "default": "https://api.example.com"
          },
          "api_endpoint": {
            "title": "API Endpoint (Form → API)",
            "type": "string",
            "description": "The API endpoint path appended to the base URL. Applies only to converter 5.",
            "default": "/v2/users/register"
          },
          "api_method": {
            "title": "API Method (Form → API)",
            "enum": [
              "GET",
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ],
            "type": "string",
            "description": "HTTP method for the generated API request. Applies only to converter 5.",
            "default": "POST"
          },
          "api_auth_type": {
            "title": "API Auth Type (Form → API)",
            "enum": [
              "none",
              "bearer",
              "api_key"
            ],
            "type": "string",
            "description": "Authentication type to include in request headers. Applies only to converter 5.",
            "default": "bearer"
          },
          "validation_rules": {
            "title": "Validation Rules (Form → API)",
            "type": "string",
            "description": "A JSON object defining validation rules per field: required, min_length, max_length, min, max, pattern, enum. Used by converter 5.",
            "default": "{\n  \"first_name\": {\"required\": true, \"min_length\": 1, \"max_length\": 50},\n  \"last_name\": {\"required\": true, \"min_length\": 1, \"max_length\": 50},\n  \"email\": {\"required\": true},\n  \"age\": {\"required\": true, \"min\": 13, \"max\": 120}\n}"
          },
          "url_to_scrape": {
            "title": "URL to Scrape (Optional)",
            "type": "string",
            "description": "If provided, the actor will fetch this URL first and use the HTML as input for converter 1 or 2. Overrides html_input.",
            "default": ""
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}