Brian, Tom, and Jonathan,
Thank you for your responses, we'll check these out. One of the developers we're working with did make some headway (actually gets results) but they seem to point to ALEPH (which we don't subscribe to) and DEMO even though the API is set up for prod. We are making headway in getting a contact through our support ticket with Ex Libris.
Tom, yes, api_key=*** is replaced with our own api key and we are a subscriber to Primo.
Again, without clear documentation, we appreciate everyone's help and pointers. I'll keep you posted when we have a structure that works. Thanks!
-Chad
Chad Kluck
Web Developer
University of St. Thomas Libraries
[log in to unmask]
(651) 962-5416
University of St. Thomas | stthomas.edu
-----Original Message-----
From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of Tom Hutchinson
Sent: Monday, December 18, 2017 9:46 AM
To: [log in to unmask]
Subject: Re: [CODE4LIB] Experience with Primo API
Hi, Chad —
My understanding is that if you aren't already a Primo subscriber, you can try out there APIs on a guest sandbox. It sounds like you are a subscriber already though. Maybe raise a ticket with them about getting access or talk to your local staff. Please report back on how you got this sorted out.
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.exlibrisgroup.com%2Fprimo%2Fapis%2Fwebservices%2Frest&data=02%7C01%7Cclkluck%40STTHOMAS.EDU%7C0b594ea5bc6e434ebc5f08d5462e99d4%7Ca081ff79318c45ec95f338ebc2801472%7C1%7C0%7C636492088512139305&sdata=%2FnjVd1UD9RQ0yjPZch%2FM6oVTE%2B0C62dRHoIuaS%2FcLDQ%3D&reserved=0
In the attempted API call you pasted into your email, api_key = ***.
When you are actually running it, did you replace this with an actual key?
Through VuFind, we use their "X-Services" API. Ours is set up for IP based authentication. A typical search (here searching brief results for the query "linked data") looks like:
GET: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftri-primo.hosted.exlibrisgroup.com%2FPrimoWebServices%2Fxservice%2Fsearch%2Fbrief%3Fquery%3Dany%2Ccontains%2Clinked%2Bdata%26institution%3DSWARTH%26onCampus%3Dtrue%26dym%3Dfalse%26pcAvailability%3Dtrue%26indx%3D1%26bulkSize%3D20%26loc%3Dadaptor%2Cprimo_central_multiple_fe&data=02%7C01%7Cclkluck%40STTHOMAS.EDU%7C0b594ea5bc6e434ebc5f08d5462e99d4%7Ca081ff79318c45ec95f338ebc2801472%7C1%7C0%7C636492088512139305&sdata=q%2Bq%2BNgn6%2BxFIpfsnFsoS%2Bvr8It4NH1NnhHWnmNauVgg%3D&reserved=0
There is also an, I imagine newer, REST API. Check out the content listed under Web Services. It's not clear to me what the "Primo Search" API is for. Perhaps it's for their discovery product, as opposed to their article aggregator product. They lumped so much in under the brand name Primo that I find it confusing to pull apart.
Tom
On Mon, Dec 18, 2017 at 9:43 AM, Brian Meuse <[log in to unmask]> wrote:
> Hi,
>
> I have limited Primo knowledge, but I shared your post with a
> colleague who does and he suggested checking this:
>
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fknowl
> edge.exlibrisgroup.com%2FPrimo%2FKnowledge_Articles%2FMust_Workstation
> _IP_be_Added_to_WS_and_XS_IP_Mapping_Table_in_Order_to_Test_Primo_Web_
> Services%253F&data=02%7C01%7Cclkluck%40STTHOMAS.EDU%7C0b594ea5bc6e434e
> bc5f08d5462e99d4%7Ca081ff79318c45ec95f338ebc2801472%7C1%7C0%7C63649208
> 8512139305&sdata=rbRNqhjQxcFvNKRWUX8%2BkrBNtjU%2FRnW%2FUENwDlILXqk%3D&
> reserved=0
>
>
>
> On Fri, Dec 15, 2017 at 10:51 PM, Kluck, Chad L.
> <[log in to unmask]>
> wrote:
>
>> We're wondering if anyone has experience, and documentation, with the
>> Primo API. We have so far developed with the Alma API and other APIs
>> so I'm not asking about API GET/POST/PUT requests or CURL. However,
>> since the Primo API for some of the search is listed as "Under
>> Construction" it is harder to work our way around what we should expect for received data.
>>
>>
>> We submitted a support case for some help from Ex Libris, but if
>> anyone has a repository, or some docs that would help. We're
>> basically trying to do regular search queries, like feed
>> q=any,contains,immortality%20kundera
>> (see below)
>>
>>
>> We saw in the Code4Lib archive that the Primo API was IP restricted
>> back in 2014, but was wondering if that is still the case.
>>
>>
>> Submitted to Ex Libris Sales Force
>>
>> Case Title: API for Primo - known item searches
>> Description:
>> We need help getting a functioning query with the Primo API. Our use
>> case is that we are working with a company to develop a chatbot which
>> can take a natural language query, get a list of results from Primo
>> via API (using author or title search), and check our holdings and
>> availability and let the user know if it is available and make a
>> request. The second part seems to be accomplished via the Bibs API,
>> but getting the MMS IDs of a set of results from a Primo search seems
>> to require the Primo API. We have not been able to get results from our test queries.
>>
>> We have the API key set up for our API application StthomasAI with
>> permissions to use the Primo Search (under const.) API. We have tried
>> using both Brief Search and Delivery Service Search but are not having luck.
>>
>> For example:
>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapi-
>> eu.hosted.exlibrisgroup.com%2Fprimo%2Fv1%2Fsearch%3Fvid%3DSTTHOMAS%26
>> tab&data=02%7C01%7Cclkluck%40STTHOMAS.EDU%7C0b594ea5bc6e434ebc5f08d54
>> 62e99d4%7Ca081ff79318c45ec95f338ebc2801472%7C1%7C0%7C6364920885121393
>> 05&sdata=VB3QUHIZL%2Fa917XEf3ILFoBmMWh7uUPepSdHh1061EQ%3D&reserved=0=
>> default_tab&scope=stthomas&q=any%2Ccontains%2Cimmortality%
>> 20kundera&lang=eng&offset=0&limit=10&sort=rank&pcAvailability=true&co
>> nVoc=
>> true&apikey=[*************]
>>
>>
>> Thanks!<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fna01.safelinks.protection.outlook&data=02%7C01%7Cclkluck%40STTHOMAS.EDU%7C0b594ea5bc6e434ebc5f08d5462e99d4%7Ca081ff79318c45ec95f338ebc2801472%7C1%7C0%7C636492088512139305&sdata=S9E7CG5f4zdT7Uv1Icbn7tf%2FyKgfJVZLAseUk8gAygo%3D&reserved=0.
>> com/?url=https%3A%2F%2Fapi-eu.hosted.exlibrisgroup.com%
>> 2Fprimo%2Fv1%2Fsearch%3Fvid%3DSTTHOMAS%26tab%3Ddefault_
>> tab%26scope%3Dstthomas%26q%3Dany%252Ccontains%252Cimmortality%2520kun
>> dera% 26lang%3Deng%26offset%3D0%26limit%3D10%26sort%3Drank%
>> 26pcAvailability%3Dtrue%26conVoc%3Dtrue%26apikey%
>> 3Dl7xx95e1392be88248b4938710ae279a414d&data=02%7C01%
>> 7Cclkluck%40stthomas.edu%7C515ce934bafa40bfbef608d543104819%
>> 7Ca081ff79318c45ec95f338ebc2801472%7C1%7C0%7C636488659564215396&sdata
>> = 9hPnbkelNXwLgH7ASASrCbItNzWx%2F2cK3Hml0J9LjwI%3D&reserved=0>
>>
>>
>> -Chad
>>
>> Chad L. Kluck
>> Web Developer
>> University of St. Thomas Libraries
>> (651) 962-5416
>>
>> Sent from Outlook Web Access
>> [University of St. Thomas : All for the Common Good]<
>> http://www.stthomas.edu/e>
>>
>
>
>
> --
> Brian Meuse
> Digital Initiatives Librarian
> Brandeis University
|