{
  "openapi": "3.0.1",
  "info": {
    "title": "Instagram Paid Partnership Scraper: Brand Collabs",
    "description": "Instagram paid partnership scraper, no login: every post Meta's branded content library labels Paid partnership for any brand or creator, back to August 2023. Each row: creator, brand partners, reel, post or story, date, link; add captions, likes, reel plays, profiles. Pay per post, CSV or API.",
    "version": "0.1",
    "x-build-id": "JRYzjLfMdsW0cB227"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~instagram-paid-partnership-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-instagram-paid-partnership-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/automation_craft~instagram-paid-partnership-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-instagram-paid-partnership-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/automation_craft~instagram-paid-partnership-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-instagram-paid-partnership-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": "Instagram brands or creators",
            "type": "array",
            "description": "One per line: an Instagram brand or creator name as written on Instagram (Sephora), an @handle (@sephora), a profile URL (https://www.instagram.com/sephora/), a branded content library URL with target=instagram, or an account id. A name is read only when exactly one Instagram account in the library's search box has that exact handle or name; otherwise you get a free row with the accounts it suggests. Facebook links are skipped free. Up to 200 per run; accounts without partnerships in the days asked are read free, about five per run (the README's \"Accounts without partnerships\").",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "From date",
            "type": "string",
            "description": "The first day to include: YYYY-MM-DD, today, yesterday, or a relative date such as 30 days, 6 months or 1 year. Days are the library's own, in US Pacific time. Left empty: 2023-08-17, the first day the library holds."
          },
          "endDate": {
            "title": "To date",
            "type": "string",
            "description": "The last day to include (inclusive): YYYY-MM-DD, today, yesterday or a relative date. Left empty: up to today."
          },
          "maxPartnershipsPerAccount": {
            "title": "Most partnerships per account",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Partnership rows per account, newest first. Left empty: 1,000."
          },
          "maxPartnerships": {
            "title": "Most partnerships per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Partnership rows for the whole run. Left empty: 10,000."
          },
          "postDetails": {
            "title": "Post details",
            "type": "boolean",
            "description": "Read each delivered post or reel from Instagram's own post data and add its caption, like count, comment count, exact posting time, media kind and coauthors, plus the interaction rate (likes and comments against the followers) on posts the searched account made itself. Charged per row read (the Post detail event); stories and rows without an Instagram post link are not read and never charged for it."
          },
          "reelPlays": {
            "title": "Reel play counts",
            "type": "boolean",
            "description": "Add each reel's play count as Instagram shows it, read from the reel's own sound page or its owner's Reels tab; a reel whose creator hid the counts under it still gets its play count, marked countsHiddenByCreator. Charged per play count delivered (the Reel play count event). Photos, carousels, stories and reels neither page lists get playCount null with the reason in playCountStatus, free.",
            "default": false
          },
          "profileDetails": {
            "title": "Profile details",
            "type": "boolean",
            "description": "Add one profile row per searched account with paid partnerships in the days asked (the accounts that get an account row), read after all your inputs: full name, biography, its website and bio links (with Include personal data on), category, account type, verified, private, followers, following, reel count, and where Instagram shows them (not on a private profile or one with embedding switched off) the post count and the median interaction rate of the newest posts its profile embed lists (up to six, pinned posts left out) without the ones Instagram marks as paid partnerships, the accounts on the other side of its partnerships, and, with Post details on, the median interaction rate of its own partnership posts and the ratio of the two. Charged once per profile row (the Profile detail event); profiles not shown logged out or not read in full are free and named in a status row.",
            "default": false
          },
          "includePersonalData": {
            "title": "Include personal data",
            "type": "boolean",
            "description": "Off by default. On: profile rows carry the profile's website and the address of every bio link. Off: those addresses are left out as a whole (`externalUrl` null, each bio link with its title and `url` null), since a profile's outside links often reach the person directly (a messenger, a chat invite, a phone, a mail address, a booking page); every other field is the same. You are responsible for a lawful use of personal data, GDPR included.",
            "default": 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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}