{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Blog Syndication to Social Channels",
    "description": "Auto-syndicate blog posts with AI summaries. Supports Twitter, LinkedIn, Facebook, Instagram. GPT-4, Claude, Gemini BYOK. Zapier, Make, n8n, & webhooks",
    "version": "1.0",
    "x-build-id": "Kr6amMZX3x753qfsc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alizarin_refrigerator-owner~blog-syndication/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alizarin_refrigerator-owner-blog-syndication",
        "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/alizarin_refrigerator-owner~blog-syndication/runs": {
      "post": {
        "operationId": "runs-sync-alizarin_refrigerator-owner-blog-syndication",
        "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/alizarin_refrigerator-owner~blog-syndication/run-sync": {
      "post": {
        "operationId": "run-sync-alizarin_refrigerator-owner-blog-syndication",
        "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": {
          "blogUrl": {
            "title": "Blog URL",
            "type": "string",
            "description": "URL of the blog to monitor (we'll auto-detect RSS feed or sitemap.xml)"
          },
          "rssUrl": {
            "title": "RSS Feed URL (Optional)",
            "type": "string",
            "description": "Direct RSS feed URL if auto-detection fails"
          },
          "sitemapUrl": {
            "title": "Sitemap URL (Optional)",
            "type": "string",
            "description": "Sitemap URL to monitor for new posts (fallback if no RSS)"
          },
          "platforms": {
            "title": "Target Platforms",
            "uniqueItems": true,
            "type": "array",
            "description": "Which social platforms to syndicate to",
            "items": {
              "type": "string",
              "enum": [
                "twitter",
                "linkedin",
                "facebook",
                "instagram",
                "pinterest",
                "reddit",
                "gbp"
              ]
            },
            "default": [
              "twitter",
              "linkedin",
              "facebook"
            ]
          },
          "maxPostsPerRun": {
            "title": "Max Posts Per Run",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of new posts to process per run (prevents spam)",
            "default": 3
          },
          "delayBetweenPosts": {
            "title": "Delay Between Posts (minutes)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Wait time between posting to each platform (avoids looking like a bot)",
            "default": 5
          },
          "lookbackDays": {
            "title": "Lookback Days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Only process posts published within this many days",
            "default": 7
          },
          "contentStyle": {
            "title": "Content Style",
            "enum": [
              "professional",
              "casual",
              "witty",
              "informative",
              "promotional"
            ],
            "type": "string",
            "description": "Tone of AI-generated summaries",
            "default": "professional"
          },
          "includeEmojis": {
            "title": "Include Emojis",
            "type": "boolean",
            "description": "Add relevant emojis to social posts",
            "default": true
          },
          "includeHashtags": {
            "title": "Include Hashtags",
            "type": "boolean",
            "description": "Auto-generate relevant hashtags",
            "default": true
          },
          "maxHashtags": {
            "title": "Max Hashtags",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Maximum number of hashtags to include",
            "default": 5
          },
          "customHashtags": {
            "title": "Custom Hashtags",
            "type": "array",
            "description": "Always include these hashtags (one per line, without #)",
            "items": {
              "type": "string"
            }
          },
          "includeLinkInPost": {
            "title": "Include Link in Post",
            "type": "boolean",
            "description": "Append the blog post URL to social posts",
            "default": true
          },
          "useUtmTracking": {
            "title": "Add UTM Tracking",
            "type": "boolean",
            "description": "Add UTM parameters to track social traffic",
            "default": true
          },
          "utmSource": {
            "title": "UTM Source Override",
            "type": "string",
            "description": "Custom UTM source (default: platform name)"
          },
          "utmMedium": {
            "title": "UTM Medium",
            "type": "string",
            "description": "UTM medium parameter",
            "default": "social"
          },
          "utmCampaign": {
            "title": "UTM Campaign",
            "type": "string",
            "description": "UTM campaign parameter",
            "default": "blog-syndication"
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (BYOK)",
            "type": "string",
            "description": "Your OpenAI API key for GPT-4 summarization. Get one at https://platform.openai.com/api-keys"
          },
          "anthropicApiKey": {
            "title": "Anthropic API Key (BYOK)",
            "type": "string",
            "description": "Your Anthropic API key for Claude summarization. Get one at https://console.anthropic.com/"
          },
          "geminiApiKey": {
            "title": "Google Gemini API Key (BYOK)",
            "type": "string",
            "description": "Your Google AI API key for Gemini summarization. Get one at https://makersuite.google.com/app/apikey"
          },
          "preferredAiProvider": {
            "title": "Preferred AI Provider",
            "enum": [
              "openai",
              "anthropic",
              "gemini",
              "auto"
            ],
            "type": "string",
            "description": "Which AI to use for summarization (falls back to others if unavailable)",
            "default": "auto"
          },
          "twitterCredentials": {
            "title": "Twitter/X Credentials",
            "type": "string",
            "description": "JSON with apiKey, apiSecret, accessToken, accessTokenSecret"
          },
          "linkedinCredentials": {
            "title": "LinkedIn Credentials",
            "type": "string",
            "description": "JSON with accessToken and optionally organizationId for company pages"
          },
          "facebookCredentials": {
            "title": "Facebook Credentials",
            "type": "string",
            "description": "JSON with accessToken and pageId"
          },
          "instagramCredentials": {
            "title": "Instagram Credentials",
            "type": "string",
            "description": "JSON with accessToken and igUserId (requires Facebook Graph API)"
          },
          "pinterestCredentials": {
            "title": "Pinterest Credentials",
            "type": "string",
            "description": "JSON with accessToken and boardId"
          },
          "redditCredentials": {
            "title": "Reddit Credentials",
            "type": "string",
            "description": "JSON with clientId, clientSecret, username, password, and subreddit"
          },
          "gbpCredentials": {
            "title": "Google Business Profile Credentials",
            "type": "string",
            "description": "JSON with refreshToken and locationId"
          },
          "useExternalPosters": {
            "title": "Use External Poster Actors",
            "type": "boolean",
            "description": "Instead of direct API calls, trigger our existing poster actors (twitter-poster, linkedin-poster, etc.)",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Send results to a webhook (Zapier, Make, n8n). Useful for custom workflows."
          },
          "slackWebhookUrl": {
            "title": "Slack Webhook URL",
            "type": "string",
            "description": "Get notifications in Slack when posts are syndicated"
          },
          "dryRun": {
            "title": "Dry Run Mode",
            "type": "boolean",
            "description": "Generate summaries but don't actually post (for testing)",
            "default": false
          },
          "demoMode": {
            "title": "Demo Mode",
            "type": "boolean",
            "description": "Run with sample data to test without real scraping. Returns realistic sample output instantly.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for web requests"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}