{
  "openapi": "3.0.1",
  "info": {
    "title": "W Social Scraper",
    "description": "Read any account on W Social, the European AT-Protocol network: whether the network verified them as a human and how, their posts with every engagement count, follower movement, hashtags, follow graph and livestreams — plus alerts when a verification changes or an account goes quiet.",
    "version": "0.1",
    "x-build-id": "mKlw3dpVcYpzBaBIS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sashaebashu~wsocial-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sashaebashu-wsocial-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/sashaebashu~wsocial-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sashaebashu-wsocial-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/sashaebashu~wsocial-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sashaebashu-wsocial-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": {
          "accounts": {
            "title": "Accounts",
            "type": "array",
            "description": "W Social handles, DIDs or profile URLs. Paste `ingmar.wsocial.eu`, `https://wsocial.eu/profile/anna.wsocial.eu`, or a `did:plc:...`. Institutional accounts use their own domain, like `vonderleyen.ec.europa.eu`.",
            "items": {
              "type": "string"
            }
          },
          "posts": {
            "title": "Post links",
            "type": "array",
            "description": "Paste links to individual posts to get their metrics — likes, replies, reposts, quotes, bookmarks, the author and what the post replies to. `https://wsocial.eu/profile/anna.wsocial.eu/post/3mtnzyolvcs2i` or an `at://` URI both work. Can be used on its own or alongside accounts.",
            "items": {
              "type": "string"
            }
          },
          "includeReplies": {
            "title": "Include the reply thread",
            "type": "boolean",
            "description": "For each post link, also read the replies underneath it — author, text, date and their own engagement, down through nested replies.",
            "default": false
          },
          "maxRepliesPerPost": {
            "title": "Replies per post",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many replies to read per post, across the whole thread.",
            "default": 50
          },
          "discoverAccounts": {
            "title": "Discover accounts",
            "type": "boolean",
            "description": "Read the whole network instead of naming accounts yourself. The server publishes its own account list, so this walks it and keeps whoever matches the filters below.",
            "default": false
          },
          "maxAccountsToScan": {
            "title": "Accounts to scan",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "How many accounts discovery may check. Checking one costs a single request, and most will not match your filters — so scan far more than you expect to keep.",
            "default": 2000
          },
          "minFollowers": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only accounts with at least this many followers. Checked on the profile, before any posts are read.",
            "default": 0
          },
          "minPosts": {
            "title": "Minimum posts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only accounts that have published at least this many posts.",
            "default": 0
          },
          "accountTypes": {
            "title": "Account types",
            "type": "array",
            "description": "Keep only these types: `human`, `unverified`, `organization`, `bot`, `service`. Leave empty for any. This is the network's own classification, not a guess.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "verifiedOnly": {
            "title": "Only verified accounts",
            "type": "boolean",
            "description": "Keep only accounts that carry a verification.",
            "default": false
          },
          "activeWithinDays": {
            "title": "Posted within (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep only accounts that posted this recently. Answered from the first page of the feed, so an account that fails it costs one request rather than a full walk. 0 turns it off.",
            "default": 0
          },
          "includePosts": {
            "title": "Read posts",
            "type": "boolean",
            "description": "Reads the account's feed for engagement, cadence, hashtags and languages. This is what the averages and the activity windows are built from.",
            "default": true
          },
          "maxPostsPerAccount": {
            "title": "Posts per account",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How far back to read, 100 per request. Set it high enough to cover the period you care about — the feed reaches back to the account's first post.",
            "default": 100
          },
          "includePostList": {
            "title": "Include the individual posts",
            "type": "boolean",
            "description": "Adds every post read to the output — text, link, timestamp, each engagement count, hashtags and outbound links. Off by default because it makes rows large.",
            "default": false
          },
          "includeFollows": {
            "title": "Include the follow graph",
            "type": "boolean",
            "description": "Reads who this account follows, straight from its repository, and resolves each one into a real handle with its follower count and verification. 100 follows per request plus one lookup per 25.",
            "default": false
          },
          "maxFollowsPerAccount": {
            "title": "Follows per account",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How many follows to read per account.",
            "default": 500
          },
          "includeLivestreams": {
            "title": "Include livestreams",
            "type": "boolean",
            "description": "Reads the account's livestream records — a W Social feature that standard AT-Protocol clients do not carry. One extra request per account.",
            "default": false
          },
          "dormantAfterDays": {
            "title": "Treat as dormant after (days without a post)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Days since the last post before an account counts as dormant. Drives `isDormant` and the `went_quiet` alert.",
            "default": 30
          },
          "maxItems": {
            "title": "Maximum accounts",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many results.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "4 is comfortable. Raising it is safe when reading many accounts.",
            "default": 4
          },
          "monitorMode": {
            "title": "Monitor mode",
            "type": "boolean",
            "description": "Compare against the last run and label what changed: new posts, a verification gained or lost, a handle change, follower movement, an account going quiet, being suspended, deactivated or disappearing. History is kept per account, so editing the list does not reset it.",
            "default": false
          },
          "onlyChanges": {
            "title": "Output only changed accounts",
            "type": "boolean",
            "description": "With monitor mode on, skip accounts where nothing moved — an empty run then means nothing needs your attention.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional and off by default. These endpoints answer without a proxy; switch one on only if you get errors.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}