{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ploid/json-schema/ploid-linked-in-profile-response-schema.json",
  "title": "LinkedInProfileResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ploid-linked-in-api-openapi.yml#/components/schemas/LinkedInProfileResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "$ref": "#/$defs/LinkedInProfile"
    },
    "meta": {
      "$ref": "#/$defs/PublicCreditsResponseMeta"
    }
  },
  "$defs": {
    "LinkedInProfile": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "socialId",
        "publicIdentifier",
        "profileUrl",
        "firstName",
        "lastName",
        "fullName",
        "headline",
        "summary",
        "location",
        "countryCode",
        "industry",
        "connectionDegree",
        "followerCount",
        "connectionCount",
        "profilePictureUrl",
        "coverPictureUrl",
        "currentPosition",
        "positions",
        "education",
        "isOpenToWork",
        "isPremium"
      ],
      "properties": {
        "socialId": {
          "type": [
            "string",
            "null"
          ]
        },
        "publicIdentifier": {
          "type": [
            "string",
            "null"
          ]
        },
        "profileUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "fullName": {
          "type": "string"
        },
        "headline": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "industry": {
          "type": [
            "string",
            "null"
          ]
        },
        "connectionDegree": {
          "oneOf": [
            {
              "type": "integer",
              "enum": [
                1,
                2,
                3
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "followerCount": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "connectionCount": {
          "type": [
            "number",
            "null"
          ],
          "minimum": 0
        },
        "profilePictureUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "coverPictureUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "currentPosition": {
          "oneOf": [
            {
              "$ref": "#/$defs/LinkedInProfilePosition"
            },
            {
              "type": "null"
            }
          ]
        },
        "positions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LinkedInProfilePosition"
          }
        },
        "education": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LinkedInProfileEducation"
          }
        },
        "isOpenToWork": {
          "type": "boolean"
        },
        "isPremium": {
          "type": "boolean"
        }
      }
    },
    "LinkedInProfileEducation": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "school",
        "degree",
        "field",
        "startsAt",
        "endsAt"
      ],
      "properties": {
        "school": {
          "type": [
            "string",
            "null"
          ]
        },
        "degree": {
          "type": [
            "string",
            "null"
          ]
        },
        "field": {
          "type": [
            "string",
            "null"
          ]
        },
        "startsAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "endsAt": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "LinkedInProfilePosition": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "title",
        "companyName",
        "companyUrl",
        "location",
        "description",
        "startsAt",
        "endsAt",
        "current"
      ],
      "properties": {
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "companyName": {
          "type": [
            "string",
            "null"
          ]
        },
        "companyUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "startsAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "endsAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "current": {
          "type": "boolean"
        }
      }
    },
    "PublicCreditsResponseMeta": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "request_id",
        "credits_charged"
      ],
      "properties": {
        "request_id": {
          "type": "string"
        },
        "credits_charged": {
          "type": "number",
          "minimum": 0
        },
        "remaining_credits": {
          "type": "number",
          "minimum": 0
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    }
  }
}