{
  "openapi": "3.0.1",
  "info": {
    "title": "Moltbook Scraper - AI Agent Social Media Data",
    "description": "Extract posts, comments, profiles & submolts from Moltbook.com - the social network for AI agents. Perfect for AI research & agent analytics. ⚠️ Due to high traffic, feed and submolt scraping may return partial results. We're monitoring the situation accordingly.",
    "version": "0.0",
    "x-build-id": "IrVqfCeLQ7z6n95eI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lofomachines~moltbook-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lofomachines-moltbook-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/lofomachines~moltbook-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lofomachines-moltbook-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/lofomachines~moltbook-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lofomachines-moltbook-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",
        "properties": {
          "scrapeMode": {
            "title": "Scrape Mode",
            "enum": [
              "frontPage",
              "submolts",
              "agentProfiles",
              "agentList",
              "communityList",
              "postUrls"
            ],
            "type": "string",
            "description": "Choose a single scraping mode. Other inputs will be ignored if they don't match this mode.",
            "default": "frontPage"
          },
          "frontPageSort": {
            "title": "Feed Sort Order",
            "enum": [
              "new",
              "top",
              "discussed"
            ],
            "type": "string",
            "description": "Sort order for front page posts",
            "default": "new"
          },
          "frontPageTimeRange": {
            "title": "Feed Time Range",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Time range filter for feed when sorting by Top or Discussed",
            "default": "all"
          },
          "frontPageMaxPosts": {
            "title": "Feed Max Posts",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of posts to scrape from front page (0 = unlimited)",
            "default": 50
          },
          "submolts": {
            "title": "Submolts",
            "type": "array",
            "description": "List of submolt slugs to scrape (e.g., 'general', 'tech'). Posts from each community will be collected.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "submoltSort": {
            "title": "Submolt Posts Sort Order",
            "enum": [
              "hot",
              "new",
              "top"
            ],
            "type": "string",
            "description": "Sort order for posts within submolts",
            "default": "hot"
          },
          "submoltMaxPosts": {
            "title": "Max Posts per Submolt",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of posts to scrape from each submolt (0 = unlimited)",
            "default": 50
          },
          "includeSubmoltInfo": {
            "title": "Include Submolt Info",
            "type": "boolean",
            "description": "Include community metadata (name, members, description) in output",
            "default": true
          },
          "agentUsernames": {
            "title": "Agent Usernames",
            "type": "array",
            "description": "List of agent usernames to scrape profiles for (e.g., 'CyberPal637'). Do not include 'u/' prefix.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "agentMaxPosts": {
            "title": "Max Posts per Agent",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of posts to scrape from each agent's profile (0 = unlimited)",
            "default": 20
          },
          "includeAgentHumanOwner": {
            "title": "Include Human Owner Info",
            "type": "boolean",
            "description": "Include human owner details (name, Twitter handle) in agent profiles",
            "default": true
          },
          "agentListSort": {
            "title": "Agent List Sort Order",
            "enum": [
              "recent",
              "followers",
              "karma"
            ],
            "type": "string",
            "description": "Sort order for agent list",
            "default": "recent"
          },
          "agentListMaxAgents": {
            "title": "Max Agents from List",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum number of agents to scrape from the agent list (0 = unlimited)",
            "default": 60
          },
          "communityListMaxItems": {
            "title": "Max Submolts from List",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of communities to scrape from the list (0 = unlimited)",
            "default": 50
          },
          "postUrls": {
            "title": "Specific Post URLs",
            "type": "array",
            "description": "Direct URLs to specific posts to scrape with full details and comments",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeComments": {
            "title": "Include Comments",
            "type": "boolean",
            "description": "Include comments when scraping individual post pages",
            "default": true
          },
          "maxCommentsPerPost": {
            "title": "Max Comments per Post",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of comments to extract per post (0 = unlimited)",
            "default": 100
          },
          "maxRequestsPerCrawl": {
            "title": "Max Requests per Crawl",
            "minimum": 1,
            "type": "integer",
            "description": "Global maximum number of HTTP requests (safety limit)",
            "default": 500
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of concurrent requests",
            "default": 10
          },
          "requestHandlerTimeoutSecs": {
            "title": "Request Timeout (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Timeout for each page request in seconds",
            "default": 60
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for avoiding blocks. Use Apify Proxy or custom proxies.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}