Get TAACCCT course details

Get TAACCCT course details

Get TAACCCT course details

The 'Get TAACCCT Course Details'  API enables developers to input a Course ID to get the details of a TAACCCT Course. The Course Id can be retrieved from the List TAACCCT Matches Web API. Please refer to List TAACCCT Matches Web API document for more details.

About this data

TAACCCT was a grant program that provided grants to community colleges and eligible institutions for purposes of expanding and improving demand-driven skills and training programs, which could be completed in two years or less. TAACCCT Web APIs provide information about all projects, institutions, programs of study and courses developed through TAACCCT grants. You can find the TAACCCT Grantee Program Finder on CareerOneStop. For more information on the data, go to TAACCCT Help.

Resource URL

https://api.careeronestop.org/v1/taaccct/{userId}/{courseId}/{posId}

Example Code

using System;

using System.Net.Http;

using System.Net.Http.Headers;

using System.Threading.Tasks;

namespace CareerOneStopAPISample

{

    class Program

    {

        static void Main(string[] args)

        {

            CreateRequest().Wait();

        }

        private static async Task CreateRequest()

        {

    

            var uri = new UriBuilder(Uri.UriSchemeHttps, "api.careeronestop.org")

            {

                Path = "/v1/taaccct/{userId}/{courseId}/{posId}"

            };

            

            using (var http = new HttpClient())

            {

                http.DefaultRequestHeaders.Accept.Clear();

                http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "Your API Token");

                http.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

                var response = await http.GetAsync(uri.Uri).ConfigureAwait(false);

                if (response.IsSuccessStatusCode)

                {

                    var result = await response.Content.ReadAsStringAsync().ConfigureAwait(false);

                }

            }

        }

    }

}
import java.io.IOException;

import java.net.URI;

import java.net.URISyntaxException;

import org.apache.http.HttpEntity;

import org.apache.http.client.methods.CloseableHttpResponse;

import org.apache.http.client.methods.HttpGet;

import org.apache.http.client.utils.URIBuilder;

import org.apache.http.impl.client.CloseableHttpClient;

import org.apache.http.impl.client.HttpClients;

import org.apache.http.util.EntityUtils;

public class CareerOneStopAPISample {

    public static void main(String[] args) throws IOException, URISyntaxException {

    URI uri = new URIBuilder()

        .setScheme("https")

        .setHost("api.careeronestop.org")

        .setPath("/v1/taaccct/{userId}/{courseId}/{posId}")

        .build();

    CloseableHttpResponse response = null;

    HttpGet httpGet = null;

    try {

        CloseableHttpClient httpClient = HttpClients.createDefault();

        httpGet = new HttpGet(uri);

        httpGet.setHeader("Content-Type","application/json");

        httpGet.setHeader("Authorization", "Bearer Your API Token");

        response = httpClient.execute(httpGet);

        HttpEntity entity = response.getEntity();

        System.out.println(EntityUtils.toString(entity));

    } finally {

        if(httpGet != null) httpGet.releaseConnection();

        if(response != null) response.close();

    }

   }

}

Request Parameters

Refer to the following table for a list of the required and optional request parameters. All parameter names and values are case sensitive. Important: You must provide all required parameters. Submitting an empty request does not return all possible results; an empty request returns an error.

Parameter Name Value Required? Description
API Token
String
Yes
This value is the unique API Token provided during the CareerOneStop Web API registration process.
userId
String
Yes
This value is the unique UserID provided during the CareerOneStop Web API registration process.
courseId
String
Yes
This value is the Course Id that is used to retrieve the details.
posId
String
Yes
This value is the Program of Study Id that is used to retrieve the course details which is associated to the Program of Study.

Response Structure

{

  "CourseId": "483",

  "CourseName": "EGR 186 - Introduction to Engineering",

  "DeliveryMethod": "Face to Face",

  "PercentOER": "75",

  "POSId": "141",

  "POSName": "CCC2NAU Pathway in Mechanical Engineering",

  "CredentialType": "Associate Degree",

  "NAICSIndustry": "Professional, Scientific, and Technical Services",

  "ProjId": "15",

  "ProjName": "Coconino Community College Northern Arizona University (CCC2NAU)",

  "InstId": "32",

  "InstName": "Coconino Community College",

  "City": "Flagstaff",

  "State": "AZ"

}
<TAACCCTCourseDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XPAND.CareerOneStop.WebApi.ViewModels">

    <City>Flagstaff</City>

    <CourseId>483</CourseId>

    <CourseName>EGR 186 - Introduction to Engineering</CourseName>

    <CredentialType>Associate Degree</CredentialType>

    <DeliveryMethod>Face to Face</DeliveryMethod>

    <InstId>32</InstId>

    <InstName>Coconino Community College</InstName>

    <NAICSIndustry>Professional, Scientific, and Technical Services</NAICSIndustry>

    <POSId>141</POSId>

    <POSName>CCC2NAU Pathway in Mechanical Engineering</POSName>

    <PercentOER>75</PercentOER>

    <ProjId>15</ProjId>

    <ProjName>Coconino Community College Northern Arizona University (CCC2NAU)</ProjName>

    <State>AZ</State>

</TAACCCTCourseDetail>

Response Parameters

Name Description Type
CourseId
Course ID
String
CourseName
Course Name
String
DeliveryMethod
Delivery Method
String
PercentOER
Percent of the course that is Open Educational Resources. String
POSId
POS = Program of study, the "major" String
POSName
Program of Study Name
String
CredentialType
Credential Type
String
NAICSIndustry
NAICS Industry         String
ProjId
Project ID
String
ProjName
Project Name
String
InstId
Institution ID
String
InstName
Institution Name String
City
City
String
State
State String

Errors

Error/Status Code Description
 200
OK / Success. The request went through successfully and there is a response body.
 400
Bad Request (Request was invalid or missing parameters)
 401    
Unauthorized. This error occurs specifically when authentication is required and has failed or has not yet been provided correctly. (ex: Invalid API Token)
 404
This error will be shown in two scenarios 1) Not found - (An error occurred) and 2) Not found - (No data available)
 500
Internal Server Error. This error will occur when there is something critically wrong in the API call.