{
  "openapi": "3.0.1",
  "info": {
    "title": "LinkedIn Content Strategist",
    "description": "Learn from top LinkedIn creators, get personalized content strategy for YOUR niche. ~2.5 min total (Scrape ~50s, Analyze ~40s, Strategy ~60s, Images ~3s). Get hooks, posts, calendar & AI images.",
    "version": "0.1",
    "x-build-id": "KHvUPUXgoDvextsqb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/franciscoandsam~linkedin-content-strategist/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-franciscoandsam-linkedin-content-strategist",
        "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/franciscoandsam~linkedin-content-strategist/runs": {
      "post": {
        "operationId": "runs-sync-franciscoandsam-linkedin-content-strategist",
        "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/franciscoandsam~linkedin-content-strategist/run-sync": {
      "post": {
        "operationId": "run-sync-franciscoandsam-linkedin-content-strategist",
        "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": [
          "linkedin_profile_url",
          "li_at_cookie"
        ],
        "properties": {
          "linkedin_profile_url": {
            "title": "Creator Profile to Analyze",
            "type": "string",
            "description": "Full LinkedIn profile URL of a creator you want to learn from. Example: https://www.linkedin.com/in/justinwelsh - Copy the URL from your browser when viewing their profile. The creator should have public posts."
          },
          "li_at_cookie": {
            "title": "LinkedIn Cookie (li_at)",
            "type": "string",
            "description": "Your LinkedIn authentication cookie. HOW TO GET IT (Chrome): 1) Go to linkedin.com and log in, 2) Press F12 to open DevTools, 3) Look for 'Application' tab in the top bar - if you don't see it, click the >> arrows to reveal hidden tabs, 4) In the left sidebar click 'Cookies' then 'https://www.linkedin.com', 5) Find 'li_at' in the Name column, 6) Double-click its Value and copy it (Ctrl+C). The value is ~200 characters starting with AQ. Never shared or stored."
          },
          "your_niche": {
            "title": "Your Niche/Industry",
            "type": "string",
            "description": "What's YOUR content focus? (e.g., 'B2B SaaS marketing', 'cybersecurity', 'career coaching')",
            "default": "business and entrepreneurship"
          },
          "target_audience": {
            "title": "Your Target Audience",
            "type": "string",
            "description": "Who are you trying to reach? (e.g., 'startup founders', 'HR managers', 'software engineers')",
            "default": "professionals and entrepreneurs"
          },
          "content_goal": {
            "title": "Your Content Goal",
            "enum": [
              "grow followers and visibility",
              "generate inbound leads",
              "build thought leadership",
              "drive traffic to website/product",
              "recruit talent",
              "network and partnerships"
            ],
            "type": "string",
            "description": "What do you want to achieve with your content?",
            "default": "grow followers and visibility"
          },
          "tone": {
            "title": "Your Desired Tone",
            "enum": [
              "professional but conversational",
              "bold and provocative",
              "educational and informative",
              "inspirational and motivational",
              "casual and friendly",
              "data-driven and analytical"
            ],
            "type": "string",
            "description": "How do you want to sound?",
            "default": "professional but conversational"
          },
          "max_posts_to_analyze": {
            "title": "Posts to Analyze",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the creator's posts to analyze (more = better patterns)",
            "default": 50
          },
          "num_hooks_to_generate": {
            "title": "Hooks to Generate",
            "minimum": 3,
            "maximum": 15,
            "type": "integer",
            "description": "Number of ready-to-use opening hooks",
            "default": 7
          },
          "num_posts_to_generate": {
            "title": "Full Posts to Generate",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Number of complete post drafts to create",
            "default": 3
          },
          "num_images_to_generate": {
            "title": "Images to Generate",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Number of AI post graphics/carousel covers",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}