{
  "openapi": "3.0.1",
  "info": {
    "title": "Lemon8 Search, Profile & Post Monitor",
    "description": "Export public Lemon8 posts from keyword, topic, profile and exact URLs with stable IDs, factual fields, media URLs, coverage and safe exact-post monitoring.",
    "version": "0.5",
    "x-build-id": "jZobTkVyfIQ6tdNFl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/luminar~lemon8-search-profile-post-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-luminar-lemon8-search-profile-post-monitor",
        "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/luminar~lemon8-search-profile-post-monitor/runs": {
      "post": {
        "operationId": "runs-sync-luminar-lemon8-search-profile-post-monitor",
        "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/luminar~lemon8-search-profile-post-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-luminar-lemon8-search-profile-post-monitor",
        "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": [
          "workflow",
          "searchTerms",
          "startUrls",
          "region",
          "maxResults",
          "maxResultsPerTarget",
          "detailLevel",
          "maxDetailRequests",
          "firstRunBehavior",
          "stateNamespace",
          "maxBuyerChargeUsd",
          "maxEstimatedPlatformUsd",
          "maxRequests",
          "maxRuntimeSecs",
          "maxSourceBytes"
        ],
        "properties": {
          "workflow": {
            "title": "Workflow",
            "enum": [
              "collect",
              "monitor"
            ],
            "type": "string",
            "description": "Collect current posts or safely track one exact public post between runs.",
            "default": "collect"
          },
          "searchTerms": {
            "title": "Search terms",
            "maxItems": 10,
            "type": "array",
            "description": "Up to 10 Lemon8 search terms.",
            "default": [
              "fashion"
            ],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Public Lemon8 URLs",
            "maxItems": 20,
            "type": "array",
            "description": "Topic, profile, exact post, experience/search or feed URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "enum": [
              "us",
              "sg",
              "th",
              "jp"
            ],
            "type": "string",
            "description": "Canary-proven Lemon8 region used for keyword searches and URLs without an explicit region.",
            "default": "us"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap across all targets.",
            "default": 100
          },
          "maxResultsPerTarget": {
            "title": "Maximum per target",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Hard cap for each search term or URL.",
            "default": 100
          },
          "detailLevel": {
            "title": "Post detail",
            "enum": [
              "core",
              "detailed"
            ],
            "type": "string",
            "description": "Core reuses the listing payload; Detailed fetches each exact public post.",
            "default": "core"
          },
          "maxDetailRequests": {
            "title": "Maximum detail requests",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum exact post pages fetched in Detailed mode.",
            "default": 0
          },
          "firstRunBehavior": {
            "title": "First monitor run",
            "enum": [
              "seed_only",
              "emit_current_as_new"
            ],
            "type": "string",
            "description": "Seed silently or emit the first observed post as NEW.",
            "default": "seed_only"
          },
          "stateNamespace": {
            "title": "Monitor state name",
            "type": "string",
            "description": "Separates independent monitoring baselines.",
            "default": "default"
          },
          "maxBuyerChargeUsd": {
            "title": "Maximum buyer charge (USD)",
            "minimum": 0.01,
            "maximum": 1000,
            "type": "number",
            "description": "Fail before source work if the declared PPE maximum would exceed this amount.",
            "default": 10
          },
          "maxEstimatedPlatformUsd": {
            "title": "Maximum estimated platform usage (USD)",
            "minimum": 0.01,
            "maximum": 25,
            "type": "number",
            "description": "Runtime compute guard independent of Actor event pricing.",
            "default": 0.25
          },
          "maxRequests": {
            "title": "Request guard",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Maximum first-party HTTP requests.",
            "default": 100
          },
          "maxRuntimeSecs": {
            "title": "Runtime guard (seconds)",
            "minimum": 30,
            "maximum": 1800,
            "type": "integer",
            "description": "Maximum source-work duration.",
            "default": 600
          },
          "maxSourceBytes": {
            "title": "Transfer guard (bytes)",
            "minimum": 100000,
            "maximum": 157286400,
            "type": "integer",
            "description": "Maximum first-party response bytes.",
            "default": 50000000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}