{
  "openapi": "3.0.1",
  "info": {
    "title": "Live Web Data by Teneo Protocol",
    "description": "Fetch any public web page live, the way real users see it, from 59 countries. Clean Markdown, text or HTML for AI agents, LLMs and RAG. Geo-targeting per request and optional JavaScript rendering. Every request is fetched fresh, never from a cache. Failed pages are free.",
    "version": "0.0",
    "x-build-id": "hyQhqJ8IU4K1Ba8Ux"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/teneo-protocol~live-web-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-teneo-protocol-live-web-data",
        "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/teneo-protocol~live-web-data/runs": {
      "post": {
        "operationId": "runs-sync-teneo-protocol-live-web-data",
        "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/teneo-protocol~live-web-data/run-sync": {
      "post": {
        "operationId": "run-sync-teneo-protocol-live-web-data",
        "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",
        "properties": {
          "url": {
            "title": "URL",
            "type": "string",
            "description": "A single public page URL. https:// is added if it is missing. You can also add more URLs in the list below. Both fields are combined."
          },
          "urls": {
            "title": "URL list",
            "type": "array",
            "description": "One or more public page URLs. Combined with the single URL field. Duplicates are fetched once.",
            "items": {
              "type": "string"
            }
          },
          "countryCode": {
            "title": "Country",
            "enum": [
              "dz",
              "ar",
              "au",
              "at",
              "bd",
              "be",
              "br",
              "bg",
              "ca",
              "cn",
              "co",
              "hr",
              "cy",
              "cz",
              "dk",
              "eg",
              "et",
              "fi",
              "fr",
              "de",
              "gh",
              "gr",
              "hk",
              "hu",
              "in",
              "id",
              "il",
              "it",
              "jp",
              "kz",
              "ke",
              "my",
              "mx",
              "ma",
              "mm",
              "nl",
              "ng",
              "no",
              "pk",
              "ph",
              "pl",
              "pt",
              "ro",
              "sa",
              "rs",
              "sg",
              "kr",
              "es",
              "lk",
              "se",
              "ch",
              "tw",
              "th",
              "tr",
              "ua",
              "ae",
              "gb",
              "us",
              "vn"
            ],
            "type": "string",
            "description": "Country the page is fetched from (geo-targeting per request), default United States. 59 countries where the network is strong. The page is fetched the way local visitors see it; results can vary by site, because each site decides what it localizes. For sites that put the country in the URL or domain, send that local URL as well. Via API, send the lowercase two-letter code, for example de or jp.",
            "default": "us"
          },
          "renderMode": {
            "title": "Render mode",
            "enum": [
              "auto",
              "never",
              "always"
            ],
            "type": "string",
            "description": "Automatic (default): each page is fetched normally first; a browser is used only if that returns little or no visible text, and then the page is billed as a JavaScript-rendered page. Never render: plain fetch only, fastest, never billed as a JavaScript-rendered page; JavaScript-heavy pages may come back empty. Always render: every URL is rendered in a browser and billed as a JavaScript-rendered page.",
            "default": "auto"
          },
          "contentScope": {
            "title": "Content scope",
            "enum": [
              "main",
              "full"
            ],
            "type": "string",
            "description": "Main content (default): only the main part of the page, without menus, banners and footer. Best for articles, docs and product pages. Full page: everything on the page, including teasers, offers, categories, menus and footer. Best for landing pages and overview pages. Same price.",
            "default": "main"
          },
          "format": {
            "title": "Output format",
            "enum": [
              "markdown",
              "text",
              "html"
            ],
            "type": "string",
            "description": "Main content format written to the dataset. Markdown and plain text are always returned when the fetch succeeds. Choose HTML to also include the page HTML.",
            "default": "markdown"
          },
          "maxCharacters": {
            "title": "Max characters per page",
            "minimum": 1000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Text and Markdown are cut after this many characters per page (1,000 to 1,000,000). Default 1,000,000, so long pages come back complete. Lower it to keep LLM prompts small. The field textTruncated shows when a page was cut. Same price.",
            "default": 1000000
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}