{
  "openapi": "3.0.1",
  "info": {
    "title": "Hive Blog Scraper",
    "description": "Scrape posts, author feeds, profiles, and communities from the Hive blockchain blogging network (hive.blog). Browse trending/hot/new posts by tag or community, pull an author's blog/feed/comments, look up single or batch posts by URL, fetch profile info, and browse the community directory.",
    "version": "1.0",
    "x-build-id": "3scdgytAuIfRIFDpn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~hive-blog-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-hive-blog-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/crawlerbros~hive-blog-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-hive-blog-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/crawlerbros~hive-blog-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-hive-blog-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "posts",
              "byAccount",
              "byPost",
              "byPosts",
              "profile",
              "communities",
              "byCommunity",
              "tags",
              "postComments",
              "followers",
              "following"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "posts"
          },
          "sortPosts": {
            "title": "Sort (mode=posts)",
            "enum": [
              "trending",
              "hot",
              "created",
              "muted",
              "payout",
              "payout_comments"
            ],
            "type": "string",
            "description": "Ranking used by Hive's ranked-posts feed.",
            "default": "trending"
          },
          "tag": {
            "title": "Tag or community (mode=posts/byCommunity)",
            "type": "string",
            "description": "mode=posts: filter the posts feed to a tag (e.g. `photography`) or a community ID (e.g. `hive-142159`); leave blank for the site-wide feed. mode=byCommunity: the exact community ID to look up (e.g. `hive-142159`), required.",
            "default": ""
          },
          "account": {
            "title": "Account username (mode=byAccount / profile / followers / following)",
            "type": "string",
            "description": "Hive account name, with or without leading `@` (e.g. `monochromes`).",
            "default": ""
          },
          "followType": {
            "title": "Follow type (mode=followers/following)",
            "enum": [
              "blog",
              "ignore"
            ],
            "type": "string",
            "description": "Relationship type to list: normal follows (`blog`) or muted/ignored accounts (`ignore`).",
            "default": "blog"
          },
          "sortAccount": {
            "title": "Sort (mode=byAccount)",
            "enum": [
              "blog",
              "feed",
              "posts",
              "comments",
              "replies",
              "payout"
            ],
            "type": "string",
            "description": "Which listing of the account's activity to fetch.",
            "default": "blog"
          },
          "postUrl": {
            "title": "Post URL (mode=byPost / postComments)",
            "type": "string",
            "description": "Full Hive post URL, or `author/permlink` shorthand. E.g. `https://hive.blog/@author/permlink` or `author/permlink`.",
            "default": ""
          },
          "postUrls": {
            "title": "Post URLs (mode=byPosts)",
            "type": "array",
            "description": "List of Hive post URLs or `author/permlink` shorthands to fetch.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "communityQuery": {
            "title": "Community search text (mode=communities)",
            "type": "string",
            "description": "Free-text filter over community titles/about text. Leave blank to browse all communities.",
            "default": ""
          },
          "communitySort": {
            "title": "Sort (mode=communities)",
            "enum": [
              "rank",
              "new",
              "subs"
            ],
            "type": "string",
            "description": "Ordering for the communities directory.",
            "default": "rank"
          },
          "minPayoutValue": {
            "title": "Min payout value (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Drop posts with a pending/total payout below this USD value (mode=posts/byAccount/byPost/byPosts)."
          },
          "minVotes": {
            "title": "Min vote count",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop posts with fewer total votes than this."
          },
          "keyword": {
            "title": "Must contain keyword",
            "type": "string",
            "description": "Case-insensitive substring match against the post title and body."
          },
          "requiredTag": {
            "title": "Must include tag",
            "type": "string",
            "description": "Drop posts that don't include this tag in their tag list (e.g. `photography`)."
          },
          "onlyActivePayout": {
            "title": "Only posts still within payout window",
            "type": "boolean",
            "description": "Exclude posts whose 7-day payout window has already closed (is_paidout=true).",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}