Pixabay

FREE
By dimas
Updated 5 months ago
Video, Images
6.4/10
Popularity Score
256ms
Latency
100%
Success Rate

Pixabay API Documentation

Free images and videos you can use anywhere

View API Details
POSTsearchAnimations
POSTsearchFilms
POSTsearchIllustrations
POSTsearchImages
POSTsearchPhotos
POSTsearchVectorImages
POSTsearchVideos
POSTsearchAnimations

Search animation.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiKeyCREDENTIALS
REQUIREDYour Pixabay API key.
Optional Parameters
minHeightNUMBER
OPTIONALMinimum video height. Default: `0`
categorySELECT
OPTIONALAccepted values: `fashion`, `nature`, `backgrounds`, `science`, `education`, `people`, `feelings`, `religion`, `health`, `places`, `animals`, `industry`, `food`, `computer`, `sports`, `transportation`, `travel`, `buildings`, `business`, `music`
pageNUMBER
OPTIONALReturned search results are paginated. Use this parameter to select the page number. Default: `1`
idSTRING
OPTIONALID or a comma separated list of values for retrieving specific videos.
safesearchBOOLEAN
OPTIONALA flag indicating that only videos suitable for all ages should be returned. Accepted values: `true`, `false`. Default: `false`
querySTRING
OPTIONALA URL encoded search term. If omitted, all videos are returned. This value may not exceed 100 characters. Example: `yellow+flower`
editorsChoiceBOOLEAN
OPTIONALSelect videos that have received an Editor's Choice award. Accepted values: `true`, `false`. Default: `false`
minWidthNUMBER
OPTIONALMinimum video width. Default: `0`
orderSELECT
OPTIONALHow the results should be ordered. Accepted values: `popular`, `latest`. Default: `popular`
langSTRING
OPTIONALLanguage code of the language to be searched in. Accepted values: `cs, da, de, en, es, fr, id, it, hu, nl, no, pl, pt, ro, sk, fi, sv, tr, vi, th, bg, ru, el, ja, ko, zh`. Default: `en`
orientationSELECT
OPTIONALWhether an video is wider than it is tall, or taller than it is wide. Accepted values: `all`, `horizontal`, `vertical`. Default: `all`
perPageNUMBER
OPTIONALDetermine the number of results per page. Accepted values: `3 - 200`. Default: `20`
Code Snippet
unirest.post("https://PixabaydimasV1.p.rapidapi.com/searchAnimations")
.header("X-RapidAPI-Host", "PixabaydimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://PixabaydimasV1.p.rapidapi.com/searchAnimations
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://PixabaydimasV1.p.rapidapi.com/searchAnimations")
.header("X-RapidAPI-Host", "PixabaydimasV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication