GET /fields/<index>/<field>

Returns the most common values for a given field in either the user or repo index.


🔑 Credits

  • Cost: Free

URL Parameters

ParameterTypeRequiredDescription
indexstringThe index to query. Must be one of: user, repo.
fieldstringThe field to aggregate values for. Must be a valid field for the selected index.

Supported Fields

user index

FieldDescription
company_nameName of the user’s company
company_websiteWebsite of the user’s company
company_linkedinLinkedIn profile URL for the company
titleJob title
company_sizeCompany size (e.g. 11-50, 500+)
company_industryIndustry sector (e.g. SaaS, Finance)
company_countryCountry of the company
countryUser’s country (parsed from location field)

repo index

FieldDescription
languagePrimary programming language
topicsTopics/tags associated with the repo

Example

Find possible company_size values

Request

GET /fields/user/company_size?api_key=YOUR_API_KEY

Response

[
  {
    "count": 1042429,
    "value": "10001+"
  },
  {
    "count": 582885,
    "value": "1001-5000"
  },
  {
    "count": 425739,
    "value": "11-50"
  },
  {
    "count": 364115,
    "value": "51-200"
  },
  {
    "count": 346703,
    "value": "1-10"
  },
  {
    "count": 280437,
    "value": "5001-10000"
  },
  {
    "count": 256549,
    "value": "201-500"
  },
  {
    "count": 224376,
    "value": "501-1000"
  }
]