Company Profile Scraper
This API can be used for scraping any public company profile. You just have to pass the company profile ID to our API.
You have to send a GET request to https://api.scrapingdog.com/profile along with the below given parameters.
Parameters
Parameter
Description
api_key required
Your personal API key. Available on your dashboard Type: String
id required
This is the ID of any company profile. This can be found inside the URL of any company profile. Type: String
type required
This is a string that helps us to identify whether you want to scrape a person profile or a company profile.
For a company profile, you have to pass type=company
Type: String
API Example
curl "https://api.scrapingdog.com/profile/?api_key=5eaa61a6e562fc52fe763tr516e4653&type=company&id=amazon"import requests
api_key = "5eaa61a6e562fc52fe763tr516e4653"
url = "https://api.scrapingdog.com/profile/"
params = {
"api_key": api_key,
"type": "company",
"id": "amazon"
}
response = requests.get(url, params=params)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"HTTP request failed with status code {response.status_code}")
const axios = require('axios');
const api_key = '5eaa61a6e562fc52fe763tr516e4653';
const type = 'company';
const id = 'amazon';
const apiUrl = 'https://api.scrapingdog.com/profile/';
axios
.get(apiUrl, {
params: {
api_key,
type,
id,
}
})
.then(response => {
if (response.status === 200) {
const data = response.data;
console.log(data);
} else {
console.log(`HTTP request failed with status code ${response.status}`);
}
})
.catch(error => {
console.error(`An error occurred: ${error}`);
});
<?php
$api_key = '5eaa61a6e562fc52fe763tr516e4653';
$type = 'company';
$id = 'amazon';
$url = "https://api.scrapingdog.com/profile/?api_key=$api_key&type=$type&id=$id";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'Curl error: ' . curl_error($ch);
}
curl_close($ch);
if ($response) {
echo $response;
}
?>
require 'httparty'
api_key = '5eaa61a6e562fc52fe763tr516e4653'
type = 'company'
id = 'amazon'
url = "https://api.scrapingdog.com/profile/?api_key=#{api_key}&type=#{type}&id=#{id}"
response = HTTParty.get(url)
if response.code == 200
puts response.body
else
puts "Request failed with status code: #{response.code}"
end
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class LinkedInApiRequest {
public static void main(String[] args) {
try {
String apiKey = "5eaa61a6e562fc52fe763tr516e4653";
String type = "company";
String id = "amazon";
String url = "https://api.scrapingdog.com/profile/?api_key=" + apiKey + "&type=" + type + "&id=" + id;
URL apiUrl = new URL(url);
HttpURLConnection connection = (HttpURLConnection) apiUrl.openConnection();
connection.setRequestMethod("GET");
int responseCode = connection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine;
StringBuilder response = new StringBuilder();
while ((inputLine = in.readLine()) != null) {
response.append(inputLine);
}
in.close();
System.out.println(response.toString());
} else {
System.out.println("Request failed with status code: " + responseCode);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
Last updated