The EBSCOhost Entitlement API makes research easy by providing access to full text content from EBSCOhost full text databases.



Get Full Text Links Code Samples

Use the code samples below as examples to create an application in your desired language.  The following code samples use the /{cgp}/discovery endpoint which allows you to customize key functions of the EBSCO open link resolver to get their patrons easy access to EBSCOhost full text database content.  Get started and begin to understand the endpoint by following the examples below in the language of your choice. 


Code Samples


curl -X GET "" -H "accept: application/json" -H "token: ebd211" -H "x-forwarded-proto: https" -H "x-forwarded-host:" -H "Authorization: Bearer TOKEN"


// Construct the client
OkHttpClient client = new OkHttpClient();

// Create the URL
HttpUrl url = new HttpUrl.Builder()
    .addQueryParameter("doi", "10%2C1080%2F1470243032000214222")

// Build the request
Request request = new Request.Builder()
    .addHeader("accept", "application/json")
    .addHeader("token", "edf211")
    .addHeader("x-forwarded-proto", "https")
    .addHeader("x-forwarded-host", "")
    .addHeader("Authorization", "Bearer TOKEN")

// Send the request
Response response = client.newCall(request).execute();


var host = "";
var pathsega = "/discovery";

// Create the Request
var urlstr = host + CGP + pathsega;
var settings = {
  "async": true,
  "crossDomain": true,
  "url": urlstr,
  "method": "GET",
  "data": { 
    "doi": "10%2C1080%2F1470243032000214222"
  "headers": {
    "accept": "application/json",
    "token": "edb211",
    "x-forwarded-proto": "https",
    "x-forwarded-host": "",
    "Authorization": "Bearer TOKEN",

// Send the Request
$.ajax(settings).done(function (response) {


# Form the URL 
urlstr = File.join('https://', '', 'ehostentitlements', CGP, 'discovery')
uri = URI(urlstr)

query = URI.encode_www_form({
    # Request parameters
    'doi' => '10%2C1080%2F1470243032000214222'
if query.length > 0
  if uri.query && uri.query.length > 0
    uri.query += '&' + query
    uri.query = query

# Create the HTTP object
http =, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

# Create the request
request =
request["accept"] = 'application/json'
request["token"] = 'ebd222'
request["x-forwarded-proto"] = 'https'
request["x-forwarded-host"] = ''
request["Authorization"] = 'Bearer TOKEN'

# Send the request
response = http.request(request)


# Form the URL
url = ''.join(['/ehostentitlements/', CGP, '/discovery'])

# Create Connection Instance
conn = http.client.HTTPSConnection("")

# Set the Query Parameters
params = urllib.parse.urlencode({'doi': '10%2C1080%2F1470243032000214222'})

# Create the Request Headers
headers = {
    'accept': "application/json",
    'token': "ebd222",
    'x-forwarded-proto': "https",
    'x-forwarded-host': "",
    'Authorization': "Bearer TOKEN"

# Send Request  
conn.request("GET", url + '?' + params, headers=headers)