All URIs are relative to https://scrapebadger.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| linkedinGetACompanySJobPostings() | GET /v1/linkedin/companies/{company_id}/jobs | Get a company's job postings |
| linkedinGetACourse() | GET /v1/linkedin/learning/{course_slug} | Get a course |
| linkedinGetAPublicArticle() | GET /v1/linkedin/articles/{article_slug} | Get a public article |
| linkedinGetAPublicPost() | GET /v1/linkedin/posts/{post_slug} | Get a public post |
| linkedinGetCompany() | GET /v1/linkedin/companies/{universal_name} | Get company |
| linkedinGetJobDetail() | GET /v1/linkedin/jobs/{job_id} | Get job detail |
| linkedinGetPublicProfile() | GET /v1/linkedin/profiles/{public_id} | Get public profile |
| linkedinGetSchool() | GET /v1/linkedin/schools/{universal_name} | Get school |
| linkedinLinkedinScraperHealthCheck() | GET /v1/linkedin/health | LinkedIn scraper health check |
| linkedinLinkedinScraperHealthCheckHead() | HEAD /v1/linkedin/health | LinkedIn scraper health check |
| linkedinSearchLinkedinJobs() | GET /v1/linkedin/jobs/search | Search LinkedIn jobs |
| linkedinSuggestLocationGeoIds() | GET /v1/linkedin/geo/suggest | Suggest location geo ids |
linkedinGetACompanySJobPostings($company_id, $start, $country): mixedGet a company's job postings
Public job postings for a company (numeric company id from the company endpoint).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$company_id = 'company_id_example'; // string
$start = 0; // int | Pagination offset (0, 25, 50, ...)
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetACompanySJobPostings($company_id, $start, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetACompanySJobPostings: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| company_id | string | ||
| start | int | Pagination offset (0, 25, 50, ...) | [optional] [default to 0] |
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinGetACourse($course_slug, $country): mixedGet a course
A public LinkedIn Learning course — provider, workload, instructors, rating.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$course_slug = 'course_slug_example'; // string
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetACourse($course_slug, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetACourse: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| course_slug | string | ||
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinGetAPublicArticle($article_slug, $country): mixedGet a public article
A public Pulse article — title, body, author, reactions (JSON-LD).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$article_slug = 'article_slug_example'; // string
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetAPublicArticle($article_slug, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetAPublicArticle: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| article_slug | string | ||
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinGetAPublicPost($post_slug, $country): mixedGet a public post
A public activity share — text, author, reactions, comments (JSON-LD).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$post_slug = 'post_slug_example'; // string
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetAPublicPost($post_slug, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetAPublicPost: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| post_slug | string | ||
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinGetCompany($universal_name, $country): mixedGet company
Public company page — industry, size, HQ, followers, specialties (JSON-LD + SSR).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$universal_name = 'universal_name_example'; // string
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetCompany($universal_name, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetCompany: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| universal_name | string | ||
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinGetJobDetail($job_id, $country): mixedGet job detail
Full detail for one job posting (guest API, no login).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$job_id = 'job_id_example'; // string
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetJobDetail($job_id, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetJobDetail: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| job_id | string | ||
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinGetPublicProfile($public_id, $country): mixedGet public profile
Public profile by vanity id (the /in/{public_id} slug) — name, headline, location, about, experience, education (public JSON-LD + SSR subset).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$public_id = 'public_id_example'; // string
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetPublicProfile($public_id, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetPublicProfile: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| public_id | string | ||
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinGetSchool($universal_name, $country): mixedGet school
Public school page — name, description, website, follower/alumni counts.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$universal_name = 'universal_name_example'; // string
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinGetSchool($universal_name, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinGetSchool: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| universal_name | string | ||
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinLinkedinScraperHealthCheck(): mixedLinkedIn scraper health check
Check health of the LinkedIn scraper service (accepts HEAD).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->linkedinLinkedinScraperHealthCheck();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinLinkedinScraperHealthCheck: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinLinkedinScraperHealthCheckHead(): mixedLinkedIn scraper health check
Check health of the LinkedIn scraper service (accepts HEAD).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->linkedinLinkedinScraperHealthCheckHead();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinLinkedinScraperHealthCheckHead: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinSearchLinkedinJobs($keywords, $location, $geo_id, $company_id, $date_posted, $experience, $job_type, $workplace, $sort, $start, $country): mixedSearch LinkedIn jobs
Search public LinkedIn job postings (guest API, no login).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$keywords = 'keywords_example'; // string | Job title / keywords
$location = 'location_example'; // string | Location text, e.g. 'New York'
$geo_id = 'geo_id_example'; // string | LinkedIn numeric geo id (overrides location)
$company_id = 'company_id_example'; // string | Restrict to a company (numeric id)
$date_posted = 'date_posted_example'; // string | past_24h | past_week | past_month | any
$experience = 'experience_example'; // string | internship|entry|associate|mid_senior|director|executive (comma-separated)
$job_type = 'job_type_example'; // string | full_time|part_time|contract|temporary|internship|volunteer|other
$workplace = 'workplace_example'; // string | onsite|remote|hybrid (comma-separated)
$sort = 'sort_example'; // string | relevant | recent
$start = 0; // int | Pagination offset (0, 25, 50, ...)
$country = 'us'; // string | Residential proxy country
try {
$result = $apiInstance->linkedinSearchLinkedinJobs($keywords, $location, $geo_id, $company_id, $date_posted, $experience, $job_type, $workplace, $sort, $start, $country);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinSearchLinkedinJobs: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| keywords | string | Job title / keywords | [optional] |
| location | string | Location text, e.g. 'New York' | [optional] |
| geo_id | string | LinkedIn numeric geo id (overrides location) | [optional] |
| company_id | string | Restrict to a company (numeric id) | [optional] |
| date_posted | string | past_24h | past_week |
| experience | string | internship | entry |
| job_type | string | full_time | part_time |
| workplace | string | onsite | remote |
| sort | string | relevant | recent |
| start | int | Pagination offset (0, 25, 50, ...) | [optional] [default to 0] |
| country | string | Residential proxy country | [optional] [default to 'us'] |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
linkedinSuggestLocationGeoIds($query, $type): mixedSuggest location geo ids
Resolve a name to LinkedIn ids (job-search geo_id / company_id helper).
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: ApiKeyAuth
$config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKey('X-API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = ScrapeBadger\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-Key', 'Bearer');
$apiInstance = new ScrapeBadger\Api\LinkedInApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$query = 'query_example'; // string | Location text, e.g. 'London'
$type = 'geo'; // string | geo | company
try {
$result = $apiInstance->linkedinSuggestLocationGeoIds($query, $type);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LinkedInApi->linkedinSuggestLocationGeoIds: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| query | string | Location text, e.g. 'London' | |
| type | string | geo | company |
mixed
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]