Skip to main content
POST
/
api
/
jobstreet
/
companies
/jobstreet/companies
curl --request POST \
  --url https://api.anysite.io/api/jobstreet/companies \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "company": "<string>",
  "timeout": 300,
  "country": "MY"
}
'
import requests

url = "https://api.anysite.io/api/jobstreet/companies"

payload = {
    "company": "<string>",
    "timeout": 300,
    "country": "MY"
}
headers = {
    "access-token": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({company: '<string>', timeout: 300, country: 'MY'})
};

fetch('https://api.anysite.io/api/jobstreet/companies', 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.anysite.io/api/jobstreet/companies",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'company' => '<string>',
    'timeout' => 300,
    'country' => 'MY'
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "access-token: <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"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.anysite.io/api/jobstreet/companies"

	payload := strings.NewReader("{\n  \"company\": \"<string>\",\n  \"timeout\": 300,\n  \"country\": \"MY\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("access-token", "<api-key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/jobstreet/companies")
  .header("access-token", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"company\": \"<string>\",\n  \"timeout\": 300,\n  \"country\": \"MY\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.anysite.io/api/jobstreet/companies")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"company\": \"<string>\",\n  \"timeout\": 300,\n  \"country\": \"MY\"\n}"

response = http.request(request)
puts response.read_body
[
  {
    "id": "<string>",
    "url": "<string>",
    "@type": "JobstreetCompany",
    "country": "<string>",
    "name": "<string>",
    "is_claimed": true,
    "organisation_id": "<string>",
    "website_url": "<string>",
    "website_name": "<string>",
    "size": "<string>",
    "industry": "<string>",
    "industry_id": "<string>",
    "primary_location": "<string>",
    "specialities": [],
    "mission_statement": "<string>",
    "custom_statement_title": "<string>",
    "custom_statement": "<string>",
    "image": "<string>",
    "cover": "<string>",
    "brand_id": "<string>",
    "gallery": [],
    "perks_and_benefits": [],
    "featured": {
      "@type": "JobstreetCompanyFeatured",
      "image": "<string>",
      "video_url": "<string>"
    },
    "rating": {
      "@type": "JobstreetCompanyRating",
      "overall": 123,
      "review_count": 123,
      "recommended_percent": 123,
      "perks_and_benefits": 123,
      "career_opportunity": 123,
      "work_life_balance": 123,
      "work_environment": 123,
      "executive_management": 123,
      "diversity": 123,
      "salary_poor_percent": 123,
      "salary_fair_percent": 123,
      "salary_generous_percent": 123,
      "one_star_count": 123,
      "two_star_count": 123,
      "three_star_count": 123,
      "four_star_count": 123,
      "five_star_count": 123
    }
  }
]
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
company
string
required
Minimum string length: 1
timeout
integer
default:300
Required range: 20 <= x <= 1500
country
enum<string>
default:MY
Available options:
MY,
SG,
ID,
PH,
TH,
HK

Response

Successful Response

id
string
required
url
string
required
@type
string
default:JobstreetCompany
country
string | null
name
string | null
is_claimed
boolean | null
organisation_id
string | null
website_url
string | null
website_name
string | null
size
string | null
industry
string | null
industry_id
string | null
primary_location
string | null
specialities
string[]
mission_statement
string | null
custom_statement_title
string | null
custom_statement
string | null
image
string | null
cover
string | null
brand_id
string | null
perks_and_benefits
object[]
rating
object | null