[Clipart] JSONify the query results

jon at rejon.org jon at rejon.org
Sun Nov 14 21:48:32 PST 2010


Bassel can guide you on this. Also see http://openclipart.org/wiki/API
On Nov 15, 2010 9:52 AM, "Wayne Connolly" <wayne.connolly at measanctum.com>
wrote:
> Hi all,
>
> We would like the query results of
> http://www.openclipart.org/api/search/?query=christmas&page=1
> <http://www.openclipart.org/api/search/?query=dog>to be available for
> each record to be integrated into out CMS.
>
> The first JSON integer is the record number starting at zero and going
> until when the recordset ends (reset per batch).
>
> Is it possible to only return 10 records at a time please?
>
> {"msg" : "success",
> "info" : {"results: "1200",
> "pages" : "12",
> "current_page" : "3"
> },
> "payload" :{"0" : {"title" : "Santa Hat",
>
> "uploader" : "TheresaKnott",
> "drawn_by" : "/ TheresaKnott",
> "description" : "A santa hat for christmas sutable
> for putting on other drawings.",
> "tags" : "media , clip_art , public_domain , image
> , svg , santa , christmas , hat , santa , christmas , hat",
> "downloaded_by" : "2324",
> "rated_by" : "10",
> "detail_link" :
> "http://www.openclipart.org/detail/889",
> "created" : "2006-10-25 09:09:50",
> "svg" : {"url" :
> "http://www.openclipart.org/people/TheresaKnott/TheresaKnott_Santa_Hat.svg
> <view-source:
http://www.openclipart.org/people/TheresaKnott/TheresaKnott_Santa_Hat.svg>",
>
> "height" :"800",
> "width" : "760"
> }
> "png_thumb" : {"url" :
> "
http://www.openclipart.org/image/250px/svg_to_png/TheresaKnott_Santa_Hat.png
> <view-source:
http://www.openclipart.org/image/250px/svg_to_png/TheresaKnott_Santa_Hat.png
>",
>
> "height" :"250", "
> width" : "230"
> }
> "png_full_lossy" : {"url" :
> "
http://www.openclipart.org/image/800px/svg_to_png/TheresaKnott_Santa_Hat.png
> <view-source:
http://www.openclipart.org/image/800px/svg_to_png/TheresaKnott_Santa_Hat.png
>",
>
> "height" :"800",
> "width" : "760"
> }
> }
> }
>
> }
>
>
> --
> Kind Regards,
>
> Wayne
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/clipart/attachments/20101115/76d37dfd/attachment.html>


More information about the clipart mailing list