{
  "openapi": "3.0.1",
  "info": {
    "title": "Lemon8 Feeds Scraper",
    "description": "This actor extracts posts, images, videos, comments, and analytics from Lemon8 feeds across 22 categories and 10+ regions. Supports infinite scrolling, full media downloads, post-level analytics, and detailed comment extraction—perfect for research, analysis, or content monitoring.",
    "version": "1.0",
    "x-build-id": "PTiZKOIBPl7Nbfmsf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abotapi~lemon8-feeds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abotapi-lemon8-feeds-scraper",
        "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/abotapi~lemon8-feeds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abotapi-lemon8-feeds-scraper",
        "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/abotapi~lemon8-feeds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abotapi-lemon8-feeds-scraper",
        "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": [
          "category"
        ],
        "properties": {
          "category": {
            "title": "Category",
            "minimum": 0,
            "maximum": 36,
            "type": "integer",
            "description": "Feed category: 0=ForYou, 1=Outfits, 2=Skincare, 3=Nails, 4=Home, 5=Recipes, 6=Makeup, 7=Hair, 8=Fitness, 9=Accessories, 10=Perfume, 11=MentalHealth, 12=Relationship, 13=Wellness, 14=Baking, 15=Music, 16=Shoes, 17=Travel, 18=Tattoo, 19=Drinks, 20=Dining, 21=HomeSkills, 22=Bags, 23=Reading, 24=Photography, 25=Movie, 26=Outdoors, 27=Tech, 28=Art&Design, 29=Gardening, 30=Career, 31=Games, 32=Education, 33=Cars, 34=Wedding, 35=Maternity, 36=Pets",
            "default": 0
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Region: us=United States, au=Australia, nz=New Zealand, jp=Japan, th=Thailand, id=Indonesia, vn=Vietnam, my=Malaysia, sg=Singapore, ca=Canada",
            "default": "us"
          },
          "limit": {
            "title": "Post Limit",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of posts to extract (max 5000)",
            "default": 2
          },
          "saveImages": {
            "title": "Save Images",
            "type": "boolean",
            "description": "Download post images locally and store in key-value store",
            "default": false
          },
          "saveVideos": {
            "title": "Save Videos",
            "type": "boolean",
            "description": "Download videos from video posts and store in key-value store",
            "default": false
          },
          "getDetails": {
            "title": "Get Detailed Post Data",
            "type": "boolean",
            "description": "Navigate to individual post pages to extract full content and all comments",
            "default": true
          },
          "detailsLimit": {
            "title": "Details Post Limit",
            "minimum": 1,
            "maximum": 3000,
            "type": "integer",
            "description": "Maximum number of posts to get detailed data for",
            "default": 2
          },
          "commentExpansionTimeout": {
            "title": "Comment Expansion Timeout (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time in seconds to spend expanding comments on each post. Posts with many comments may timeout.",
            "default": 30
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional proxy settings for web scraping"
          },
          "dev_transform_fields": {
            "title": "Transform Fields (Advanced)",
            "type": "array",
            "description": "Transform output to include only specified fields. Use dot notation for nested objects.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "dev_dataset_name": {
            "title": "Custom Dataset Name (Advanced)",
            "type": "string",
            "description": "Save results into a custom named Dataset. Placeholders: {ACTOR}, {DATE}, {TIME}",
            "default": "default"
          },
          "dev_dataset_clear": {
            "title": "Clear Dataset Before Insert (Advanced)",
            "type": "boolean",
            "description": "Clear the dataset before inserting new data",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}