Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Levels.fyi Popular Companies

Tài liệu API
https://api.sandbase.ai/v1/api/levels-fyi/popular-companies

Retrieve a list of popular companies from the Levels.fyi directory with their slugs and salary page URLs. Returns approximately 24 top companies.

Giá
$0.01USD / lượt gọi
Phương thức
POST
Phản hồi
JSON bất đồng bộ
Tham số
0 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Không có schema đầu vào
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

Levels.fyi Popular Companies

Returns a list of popular companies from the Levels.fyi directory, about 24 in total. Each entry has a company slug, a display name, and a relative salary page URL. The API takes no input.

Use cases

  • Build a company picker or autocomplete list for a salary comparison tool.
  • Collect valid company slugs to feed into other Levels.fyi calls.
  • Link users straight to the salary page of a well-known employer.
  • Seed a tracking list of top tech employers for regular salary checks.

Request

curl -X POST "https://api.sandbase.ai/v1/api/levels-fyi/popular-companies" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "popular_companies": [
      {
        "slug": "google",
        "url": "/companies/google/salaries",
        "value": "Google"
      }
    ]
  },
  "status": "success"
}

Response fields

FieldMeaning
data.popular_companies[]One popular company in the directory. The list holds about 24 entries.
data.popular_companies[].slugShort lowercase identifier for the company, such as google. Use it as the company identifier in other Levels.fyi calls.
data.popular_companies[].valueDisplay name of the company, such as Google.
data.popular_companies[].urlRelative path to the company salary page on Levels.fyi, such as /companies/google/salaries.
statusResult status of the call. The value is success when the list was returned.

Notes

  • The url value is a relative path. Add the Levels.fyi site origin to open the page in a browser.
  • Use slug as the company identifier when you call Levels.fyi Company Overview or Levels.fyi Company Benefits.
  • The request has no parameters, so there is no pagination. Send an empty JSON object {}.

Pricing

$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Levels.fyi$0.01 mỗi lần gọiJSON bất đồng bộ
Levels.fyi$0.01 mỗi lần gọiJSON bất đồng bộ
Levels.fyi$0.01 mỗi lần gọiJSON bất đồng bộ
Levels.fyi$0.01 mỗi lần gọiJSON bất đồng bộ
Levels.fyi$0.01 mỗi lần gọiJSON bất đồng bộ
Levels.fyi$0.01 mỗi lần gọiJSON bất đồng bộ

Câu hỏi

FAQ

Làm thế nào để dùng API Levels.fyi Popular Companies?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/levels-fyi/popular-companies với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Levels.fyi Popular Companies có giá bao nhiêu?

$0.01 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Levels.fyi Popular Companies chấp nhận những tham số nào?

Levels.fyi Popular Companies không nhận tham số đầu vào; hãy gửi một phần thân JSON rỗng.

API Levels.fyi Popular Companies trả về gì?

Kết quả JSON. Endpoint này chạy bất đồng bộ, nên phản hồi sẽ cho bạn biết cách lấy kết quả hoàn tất. README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Levels.fyi không?

Không. Levels.fyi Popular Companies chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Levels.fyi.