Pixabay API Documentation

Access millions of high-quality images and videos

Getting Started with Pixabay API

The Pixabay API provides a simple and powerful way to access over 2.3 million high-quality images, illustrations, vector graphics, and videos. Our API is perfect for developers, bloggers, and content creators looking to enhance their applications or websites with stunning visuals.

Key Features

Authentication

To use the Pixabay API, you need to sign up for a free account and obtain an API key:

  1. Create a Pixabay account at https://pixabay.com/accounts/register/
  2. Once logged in, get your API key from https://pixabay.com/api/docs/
  3. Include your API key in every request to the Pixabay API

Note: Keep your API key secret. Do not share it or expose it in client-side code.

Main Endpoint

GET https://pixabay.com/api/

Search for images and videos


https://pixabay.com/api/?key=YOUR_API_KEY&q=yellow+flowers&image_type=photo
      

Key Parameters

Parameter Description
key Your Pixabay API key (required)
q Search term
image_type Filter results by image type (all, photo, illustration, vector)
orientation Filter results by image orientation (all, horizontal, vertical)
category Filter results by category (e.g., backgrounds, nature, science)
min_width Minimum image width in pixels
min_height Minimum image height in pixels
colors Filter images by color properties
per_page Number of results per page (default: 20, max: 200)
page Result page to retrieve (default: 1)

Example Response


{
  "total": 4692,
  "totalHits": 500,
  "hits": [
    {
      "id": 195893,
      "pageURL": "https://pixabay.com/en/blossom-bloom-flower-195893/",
      "type": "photo",
      "tags": "blossom, bloom, flower",
      "previewURL": "https://cdn.pixabay.com/photo/2013/10/15/09/12/flower-195893_150.jpg",
      "previewWidth": 150,
      "previewHeight": 84,
      "webformatURL": "https://pixabay.com/get/35bbf209e13e39d2_640.jpg",
      "webformatWidth": 640,
      "webformatHeight": 360,
      "largeImageURL": "https://pixabay.com/get/ed6a99fd0a76647_1280.jpg",
      "fullHDURL": "https://pixabay.com/get/ed6a9369fd0a76647_1920.jpg",
      "imageURL": "https://pixabay.com/get/ed6a9364a9fd0a76647.jpg",
      "imageWidth": 4000,
      "imageHeight": 2250,
      "imageSize": 4731420,
      "views": 7671,
      "downloads": 6439,
      "likes": 5,
      "comments": 2,
      "user_id": 48777,
      "user": "Josch13",
      "userImageURL": "https://cdn.pixabay.com/user/2013/11/05/02-10-23-764_250x250.jpg"
    },
    // More image objects...
  ]
}
    

Image Gallery Example

Rate Limits

The Pixabay API has the following rate limits:

If you need higher limits, please contact Pixabay support.

Ready to start using the Pixabay API?

Sign Up for Pixabay API