{
  "openapi": "3.1.0",
  "info": {
    "title": "ProfileHunt API: public LinkedIn profile and company data",
    "version": "1.0.0",
    "description": "Turns a public LinkedIn profile or company page URL into JSON. Returns the public view only. 1 credit per profile or company found; gone, unavailable and failed lookups are free. Docs: https://profilehunt.dev/docs. Independent service, not affiliated with, endorsed by, or sponsored by LinkedIn Corporation. LinkedIn is a registered trademark of LinkedIn Corporation.",
    "contact": {
      "email": "support@profilehunt.dev",
      "url": "https://profilehunt.dev/support"
    },
    "termsOfService": "https://profilehunt.dev/terms"
  },
  "servers": [
    {
      "url": "https://api.profilehunt.dev"
    }
  ],
  "security": [
    {
      "bearer": []
    },
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/v1/profile": {
      "post": {
        "operationId": "getProfile",
        "summary": "Fetch one public LinkedIn profile",
        "description": "Waits while the profile is read, usually a few seconds. 60 requests a minute per key.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "A linkedin.com/in/ profile URL.",
                    "examples": [
                      "https://www.linkedin.com/in/williamhgates"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ok uses 1 credit; gone and unavailable are free and have profile null.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "insufficient_credits"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_url"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "rate_limited"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "upstream_failed"
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "temporarily_unavailable"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "504": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "timeout"
                }
              }
            }
          }
        }
      }
    },
    "/v1/profile/batches": {
      "post": {
        "operationId": "createBatch",
        "summary": "Queue up to 100 profile URLs",
        "description": "Holds one credit per URL to be fetched; found profiles keep theirs, the rest are refunded. Counts as one request against the rate limit.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "urls"
                ],
                "properties": {
                  "urls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 100,
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Batch created; every result starts as pending.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Batch"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "insufficient_credits"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_batch"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "rate_limited"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "temporarily_unavailable"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/profile/batches/{id}": {
      "get": {
        "operationId": "getBatch",
        "summary": "A batch's progress and results",
        "description": "Poll until status is completed. Not counted against the rate limit. Batches can be read for 30 days.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The batch.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Batch"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "not_found"
                }
              }
            }
          }
        }
      }
    },
    "/v1/company": {
      "post": {
        "operationId": "getCompany",
        "summary": "Fetch one public LinkedIn company",
        "description": "Waits while the company is read, usually a few seconds. 60 requests a minute per key.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "A linkedin.com/company/ company URL.",
                    "examples": [
                      "https://www.linkedin.com/company/hubspot"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ok uses 1 credit; gone and unavailable are free and have company null.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "insufficient_credits"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_url"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "rate_limited"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "upstream_failed"
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "temporarily_unavailable"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "504": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "timeout"
                }
              }
            }
          }
        }
      }
    },
    "/v1/company/batches": {
      "post": {
        "operationId": "createCompanyBatch",
        "summary": "Queue up to 100 company URLs",
        "description": "Holds one credit per URL to be fetched; found companies keep theirs, the rest are refunded. Counts as one request against the rate limit.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "urls"
                ],
                "properties": {
                  "urls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 100,
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Batch created; every result starts as pending.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyBatch"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "insufficient_credits"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_batch"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "rate_limited"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "temporarily_unavailable"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/company/batches/{id}": {
      "get": {
        "operationId": "getCompanyBatch",
        "summary": "A batch's progress and results",
        "description": "Poll until status is completed. Not counted against the rate limit. Batches can be read for 30 days.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The batch.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyBatch"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "not_found"
                }
              }
            }
          }
        }
      }
    },
    "/v1/post": {
      "post": {
        "operationId": "getPost",
        "summary": "Fetch one public LinkedIn post",
        "description": "Returns the content of a single post. Fetched through Webshare only. Waits while the post is read, usually a few seconds. 60 requests a minute per key.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "A linkedin.com/posts/ post URL, as 'Copy link to post' gives it. Short lnkd.in links and /feed/update/ URLs are not accepted.",
                    "examples": [
                      "https://www.linkedin.com/posts/vikas-singh-546643206_a-few-years-ago-learning-ai-felt-like-an-share-7527053936265064449-YZh7"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ok uses 1 credit; gone and unavailable are free and have post null.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostResponse"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "insufficient_credits"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_url"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "rate_limited"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "upstream_failed"
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "temporarily_unavailable"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "504": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "timeout"
                }
              }
            }
          }
        }
      }
    },
    "/v1/post/batches": {
      "post": {
        "operationId": "createPostBatch",
        "summary": "Queue up to 100 post URLs",
        "description": "Holds one credit per URL to be fetched; found posts keep theirs, the rest are refunded. Fetched through Webshare only. Counts as one request against the rate limit.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "urls"
                ],
                "properties": {
                  "urls": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 100,
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Batch created; every result starts as pending.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostBatch"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "insufficient_credits"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "invalid_batch"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "rate_limited"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "temporarily_unavailable"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    },
    "/v1/post/batches/{id}": {
      "get": {
        "operationId": "getPostBatch",
        "summary": "A batch's progress and results",
        "description": "Poll until status is completed. Not counted against the rate limit. Batches can be read for 30 days.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The batch.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostBatch"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "unauthorized"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "error": "not_found"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "ProfileResponse": {
        "type": "object",
        "required": [
          "status",
          "profile"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "gone",
              "unavailable"
            ]
          },
          "profile": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Profile"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "Batch": {
        "type": "object",
        "required": [
          "id",
          "status",
          "created_at",
          "total",
          "credits_used",
          "counts",
          "results"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "completed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "total": {
            "type": "integer"
          },
          "credits_used": {
            "type": "integer"
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "url",
                "status",
                "profile"
              ],
              "properties": {
                "url": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "gone",
                    "unavailable",
                    "failed",
                    "pending",
                    "invalid_url",
                    "duplicate"
                  ]
                },
                "profile": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Profile"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "Profile": {
        "type": "object",
        "required": [
          "public_id",
          "profile_url",
          "full_name",
          "first_name",
          "last_name",
          "photo_url",
          "headline",
          "about",
          "location",
          "country",
          "experience",
          "education",
          "languages",
          "followers",
          "connections",
          "creator",
          "badges",
          "last_post_at",
          "recent_posts",
          "recent_articles",
          "last_reaction_at",
          "recent_reactions",
          "last_comment_at",
          "recent_comments",
          "last_active_at",
          "scraped_at"
        ],
        "properties": {
          "public_id": {
            "type": "string"
          },
          "profile_url": {
            "type": "string"
          },
          "full_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "first_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "last_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "photo_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "headline": {
            "type": [
              "string",
              "null"
            ]
          },
          "about": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ],
            "description": "Two-letter country code."
          },
          "experience": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Position"
            }
          },
          "education": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/School"
            }
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "followers": {
            "type": [
              "integer",
              "null"
            ]
          },
          "connections": {
            "type": [
              "integer",
              "null"
            ],
            "description": "500 means 500 or more."
          },
          "creator": {
            "type": "boolean"
          },
          "badges": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "last_post_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "recent_posts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Post"
            }
          },
          "recent_articles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Article"
            }
          },
          "last_reaction_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "recent_reactions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reaction"
            }
          },
          "last_comment_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Approximate: LinkedIn shows only a relative age for comments."
          },
          "recent_comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Comment"
            }
          },
          "last_active_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "The newest of last_post_at, last_reaction_at and last_comment_at."
          },
          "scraped_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "description": "The public view of a LinkedIn profile. Every key is always present."
      },
      "Position": {
        "type": "object",
        "required": [
          "company",
          "company_url",
          "title",
          "location",
          "description",
          "start_date",
          "end_date"
        ],
        "properties": {
          "company": {
            "type": "string"
          },
          "company_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Current roles only."
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "start_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "\"2014\" or \"2014-02\"."
          },
          "end_date": {
            "type": [
              "string",
              "null"
            ],
            "description": "null for a current role."
          }
        }
      },
      "School": {
        "type": "object",
        "required": [
          "school",
          "school_url",
          "start_date",
          "end_date"
        ],
        "properties": {
          "school": {
            "type": "string"
          },
          "school_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "start_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "end_date": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Post": {
        "type": "object",
        "required": [
          "url",
          "posted_at",
          "text",
          "likes",
          "author"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "posted_at": {
            "type": "string",
            "format": "date-time"
          },
          "text": {
            "type": [
              "string",
              "null"
            ]
          },
          "likes": {
            "type": [
              "integer",
              "null"
            ]
          },
          "author": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/PostAuthor"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "PostAuthor": {
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "properties": {
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Article": {
        "type": "object",
        "required": [
          "url",
          "headline",
          "image_url",
          "published_at",
          "likes"
        ],
        "properties": {
          "url": {
            "type": "string"
          },
          "headline": {
            "type": [
              "string",
              "null"
            ]
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "published_at": {
            "type": "string",
            "format": "date-time"
          },
          "likes": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      },
      "Reaction": {
        "type": "object",
        "required": [
          "verb",
          "reacted_at",
          "post_url",
          "post_author",
          "post_at"
        ],
        "properties": {
          "verb": {
            "type": "string"
          },
          "reacted_at": {
            "type": "string",
            "format": "date-time"
          },
          "post_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "post_author": {
            "type": [
              "string",
              "null"
            ]
          },
          "post_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "Comment": {
        "type": "object",
        "required": [
          "verb",
          "text",
          "age",
          "commented_at",
          "post_url",
          "post_author",
          "post_at"
        ],
        "properties": {
          "verb": {
            "type": "string"
          },
          "text": {
            "type": [
              "string",
              "null"
            ]
          },
          "age": {
            "type": "string"
          },
          "commented_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "post_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "post_author": {
            "type": [
              "string",
              "null"
            ]
          },
          "post_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "CompanyResponse": {
        "type": "object",
        "required": [
          "status",
          "company"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "gone",
              "unavailable"
            ]
          },
          "company": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Company"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "CompanyBatch": {
        "type": "object",
        "required": [
          "id",
          "status",
          "created_at",
          "total",
          "credits_used",
          "counts",
          "results"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "completed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "total": {
            "type": "integer"
          },
          "credits_used": {
            "type": "integer"
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "url",
                "status",
                "company"
              ],
              "properties": {
                "url": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "gone",
                    "unavailable",
                    "failed",
                    "pending",
                    "invalid_url",
                    "duplicate"
                  ]
                },
                "company": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Company"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "PostResponse": {
        "type": "object",
        "required": [
          "status",
          "post"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "gone",
              "unavailable"
            ]
          },
          "post": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/Post"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "PostBatch": {
        "type": "object",
        "required": [
          "id",
          "status",
          "created_at",
          "total",
          "credits_used",
          "counts",
          "results"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "processing",
              "completed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "total": {
            "type": "integer"
          },
          "credits_used": {
            "type": "integer"
          },
          "counts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer"
            }
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "url",
                "status",
                "post"
              ],
              "properties": {
                "url": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ok",
                    "gone",
                    "unavailable",
                    "failed",
                    "pending",
                    "invalid_url",
                    "duplicate"
                  ]
                },
                "post": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Post"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "PageRef": {
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "Company": {
        "type": "object",
        "required": [
          "public_id",
          "company_url",
          "company_id",
          "name",
          "tagline",
          "description",
          "website",
          "industry",
          "company_size",
          "employees_on_linkedin",
          "headquarters",
          "country",
          "company_type",
          "founded",
          "specialties",
          "followers",
          "logo_url",
          "cover_url",
          "locations",
          "affiliated_pages",
          "similar_pages",
          "last_post_at",
          "recent_posts",
          "scraped_at"
        ],
        "properties": {
          "public_id": {
            "type": "string"
          },
          "company_url": {
            "type": "string"
          },
          "company_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "tagline": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "industry": {
            "type": [
              "string",
              "null"
            ]
          },
          "company_size": {
            "type": [
              "string",
              "null"
            ]
          },
          "employees_on_linkedin": {
            "type": [
              "integer",
              "null"
            ]
          },
          "headquarters": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          },
          "company_type": {
            "type": [
              "string",
              "null"
            ]
          },
          "founded": {
            "type": [
              "string",
              "null"
            ]
          },
          "specialties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "followers": {
            "type": [
              "integer",
              "null"
            ]
          },
          "logo_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "cover_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "affiliated_pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PageRef"
            }
          },
          "similar_pages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PageRef"
            }
          },
          "last_post_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "recent_posts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Post"
            }
          },
          "scraped_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}
