2. API Provider : Pixabay
API EndPoint : http://pixabay.com/api/
API HomePage : Pixabay API Documentation
Primary Category : Images
Secondary Category : Photos, Search
Protoco/Formats : JSON
3. 1.Detailed image search
2.High resolution image search
3.Retrieving data sets of selected images
4.Building permanent URLs based on id hashs
II. What you can do :
I. About Pixabay :
Pixabay is a website where users can browse through and
download high quality photos, vector graphics and art illustrations
that are all license free.
Pixabay hosts a RESTful API interface for querying and retrieving
these CC0 public domain images from Pixabay's directory of over
260,000 photos. The API can be accessed via HTTP address,
and returns in JSON unicode. The API is limited to a maximum of
300 search results per query, and requires an API key for access.
4. Request and response :
Example for Detailed image search:
Request:
request.open(”GET”,
”http://pixabay.com/api/?username=USERNAME&key=APIKEYc
&q=engineering&image_type=photo”, true);
request.send();
Response:
{
"totalHits":300,
"hits":[
{
"previewHeight":99,
"likes":7,
"tags":"mechanics, engine, springs",
"webformatHeight":425,
"views":1314,
"webformatWidth":640,
"previewWidth":150,
6. Mash-up
Am relizat o pagină cu poze și date despre diferite
universități de prestigiu. Prin mai multe request-uri la API-ul
Pixabay am cautat poze, iar datele primite ca response le-
am folosit pentru a afișa poze și informații despre acestea
pe site-ul meu.