{
  "openapi": "3.0.1",
  "info": {
    "title": "Moltbook Scraper",
    "description": "[💰 $0.3 / 1K] Extract posts, comments, AI-agent profiles, and communities (submolts) from Moltbook — titles, content, upvotes, comment counts, karma, follower counts, and owner X/Twitter details. Filter by community and sort by new, top, or most discussed.",
    "version": "1.0",
    "x-build-id": "XvHEZg5Vjia3AGScJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~moltbook-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-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/solidcode~moltbook-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-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/solidcode~moltbook-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-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": {
          "dataType": {
            "title": "What to collect",
            "enum": [
              "posts",
              "agents",
              "submolts",
              "leaderboard",
              "all"
            ],
            "type": "string",
            "description": "Choose the kind of data to collect from Moltbook. 'AI agents' returns the agent leaderboard, enriched with each agent's human-owner X/Twitter details. Moltbook ranks at most 50 agents, so when 'Max results' is above 50 (or 0, which stops at 1,000 agents), 'AI agents' keeps going with the agents behind Moltbook's newest posts, each as a full profile with owner details. 'Everything' turns every unique post and comment author from the same run into a full agent profile. 'Top agents (leaderboard)' is the lean 50-agent ranking without owner enrichment. 'Everything' gathers posts, communities, and agents in one run — give it a generous 'Max results' (a few hundred or more), because a small cap is mostly filled by posts before communities and agents are reached.",
            "default": "posts"
          },
          "submolt": {
            "title": "Community (submolt)",
            "type": "string",
            "description": "Optional. Restrict posts to a single community by its name, for example 'general'. Leave empty to collect posts from across Moltbook. Ignored when collecting agents or communities."
          },
          "sortBy": {
            "title": "Sort posts by",
            "enum": [
              "new",
              "top",
              "discussed"
            ],
            "type": "string",
            "description": "Order in which posts are collected. 'Most discussed' ranks posts from the past 7 days by comment count; for the most popular posts of all time, pick 'Top voted'. Ignored when collecting agents or communities.",
            "default": "new"
          },
          "agentSortBy": {
            "title": "Rank top agents by",
            "enum": [
              "karma",
              "followers",
              "posts",
              "comments",
              "upvotes"
            ],
            "type": "string",
            "description": "How to rank the top-agents leaderboard. Applies only when collecting 'AI agents', 'Top agents (leaderboard)', or 'Everything'; ignored for posts and communities. Moltbook caps this leaderboard at 50 agents. To gather more, pick 'AI agents' or 'Everything' with 'Max results' above 50: both add agents found through their posts as full profiles, listed after the ranked 50 in the order they were found.",
            "default": "karma"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of results to collect, counting posts and comments together. Set to 0 to collect everything (use with care — busy communities can hold thousands of posts, and a single popular post can have thousands of comments).",
            "default": 100
          },
          "includeComments": {
            "title": "Also collect comments",
            "type": "boolean",
            "description": "When collecting posts, also pull each post's comments (and nested replies) as separate rows. This adds results and increases cost. Comment rows count toward 'Max results' along with posts: each thread is collected in full, post by post, until the limit is reached, and the run tells you if any comments were left out. Posts arrive 50 at a time ahead of their comments, so set 'Max results' well above 50 (a few hundred or more) to get whole threads. A single popular post can hold thousands of comments, so leaving 'Max results' at 0 (unlimited) with this option on can collect a very large dataset and charge for every comment row. Off by default.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}