Missing results from the artworks endpoint with partner_id query: https://api.artsy.net/api/artworks?partner_id=XXXXX

39 views
Skip to first unread message

Jordan Goldin

unread,
Apr 21, 2020, 9:45:54 PM4/21/20
to Artsy API Developers
Hello,

I'm attempting to get a list of artworks associated with a partner with the id 52cc779febad64e73f000340.


# $ARTSY_TOKEN contains a valid api token

$ curl
"https://api.artsy.net/api/artworks?partner_id=52cc779febad64e73f000340" -H "X-XAPP-Token:${ARTSY_TOKEN}"
{
 
"total_count": null,
 
"_links": {
   
"self": {
     
"href": "https://api.artsy.net/api/artworks?partner_id=52cc779febad64e73f000340"
   
}
 
},
 
"_embedded": {
   
"artworks": []
 
}
}

The API shows 0 associated artworks however the partner account has many associated artworks when viewed in the ui: https://www.artsy.net/new-image-art-gallery/works

I've also tried going in reverse and used the search endpoint to look up an artwork I know is associated with the partner
For example:

     {
       
"type": "artwork",
       
"title": "Daniel Gibson, Pathfinders (2019)",
       
"description": "Oil and charcoal on canvas, 30 × 40 × 2 in",
       
"og_type": "artwork",
       
"_links": {
         
"self": {
           
"href": "https://api.artsy.net/api/artworks/5ce9a55e24599b000dfb7084"
         
},
         
"permalink": {
           
"href": "https://www.artsy.net/artwork/5ce9a55e24599b000dfb7084"
         
},
         
"thumbnail": {
           
"href": "https://d32dm0rphc51dk.cloudfront.net/omvfk0Q_q2avyN2JmwxO1w/square.jpg"
         
}
       
}
     
}


I'm able to view the artwork in the ui with the url https://www.artsy.net/artwork/5ce9a55e24599b000dfb7084
But the api call says it doesn't exist....

$ curl "https://api.artsy.net/api/artworks/5ce9a55e24599b000dfb7084" -H "X-XAPP-Token:${ARTSY_TOKEN}"
{
 
"type": "other_error",
 
"message": "Artwork Not Found"
}


Do I need access to the partner API for this work? Any idea what I'm doing wrong?


Thanks,
Jordan




Daniel D.

unread,
Apr 22, 2020, 9:11:20 AM4/22/20
to Jordan Goldin, Artsy API Developers
You're not doing anything wrong. Works that are not public domain are not available in the public API.

The Artsy Public API provides access to images of historic artwork and related information on artsy.net for educational and other non-commercial purposes. In comparison to the set of data on artsy.net this API has limited scope. For example, only public domain works are currently accessible.

AFAIK, and not to speak on behalf of the Artsy team, If you're a paying gallery partner, I believe you can get access to the partner API via sup...@artsy.net.

--
Find all info about the Artsy.net API at https://developers.artsy.net.
---
You received this message because you are subscribed to the Google Groups "Artsy API Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to artsy-api-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/artsy-api-developers/dba2091a-4731-46b0-95fe-2d54e9aa20a0%40googlegroups.com.


--

Jordan Goldin

unread,
Apr 22, 2020, 3:58:25 PM4/22/20
to Daniel D., Artsy API Developers
Thanks for the quick response! I'll be reaching out to them to get partner api access.

Cheers,
Jordan
Reply all
Reply to author
Forward
0 new messages