🎓
CollegeAI API
  • Overview
  • JSON API
    • Getting Started
    • Endpoints
    • Guide: Get College Information
    • Guide: Search and Filter Colleges
  • Data Types
    • College Unit Ids
    • Information Ids
    • Filter Ids
  • Legacy APIs
    • User Interface
    • Browser API
  • Legal
    • Terms of Service
Powered by GitBook
On this page
  • College Retrieval
  • Get information for one or more colleges.
  • Get a list of colleges matching a filter.
  • Autocomplete
  • Autocomplete college names based on query.
  • Autocomplete high school names based on query.
  1. JSON API

Endpoints

This page contains the documentation for each endpoint, but if you're just getting started, we recommend taking a look at one of the guides e.g. Get College Information.

Note that all endpoints return JSON, even in the case of an error. The response will always have a true or false key named success.

{
    "success": false,
    "message": "API Key was not provided"
}

Every request must include your API key.

College Retrieval

Get information for one or more colleges.

GET /v1/api/college/info

See the college information guide for examples

Note that along with info_ids, one of college_names, college_ids or college_unit_ids must be provided

Query Parameters

Name
Type
Description

info_ids *

String

Example: student_faculty_ratio,in_state_tuition

college_ids

String

Comma-delimited semantic ids for each college to query for.

Example: rensselaer-polytechnic-institute,stanford-university

college_unit_ids

String

Example: 194824,166683

college_names

String

Names or abbreviations for colleges to query for.

Example:

MIT,Rensselaer Polytechnic

{
  "success": true,
  "colleges": [
    {
      "collegeId": "rensselaer-polytechnic-institute",
      "collegeUnitId": "194824",
      "name": "Rensselaer Polytechnic Institute",
      "studentFacultyRatio": 15,
      "inStateTuition": 51000
    },
    {
      "collegeId": "stanford-university",
      "collegeUnitId": "243744",
      "name": "Stanford University",
      "studentFacultyRatio": 10,
      "inStateTuition": 48987
    }
  ]
}

Get a list of colleges matching a filter.

GET /v1/api/college-list

Query Parameters

Name
Type
Description

info_ids*

String

Example: student_faculty_ratio,in_state_tuition

limit

Number

Maximum number of colleges to return. Default max is 20.

Example: 20

offset

Number

Use this when loading more on page scroll. Can be used to get more than the limit of colleges with multiple requests. Specifies what index to begin returning colleges at.

Example: 10

filters

JSON

Object representing filters to apply on resultant colleges.

{
  "success": true,
  "colleges": [
    {
      "collegeId": "university-of-california---berkeley",
      "collegeUnitId": "110635",
      "name": "University of California - Berkeley",
      "website": "www.berkeley.edu",
      "city": "Berkeley",
      "stateAbbr": "CA",
      "aliases": [
        "UC Berkeley"
      ],
    },
    {
      "collegeId": "university-of-california---los-angeles",
      "collegeUnitId": "110662",
      "name": "University of California - Los Angeles",
      "website": "www.ucla.edu",
      "city": "Los Angeles",
      "stateAbbr": "CA",
      "aliases": [
        "UCLA"
      ],
    }
  ]
}

Autocomplete

Autocomplete college names based on query.

GET /v1/api/autocomplete/colleges

Search for a college by name, location or abbreviation. Great for college search fields. See an example in the college information guide.

Query Parameters

Name
Type
Description

query*

String

Text to search colleges for.

Example: RPI

{
    "success": true,
    "collegeList": [
    {
      "id": "massachusetts-institute-of-technology",
      "unitId": 166683,
      "name": "Massachusetts Institute of Technology",
      "city": "Cambridge",
      "state": "MA"
    },
    {
      "id": "smith-college",
      "unitId": 167835,
      "name": "Smith College",
      "city": "Northampton",
      "state": "MA",
      "matchingIndices": [
        1,
        4
      ]
    },
    {
      "id": "hobart-william-smith-colleges",
      "unitId": 191630,
      "name": "Hobart William Smith Colleges",
      "city": "Geneva",
      "state": "NY",
      "matchingIndices": [
        16,
        19
      ]
    }
  ]
}

Autocomplete high school names based on query.

GET /vi/api/autocomplete/high-schools

Great for high school search fields. This is useful if you have a form where a student should enter their high school.

Query Parameters

Name
Type
Description

q*

String

The user's input to the form field or the name of the high school to search for.

Example: San Francisco

zipcode

String

A zip code. This significantly improves selection recommendations.

Example: 94063

PreviousGetting StartedNextGuide: Get College Information

Last updated 2 years ago

Comma-delimited . Specifies what additional info to return in the response.

Comma-delimited for each college to query for.

Comma-delimited . Specifies what additional info to return in the response.

Example: See

information ids
unit ids
information ids
Filter Ids