Chapter 14

Zotero REST API: early developments

Readers of my book know that I'm an avid user of social bookmarking and online bibliographic systems. As  a big fan of Zotero ("a free, easy-to-use Firefox extension to help you collect, manage, and cite your research sources"),  I have been looking for  ways to further integrate Zotero (both the client and the web front end) into my workflows.  Specifically, I would like to experiment with integrating Zotero into my teaching this semester,  specifically to help my students and I  share references.

I've played with scripting Zotero from within the web browser using Chickenfoot.  However, a fully fleshed out Zotero REST API will, I think, be even helpful in tying Zotero to other applications.  There is a Zotero REST API under development, though it is currently limited and not well publicized.

The best publicly available documentation of the API as it stands that I know of is Jeremy Boggs' code phpZotero.   Reading it taught me how to make some basic calls.

(Note: I currently have two separate Zotero accounts:  a personal one (rdhyee) and one for my course (mixingandremixinginfo).  Ideally, I'd rather manage only one account but have two because, from what I understand, there is no fine-grained privacy control that would let me  keep some references private while leaving most public.    Moreover, it seems that the REST API can read only public items for now -- so I'll be applying it to mixingandremixinginfo for now. )

Let me write out what you can do with the API to get started.

  1. Create a key at  Zotero | Settings > Feeds/API (Though I've used a key, I don't see any indication of key usage in my panel -- is this a bug?)
  2. Go to the Zotero privacy tab to check "Publish Entire Library" and "Publish Notes" to make the items (and optionally notes) visible to your API key.
  3. Figure out the userID for the account.  You can do so but doing a HTTP GET on
    http://www.zotero.org/api/users/{username} e.g.,
    http://www.zotero.org/api/users/mixingandremixinginfo -- see

    <?xml version="1.0" encoding="utf-8"?>
    <entry xmlns="http://www.w3.org/2005/Atom" xmlns:zapi="http://zotero.org/ns/api">
        <title>mixingandremixinginfo</title>
        <author>
            <name>Zotero</name>
            <uri>http://zotero.org</uri>
        </author>
        <id>http://zotero.org/users/119961</id>
        <published>2010-01-26T22:43:38-05:00</published>
        <updated>2010-01-26T22:46:11-05:00</updated>
        <link rel="self" type="application/atom+xml"
            href="http://api.zotero.org/users/119961"/>
        <link rel="alternate" type="text/html"
            href="http://zotero.org/mixingandremixinginfo/119961"/>
        <content type="application/xml">
            <zapi:userslug>mixingandremixinginfo</zapi:userslug>
            <zapi:profile>
                <zapi:affiliation><![CDATA[UC Berkeley]]></zapi:affiliation>
                <zapi:bio><![CDATA[<p>This is a public account associated with the Mixing and Remixing Information course at the UC Berkeley School of Information</p>]]></zapi:bio>
                <zapi:disciplines><![CDATA[Information Science and Technology]]></zapi:disciplines>
                <zapi:location><![CDATA[Berkeley, CA]]></zapi:location>
                <zapi:realname><![CDATA[Mixing and Remixing Information]]></zapi:realname>
                <zapi:website><![CDATA[http://blog.mixingandremixing.info]]></zapi:website>
            </zapi:profile>
        </content>
    </entry>
    

    and then parse out for the id element   (e.g., 119961)

  4. Now to get items and collections, note that the base URL for the API ishttps://api.zotero.org/
    and that you can use two
    parameters:  usernameapiKey in
    curl -v -k -X GET "https://api.zotero.org/users/119961/items?username={username}&apiKey={apiKey}"
    to return publicly visible items.
  5. You can get data about a  specific item (e.g.,http://www.zotero.org/mixingandremixinginfo/items/102472156)with

    curl -v -k -X GET "https://api.zotero.org/users/{userid}/items/{itemid}?username={username}&apiKey={apiKey}"

    e.g., curl -v -k -X GET "https://api.zotero.org/users/119961/item/102472156?username=mixingandremixinginfo&apiKey={apiKey}"

  6. Jeremy's phpCode hints at other things you can read from the API, including user collections and their  items, that I've not tried accessing.  However doing so should be straightforward.

Don't consider what I've written here as definitive by any means since  I don't know of any publicly available official documentation.   I'm eager to see the further development of the API, including the ability to access more data (about users,  groups,  etc) and the ability to write to Zotero servers.

Comments welcome!

Chapter 14

Comments (1)

Permalink

delicious: the name changed, but has the API?

I'm looking forward to having the chance to teach my "Mixing and Remixing information" course for the fourth time In January 2009.  Since I plan to use my book on mashups as one of the primary texts, I'm going to have to update it.  Even though the book was published in February, a fair amount has changed in the world of mashups.   As a consequence,  I plan, over the next three months before class starts,  is to document some of those changes.

Let me start with something that should be straightforward. I wrote about delicious in Chapter 14 of my mashup  book,   a chapter about social bookmarking.    Since the book was published, delicious underwent a change of name -- from http://del.icio.us to http://delicious.com.

In updating my book, I will have to make note this name change and any consequences.   My hope is that all the old URLs would continue to work.  Indeed, that is my experience during some casual testing.  For instance, the URL

http://del.icio.us/url/53113b15b14c90292a02c24b55c316e5

is redirected to

http://delicious.com/url/53113b15b14c90292a02c24b55c316e5

as one would expect.

Curiously though, the URLs involved in the delicious API are still based on the old domain name -- according to the current documentation.    Hence, all the URLs that look like

curl -u USER:PASSWORD https://api.del.icio.us/v1/tags/get

in my book are still correct.

After not had an opportunity to look at whether there are  changes in the API  that don't result from the name change -- that examination will have to come later.

Chapter 14
del.icio.us

Comments (0)

Permalink

Notelets for 2007.09.25

I was going to try Google Presentation, the new Powerpoint-like subsystem of Google Docs, until I learned that it doesn't export presentations to Powerpoint or OpenDocument. (See Can I download a presentation to my local computer?.) Now, I might create my PPT or OpenDocument presentation and then upload it to see how good the importing facility is.

There is a new YouTube API based on GData, but there is still upload and write-capabilities: YouTube API Blog: We hear you - we know that upload and other write capabilities are wanted by the community. These features are what we're focusing on next. There is a PHP-based library that lets you do YouTube uploading: PHPTube - YouTube API for Video Upload & Download » nonsmokingarea.com.

One specific questions I have had about tags is how stable is the tagging for a given photo. I think that Cloudalicious - Watching Tag Clouds Over Time does a pretty good job at showing me that there is quick convergence. That's a rough take on what it shows....

Chapter 03
Chapter 07
Chapter 14
Chapter 17
Notelets

Comments (0)

Permalink

New chapters posted: Seeking readers!

I posted today first drafts of 5 more chapters for my book.   Take a look -- I'd love to get some feedback on these drafts.   (Send me email at raymondyee AT mashupguide DOT net.):

 

Chapter 3: "Tagging and Folksonomies." (2007-05-02 07:58:41)

Chapter 4: "RSS and Atom and syndication; integration with news readers" (2007-04-24 17:52:20)

Chapter 5: "Integration with Weblogs and Wikis" (2007-05-02 08:08:41)

Chapter 8: "Learning AJAX/Javascript widgets and their APIs" (2007-04-06)

Chapter 14: "Social Bookmarking and bibliographic systems" (2007-05-02 08:33:09)

Chapter 03
Chapter 04
Chapter 05
Chapter 08
Chapter 14

Comments (0)

Permalink

Exisiting pieces to draw on on social bookmarks for Chapter 14

If I weren't sick with a cold, I'd be energetically plowing away on Chapter 14 on the topic of social bookmarks. I'm trying to get through a first pass of the chapter this afternoon, which is likely to be way too optimistic. Fortunately, I am drawing from some work that I've already assembled:

Chapter 14
del.icio.us

Comments (0)

Permalink

lasix surgery savannah ga 3 Month Prescription Accutane Low Dose accutane timeline; symptoms of zoloft working Buy Levitra Online lipitor drug cost! prednisone stopped taking side effects Side Effects From Zoloft difference between lexapro and celexa accutane timeline; What Will Cipro Treat symptoms of zoloft working lipitor drug cost! Accutane Dosage prednisone stopped taking side effects difference between lexapro and celexa Prednisone Side Effects Skin accutane timeline; symptoms of zoloft working Prednisone Dose Pack lipitor drug cost! lipitor is there a generic Zoloft And Alcohol difference between lexapro and celexa accutane timeline; Prednisone Side Effect symptoms of zoloft working lipitor drug cost! Zithromax Antibiotics Online prednisone stopped taking side effects difference between lexapro and celexa Side Effects Lexapro accutane timeline; symptoms of zoloft working Pill Propecia lipitor drug cost! prednisone stopped taking side effects Nexium Overdose difference between lexapro and celexa accutane timeline; Prednisone And Withdrawal Symptoms symptoms of zoloft working lipitor drug cost! Cheapest Generic Levitra

prednisone stopped taking side effects

Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Withdrawals From Lexapro accutane timeline; symptoms of zoloft working Cat On Prozac lipitor drug cost! prednisone stopped taking side effects Lexapro Side Affects difference between lexapro and celexa accutane timeline; Effects Of Zoloft symptoms of zoloft working get a prescription for propecia Dangers Of Prozac prednisone stopped taking side effects difference between lexapro and celexa Medicine Side Effects Lipitor accutane timeline; symptoms of zoloft working Substitutes For Lasix lipitor drug cost! lipitor is there a generic Connection Between Zoloft And Hair Loss difference between lexapro and celexa accutane timeline; Cough And Wheezing With Lipitor symptoms of zoloft working lipitor drug cost! Lexapro Cost prednisone stopped taking side effects difference between lexapro and celexa Side Effects Of The Drug Lexapro accutane timeline; symptoms of zoloft working Losing Weight After Stopping Lexapro lipitor drug cost! prednisone stopped taking side effects Accutane Attorneys Southern California difference between lexapro and celexa accutane timeline; Zithromax Dosage symptoms of zoloft working lipitor drug cost! Advertising Campaign Propecia prednisone stopped taking side effects difference between lexapro and celexa Lasix Interlase accutane timeline; symptoms of zoloft working Accutane Buy Online Cheaper lipitor drug cost! prednisone stopped taking side effects Can Zoloft Cause Hair Loss difference between lexapro and celexa accutane timeline; Viagra Cialis Levitra symptoms of zoloft working cipro and std treatment Lipitor 20 Mg prednisone stopped taking side effects difference between lexapro and celexa Side Effects Of Cipro accutane timeline; symptoms of zoloft working Zoloft Side Affects lipitor drug cost! prednisone stopped taking side effects Wellbutrin And Prozac difference between lexapro and celexa accutane timeline; Time For Nexium To Work symptoms of zoloft working lipitor drug cost! Prednisone

prednisone stopped taking side effects

Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Zoloft Withdrawl accutane timeline; symptoms of zoloft working Long Term Prednisone Use lipitor drug cost! lipitor is there a generic Accutane Attorney Ohio difference between lexapro and celexa accutane timeline; Nexium Acid Reflux symptoms of zoloft working lipitor drug cost! Alcohol And Zoloft prednisone stopped taking side effects difference between lexapro and celexa Cipro 500mg accutane timeline; symptoms of zoloft working Over The Counter Form Of Zithromax lipitor drug cost! prednisone stopped taking side effects
Robitussin And Clomid
difference between lexapro and celexa clomid with triplets Clomid Ovulation symptoms of zoloft working lipitor drug cost!

Twins On 50 Mg Clomid

prednisone stopped taking side effects Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Prednisone Natural Substitute Moonface accutane timeline; symptoms of zoloft working Cheap Levitra lipitor drug cost! lipitor is there a generic Accutane Acne Medication difference between lexapro and celexa accutane timeline; Lipitor Side Effects Liver symptoms of zoloft working lipitor drug cost! Cost Of Clomid prednisone stopped taking side effects difference between lexapro and celexa Weight Loss With Zoloft accutane timeline; symptoms of zoloft working Nolvadex Online lipitor drug cost! prednisone stopped taking side effects Cipro Antibotic difference between lexapro and celexa accutane timeline; Food Affect Nexium symptoms of zoloft working lipitor drug cost! Renogram With Lasix prednisone stopped taking side effects difference between lexapro and celexa Nexium Rebate
accutane timeline;
clomid dosage lutenizing hormone short Vet Dog Care Lasix Medication lipitor drug cost! prednisone stopped taking side effects Ultracet No Prescription difference between lexapro and celexa accutane timeline; Clomid Miscarriages symptoms of zoloft working lipitor drug cost! Lipitor And Als prednisone stopped taking side effects difference between lexapro and celexa Zoloft Zoloft accutane timeline; symptoms of zoloft working Prednisone And Alcohol lipitor drug cost!
prednisone stopped taking side effects
Genuine Levitra No Prescription difference between lexapro and celexa clomid with triplets Prednisone Induced Diabetes symptoms of zoloft working lipitor drug cost!

Nexium Calcium

prednisone stopped taking side effects Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Accutane Dry Skin Moisturizer accutane timeline; symptoms of zoloft working Performance Enhancement Prednisone lipitor drug cost! lipitor is there a generic Zoloft Bone Loss difference between lexapro and celexa accutane timeline; Buy Cipro No Prescription symptoms of zoloft working lipitor drug cost! Lasix California prednisone stopped taking side effects difference between lexapro and celexa Lexapro Diabetes accutane timeline; symptoms of zoloft working Class Action Lawsuit On Prednisone lipitor drug cost! prednisone stopped taking side effects Baldness Due To Lipitor difference between lexapro and celexa accutane timeline; Withdrawing From Prednisone symptoms of zoloft working lipitor drug cost! Articles On Prozac prednisone stopped taking side effects difference between lexapro and celexa Prednisone Side Affects accutane timeline; symptoms of zoloft working Prednisone Frequent Urination lipitor drug cost! lipitor is there a generic Does Ultracet Work difference between lexapro and celexa accutane timeline; Zoloft And Breastfeeding symptoms of zoloft working get a prescription for propecia

Effexor Lexapro Taken Together

prednisone stopped taking side effects Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Prednisone And Dogs accutane timeline; symptoms of zoloft working Prednisone Dosing lipitor drug cost! prednisone stopped taking side effects Prednisone Withdrawal difference between lexapro and celexa accutane timeline; Cipro Xr Calcium Carbonate Chelating Agent symptoms of zoloft working lipitor drug cost! Discount Levitra Online prednisone stopped taking side effects difference between lexapro and celexa Zoloft For Headaches accutane timeline; symptoms of zoloft working Lipitor Flatulence lipitor drug cost! prednisone stopped taking side effects Lexapro Drug Interactions difference between lexapro and celexa accutane timeline; Prednisone Dosepak symptoms of zoloft working lipitor drug cost! Abruptly Stopping Zoloft

prednisone stopped taking side effects

Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Too High Zoloft Dosage accutane timeline; symptoms of zoloft working Cheap Prednisone lipitor drug cost! prednisone stopped taking side effects Accutane Neck Pain Back Head difference between lexapro and celexa accutane timeline; Cipro Xr 1000mg symptoms of zoloft working

lipitor drug cost!

Buying Clomid Online prednisone stopped taking side effects
Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366.
Sexual Side Effect Of Zoloft accutane timeline; clomid dosage lutenizing hormone short Cost Of Zoloft lipitor drug cost! prednisone stopped taking side effects Zoloft Withdrawals Leg Pain difference between lexapro and celexa accutane timeline; Weight Loss While On Lexapro symptoms of zoloft working lipitor drug cost! Lexapro Vs Cymbalta prednisone stopped taking side effects difference between lexapro and celexa Levitra Online accutane timeline; symptoms of zoloft working Online Drug Purchase Levitra lipitor drug cost! prednisone stopped taking side effects Prednisone Withdrawals difference between lexapro and celexa accutane timeline; Levitra Medication symptoms of zoloft working lipitor drug cost! Lexapro Dosage prednisone stopped taking side effects difference between lexapro and celexa Long Term Effects Of Prednisone accutane timeline; symptoms of zoloft working Buy Prozac Online lipitor drug cost! prednisone stopped taking side effects Zoloft And Side Effects difference between lexapro and celexa accutane timeline; Prednisone Effects On Blood symptoms of zoloft working lipitor drug cost!

Accutane Online

prednisone stopped taking side effects Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Sabatino Cipro accutane timeline; symptoms of zoloft working Clomid Twins lipitor drug cost! lipitor is there a generic Generic Forms Of Prozac difference between lexapro and celexa accutane timeline; Zoloft Elevated Lfts symptoms of zoloft working lipitor drug cost! Cytotec Without A Prescription prednisone stopped taking side effects difference between lexapro and celexa
What Is Prozac
accutane timeline; clomid dosage lutenizing hormone short Accutane 4 Mg lipitor drug cost!
prednisone stopped taking side effects
Zithromax American Made difference between lexapro and celexa clomid with triplets Side Effects Propecia symptoms of zoloft working lipitor drug cost! Hyponatremia Nexium prednisone stopped taking side effects difference between lexapro and celexa Atlanta Accutane Side Effects accutane timeline; symptoms of zoloft working Medicine Lexapro lipitor drug cost!
prednisone stopped taking side effects
Cheap Propecia difference between lexapro and celexa clomid with triplets Can You Take Zoloft While Pregnant symptoms of zoloft working lipitor drug cost!

Ultracet

prednisone stopped taking side effects

medicine side effects lipitor
Zoloft Wellbutrin accutane timeline; clomid dosage lutenizing hormone short Defferance Betweek Zocor And Lipitor lipitor drug cost! prednisone stopped taking side effects Rogaine Scalp Med Propecia Minoxidil difference between lexapro and celexa accutane timeline; Zithromax Rash symptoms of zoloft working lipitor drug cost! Buy Prednisone prednisone stopped taking side effects difference between lexapro and celexa Is Lexapro Simular To Xanax accutane timeline; symptoms of zoloft working Accutane Lawyers Los Angeles lipitor drug cost! prednisone stopped taking side effects Cipro Neurological Side Effects difference between lexapro and celexa accutane timeline; Lexapro Patient Experiences symptoms of zoloft working lipitor drug cost! Lipitor Problems prednisone stopped taking side effects difference between lexapro and celexa Prednisone Dosage For Cats accutane timeline; symptoms of zoloft working Pregnancy And Zoloft lipitor drug cost! lipitor is there a generic Accutane For Acne difference between lexapro and celexa accutane timeline; Twins Clomid symptoms of zoloft working lipitor drug cost! Clomid For Testosterone Replacement prednisone stopped taking side effects difference between lexapro and celexa Prednisone For Lymphoma accutane timeline; symptoms of zoloft working Prednisone For Canine Lymphoma lipitor drug cost! prednisone stopped taking side effects Lipitor And Alcohol difference between lexapro and celexa accutane timeline; Lexapro Withdrawl Symptom symptoms of zoloft working

lipitor drug cost!

Clomid And Iui prednisone stopped taking side effects Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Buspar Zoloft accutane timeline; symptoms of zoloft working Cytotec Safe For Abortion lipitor drug cost! lipitor is there a generic Accutane Statistics difference between lexapro and celexa accutane timeline; Lexapro Medicine symptoms of zoloft working get a prescription for propecia Shelf Life Of Prednisone prednisone stopped taking side effects difference between lexapro and celexa Lexapro 20mg accutane timeline; symptoms of zoloft working Cheap Lexapro lipitor drug cost! prednisone stopped taking side effects Lipitor Lawsuit difference between lexapro and celexa accutane timeline; Rimonabant Side Effects symptoms of zoloft working lipitor drug cost!

Buy Generic Propecia Online

prednisone stopped taking side effects Cough and wheezing with lipitor high dose prednisone and pcp prophylaxis 366. Buy Zoloft Online accutane timeline; symptoms of zoloft working Clomid Day 3 Vs Day 5 lipitor drug cost! prednisone stopped taking side effects Lexapro Abuse difference between lexapro and celexa accutane timeline; Lipitor Unusual Side Effect symptoms of zoloft working cipro and std treatment Nexium Rebates prednisone stopped taking side effects difference between lexapro and celexa Menstruation And Zoloft accutane timeline; symptoms of zoloft working Accutane Side Effects lipitor drug cost! lipitor is there a generic Nolvadex Doctors Testosterone Gel difference between lexapro and celexa accutane timeline; Buy Accutane Online symptoms of zoloft working lipitor drug cost! 13 Dpo Clomid prednisone stopped taking side effects difference between lexapro and celexa Prednisone Rx accutane timeline; symptoms of zoloft working Started Zoloft And Ativan Today lipitor drug cost! lipitor is there a generic Zoloft Dosage difference between lexapro and celexa accutane timeline; Long Term Use Of Prednisone symptoms of zoloft working cipro and std treatment Weight Loss After Zoloft prednisone stopped taking side effects difference between lexapro and celexa Get High Off Zoloft accutane timeline; symptoms of zoloft working Lexapro And Pregnancy
lipitor drug cost!
Lexapro anti depressant manufacturer prednisone ingredients 324. Buy Cheap Amoxil Without Prescription difference between lexapro and celexa accutane timeline; Does Prozac Make You Lose Weight symptoms of zoloft working cipro and std treatment Lexapro Facts prednisone stopped taking side effects difference between lexapro and celexa Amoxil Without Prescription accutane timeline; symptoms of zoloft working Prednisone Delirium Driving Accidents lipitor drug cost!
lipitor is there a generic
Lexapro Vs Celexa difference between lexapro and celexa clomid with triplets Xanax And Prozac symptoms of zoloft working lipitor drug cost! Cipro 500 Mg prednisone stopped taking side effects difference between lexapro and celexa No Prescription Needed Clomid accutane timeline; symptoms of zoloft working Prednisone 20mg Side Effect lipitor drug cost! lipitor is there a generic Is Zoloft An Mao Inhibitor difference between lexapro and celexa accutane timeline; Zoloft Weight Loss symptoms of zoloft working lipitor drug cost! Prednisone Joint Pain prednisone stopped taking side effects difference between lexapro and celexa Prednisone Abuse accutane timeline; symptoms of zoloft working Genox Nolvadex Tamoxifen lipitor drug cost! lipitor is there a generic Cipro Floxin difference between lexapro and celexa accutane timeline; Cytotec Tablets symptoms of zoloft working lipitor drug cost! Zoloft Attorney prednisone stopped taking side effects
difference between lexapro and celexa
Zithromax Used For Treating accutane timeline; clomid dosage lutenizing hormone short Lexapro Weight Gain lipitor drug cost! prednisone stopped taking side effects Zithromax Z Pack difference between lexapro and celexa accutane timeline; Soma Carisoprodol symptoms of zoloft working lipitor drug cost! Lexapro And Weight Gain prednisone stopped taking side effects