Get School
curl --request GET \
--url https://api.scrapebadger.com/v1/linkedin/schools/{universal_name} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"school": {
"universal_name": "<string>",
"linkedin_url": "<string>",
"name": "<string>",
"description": "<string>",
"website": "<string>",
"follower_count": 123,
"student_alumni_count": 123,
"logo": "<string>",
"address": {}
}
}Companies & Schools
Get School
A public LinkedIn university/school page by its universal_name slug — about, website, follower and student/alumni counts.
GET
/
v1
/
linkedin
/
schools
/
{universal_name}
Get School
curl --request GET \
--url https://api.scrapebadger.com/v1/linkedin/schools/{universal_name} \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scrapebadger.com/v1/linkedin/schools/{universal_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"school": {
"universal_name": "<string>",
"linkedin_url": "<string>",
"name": "<string>",
"description": "<string>",
"website": "<string>",
"follower_count": 123,
"student_alumni_count": 123,
"logo": "<string>",
"address": {}
}
}Fetch a university or school’s public LinkedIn page by its
universal_name
slug (the /school/<slug> segment of the URL, e.g. stanford-university).
Returns the logged-out school card: about, website, follower count, and
student/alumni count.
Credits: 6
Authorization
Your ScrapeBadger API key.
Path Parameters
School slug, e.g.
stanford-university.Query Parameters
Country/locale for the request.
Response
Example
curl "https://api.scrapebadger.com/v1/linkedin/schools/stanford-university" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
"https://api.scrapebadger.com/v1/linkedin/schools/stanford-university",
{ headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const { school } = await res.json();
import requests
res = requests.get(
"https://api.scrapebadger.com/v1/linkedin/schools/stanford-university",
headers={"X-API-Key": "YOUR_API_KEY"},
)
school = res.json()["school"]
Response
{
"school": {
"universal_name": "stanford-university",
"linkedin_url": "https://www.linkedin.com/school/stanford-university",
"name": "Stanford University",
"description": "Stanford University is one of the world's leading teaching and research institutions.",
"website": "http://www.stanford.edu",
"follower_count": 3120000,
"student_alumni_count": 512000,
"logo": "https://media.licdn.com/dms/image/stanford-logo.png",
"address": {
"street": "450 Serra Mall",
"city": "Stanford",
"region": "California",
"postal_code": "94305",
"country": "US"
}
}
}
⌘I

