Skip to main contentOpteroAIBeta
All tools

Salary Data API

Free public API for querying salary and compensation data from real job listings. No API key required. CORS enabled for browser use.

Endpoint

GET https://optero.ai/api/public/salaries

Parameters

All parameters are optional. Pass at least role for useful results.

ParameterTypeDescription
rolestringJob title to search for (e.g., "Software Engineer", "Data Scientist")
locationstringCity, country, or "Remote" (e.g., "Bangalore", "San Francisco")
levelstringSeniority level (e.g., "junior", "mid", "senior", "lead", "staff")
currencystringFilter by currency code (e.g., "INR", "USD", "EUR")

Example request

curl "https://optero.ai/api/public/salaries?role=Software+Engineer&location=Bangalore"

Example response

{
  "data": {
    "query": {
      "role": "Software Engineer",
      "location": "Bangalore",
      "level": "",
      "currency": ""
    },
    "count": 142,
    "currency": "INR",
    "stats": {
      "median": 1800000,
      "p10": 800000,
      "p25": 1200000,
      "p75": 2800000,
      "p90": 4200000,
      "min": 500000,
      "max": 7500000
    },
    "by_seniority": [
      {
        "level": "senior",
        "count": 48,
        "median": 3200000,
        "min": 1800000,
        "max": 7500000
      },
      {
        "level": "mid",
        "count": 61,
        "median": 1600000,
        "min": 800000,
        "max": 3000000
      }
    ],
    "top_companies": [
      {
        "name": "Google",
        "count": 8,
        "median": 4500000
      }
    ],
    "attribution": "Data from OpteroAI (optero.ai)"
  }
}

Rate limits

  • *30 requests per minute per IP address
  • *Rate-limited responses return HTTP 429 with a Retry-After header
  • *CORS is enabled for all origins, so you can call this directly from browser JavaScript

Attribution

This API is free. If you use it in a product or article, please include attribution:

Data from OpteroAI (optero.ai)

Embeddable salary widget

Want to show salary data on your site? Embed our widget with an iframe. Pass role and location as query params.

<iframe
  src="https://optero.ai/embed/salary?role=Software+Engineer&location=Bangalore"
  width="100%"
  height="400"
  frameborder="0"
  title="Salary data from OpteroAI"
  style="border-radius: 12px; border: 1px solid #222;"
></iframe>

Building something with salary data?

If you need higher rate limits or bulk data exports, reach out and we can work something out.

Contact us