Can I use Pixabay API in My Wallpaper App?

422 Views Asked by At

I recently created a wallpaper app. I want to ask, do Pixabay allow to show their photos as wallpaper in a Wallpaper Application. Isn't there any policy restrictions for wallpaper apps in Pixabay.

Website: pixabay.com

1

There are 1 best solutions below

2
Rajesh Kakkad On

Yes you can. The PHP library I tested is from Zoonman PHP API Code on GitHub

Then obtain a Developer Account on Pixabay Developer API

There after install the library on your server and obtaining images URLs etc is just simple like this code asking for images on 'nature'. Change the query keyword and you will get images for that.

<?php

require_once 'vendor/autoload.php';

$pixabayClient = new \Pixabay\PixabayClient([
  'key' => 'yourPixabayKey'
]);

// test it
$results = $pixabayClient->get(['q' => 'nature'], true);
// show the results
var_dump($results);

Use data fields returned by the API to create your wallpaper App gallery.