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}`);
});
Last updated