{
  "openapi": "3.0.1",
  "info": {
    "title": "Mastodon Federation Intelligence Pro — 2026 Stealth Edition",
    "description": "**Status: Active and Verified (March 19, 2026)** — The #1 academic research platform for studying decentralized social networks. University budget-friendly subscription provides unlimited extraction across 1000+ Mastodon instances.",
    "version": "0.0",
    "x-build-id": "cmD7Gn8Kynt5J1Q1m"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/red.cars~mastodon-federation-intelligence-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-red.cars-mastodon-federation-intelligence-pro",
        "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/red.cars~mastodon-federation-intelligence-pro/runs": {
      "post": {
        "operationId": "runs-sync-red.cars-mastodon-federation-intelligence-pro",
        "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/red.cars~mastodon-federation-intelligence-pro/run-sync": {
      "post": {
        "operationId": "run-sync-red.cars-mastodon-federation-intelligence-pro",
        "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": [
          "instances",
          "extractionMode"
        ],
        "properties": {
          "instances": {
            "title": "Mastodon Instances to Monitor",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "List of Mastodon instance domains to extract posts from. Default includes popular academic and general instances for comprehensive federation coverage.",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": [
              "mastodon.social",
              "scholar.social",
              "mastodon.world"
            ]
          },
          "extractionMode": {
            "title": "Analysis Mode",
            "enum": [
              "federation_analysis",
              "brand_monitoring",
              "academic_research",
              "community_intelligence"
            ],
            "type": "string",
            "description": "Type of intelligence analysis to perform on the extracted federation data",
            "default": "federation_analysis"
          },
          "searchTerms": {
            "title": "Search Terms (Optional)",
            "maxItems": 10,
            "type": "array",
            "description": "Keywords to search for in posts. Leave empty to analyze all public posts from specified instances.",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": []
          },
          "usernames": {
            "title": "Specific Usernames (Optional)",
            "maxItems": 20,
            "type": "array",
            "description": "Specific usernames to monitor across instances. Format: @username or username",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": []
          },
          "hashtags": {
            "title": "Hashtags to Track (Optional)",
            "maxItems": 15,
            "type": "array",
            "description": "Hashtags to monitor for trend analysis and community engagement. Include # or provide without prefix.",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": []
          },
          "timeRange": {
            "title": "Time Range",
            "enum": [
              "24h",
              "7d",
              "30d",
              "all"
            ],
            "type": "string",
            "description": "Time period for data collection and analysis",
            "default": "24h"
          },
          "maxPosts": {
            "title": "Maximum Posts to Analyze",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Limit the number of posts to extract for faster processing. Conservative default of 10 ensures <5min completion for automated tests. Increase for production analysis.",
            "default": 10
          },
          "includeReplies": {
            "title": "Include Reply Posts",
            "type": "boolean",
            "description": "Include reply posts in the analysis for complete conversation tracking",
            "default": false
          },
          "includeBoosts": {
            "title": "Include Boost/Reblog Posts",
            "type": "boolean",
            "description": "Include boosted/reblogged posts to track content amplification patterns",
            "default": false
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "json",
              "csv",
              "xlsx"
            ],
            "type": "string",
            "description": "Data export format for analysis and integration with other tools",
            "default": "json"
          },
          "proxyType": {
            "title": "Proxy Reliability Level",
            "enum": [
              "DATACENTER",
              "RESIDENTIAL"
            ],
            "type": "string",
            "description": "Choose your preferred balance of cost vs reliability. You control proxy costs from your Apify plan.",
            "default": "DATACENTER"
          },
          "debugMode": {
            "title": "Enable Debug/Health Check Mode",
            "type": "boolean",
            "description": "Bypasses live scraping to perform a high-speed self-test for system health monitoring. Always prefilled to true for automated compliance checks.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}