{
  "openapi": "3.0.1",
  "info": {
    "title": "Manga Release, Licensing & Availability Intelligence",
    "description": "Track public manga licensing signals, localized editions, official availability, releases, prices, and stock across supported markets.",
    "version": "0.1",
    "x-build-id": "4HedL5zIh507TopRa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/obliging_persimmon_cki~manga-release-licensing-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-obliging_persimmon_cki-manga-release-licensing-intelligence",
        "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/obliging_persimmon_cki~manga-release-licensing-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-obliging_persimmon_cki-manga-release-licensing-intelligence",
        "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/obliging_persimmon_cki~manga-release-licensing-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-obliging_persimmon_cki-manga-release-licensing-intelligence",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "titleLookup",
              "publisherCalendar",
              "availabilityMonitor"
            ],
            "type": "string",
            "description": "Choose a mode. The current runnable path is titleLookup; publisherCalendar and availabilityMonitor are reserved for later phases.",
            "default": "titleLookup"
          },
          "titles": {
            "title": "Manga titles",
            "type": "array",
            "description": "Titles to resolve. Vietnamese and English aliases are accepted.",
            "items": {
              "type": "string"
            },
            "default": [
              "One Piece"
            ]
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Initial supported market-language pairs: US/en and VN/vi.",
            "items": {
              "type": "object",
              "properties": {
                "countryCode": {
                  "title": "Country code",
                  "type": "string",
                  "description": "ISO 3166-1 alpha-2 country code."
                },
                "languageCode": {
                  "title": "Language code",
                  "type": "string",
                  "description": "BCP-47 or ISO language code."
                }
              },
              "required": [
                "countryCode",
                "languageCode"
              ],
              "additionalProperties": false
            },
            "default": [
              {
                "countryCode": "US",
                "languageCode": "en"
              }
            ]
          },
          "publisherUrls": {
            "title": "Publisher URLs",
            "type": "array",
            "description": "Optional public publisher pages reserved for publisherCalendar mode.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "editionUrls": {
            "title": "Edition URLs",
            "type": "array",
            "description": "Known public edition URLs used by optional retailer collection; availabilityMonitor is reserved for a later phase.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional ISO date for publisher calendar mode.",
            "default": ""
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional ISO date for publisher calendar mode.",
            "default": ""
          },
          "maxTitles": {
            "title": "Maximum titles",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum unique title queries.",
            "default": 1
          },
          "maxEditionsPerTitle": {
            "title": "Maximum editions per title",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum normalized editions retained for each work.",
            "default": 3
          },
          "maxOffersPerEdition": {
            "title": "Maximum offers per edition",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum retailer offers retained for each edition.",
            "default": 2
          },
          "includeMetadata": {
            "title": "Include metadata",
            "type": "boolean",
            "description": "Include canonical manga work metadata.",
            "default": true
          },
          "includeLicensing": {
            "title": "Include licensing signals",
            "type": "boolean",
            "description": "Include public market-specific licensing signals when supported.",
            "default": true
          },
          "includeOfficialAvailability": {
            "title": "Include official availability",
            "type": "boolean",
            "description": "Include public official publisher or reader availability signals.",
            "default": true
          },
          "includeRetailOffers": {
            "title": "Include retailer offers",
            "type": "boolean",
            "description": "Collect supported public retailer price and stock data. Disabled for the Store auto-test.",
            "default": false
          },
          "includeReleaseGap": {
            "title": "Calculate release gap",
            "type": "boolean",
            "description": "Calculate a release gap only when comparable original and localized volumes are available.",
            "default": false
          },
          "detectChanges": {
            "title": "Detect changes",
            "type": "boolean",
            "description": "Compare snapshots with a previous dataset.",
            "default": false
          },
          "previousDatasetId": {
            "title": "Previous dataset ID",
            "type": "string",
            "description": "Required when change detection is enabled.",
            "default": ""
          },
          "normalizedOutputLanguage": {
            "title": "Normalized output language",
            "enum": [
              "en",
              "original"
            ],
            "type": "string",
            "description": "Use English labels or preserve original-language labels where supported.",
            "default": "en"
          },
          "preserveOriginalText": {
            "title": "Preserve original text",
            "type": "boolean",
            "description": "Preserve source-language titles and product labels.",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 10,
            "maximum": 90,
            "type": "integer",
            "description": "Per-source request timeout.",
            "default": 25
          },
          "maxConcurrency": {
            "title": "Maximum concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum concurrent source operations in later enrichment phases.",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings. The default path does not require a proxy.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "description": "Route supported requests through Apify Proxy when explicitly enabled.",
                "type": "boolean",
                "editor": "checkbox",
                "default": false
              }
            },
            "default": {
              "useApifyProxy": false
            },
            "additionalProperties": false
          },
          "debug": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Enable bounded diagnostic logging without raw source content.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}