
Getty Images
PhotographyBuild applications using the world's most powerful imagery. Our RESTful APIs are supported with technical documentation, sample code and SDKs so you can get up and running quickly. Access the world's most moving content Bring your story to life with premium images and videos. Streamline your workflows Integrate our search and download experience in your content publishing tools. Using our web-based API tool, step through some common workflow scenarios. Build more engaging websites with access to over 84 million embeddable images.
📚 Documentation & Examples
Everything you need to integrate with Getty Images
🚀 Quick Start Examples
// Getty Images API Example
const response = await fetch('http://developers.gettyimages.com/en/', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
Introduction to Getty Images API
If you're looking for a source of high-quality images, Getty Images is undoubtedly one of the best options. The good news is that you can take advantage of their vast library of stock photos, illustrations, and videos by using their API. Getty Images API is a public API that allows developers to access their image gallery and integrate it into their own applications.
Getting started with Getty Images API
To get started with the Getty Images API, you'll need to create an account and register your application. Once your application has been approved, you'll be given a Client ID
and Client Secret
that you'll need to use in all your API requests.
To make calls to the API, you need to authenticate yourself and include an access token with every request.
Searching for images using Getty Images API
The Getty Images API lets you search for images by keyword, category, or by the ID of the image. Here's an example of how to search for images using the Getty Images API in JavaScript:
fetch('https://api.gettyimages.com/v3/search/images?phrase=dog', {
headers: {
'Api-Key': 'YOUR_API_KEY',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
},
})
.then(response => response.json())
.then(data => console.log(data));
In this example, we're sending a GET
request to search for images with the keyword dog
. We're also including our Api-Key
and Authorization
headers in the request.
The API will return a JSON response containing an array of Image objects.
Retrieving image details using Getty Images API
To retrieve the details of an image, you'll need to use the Images
endpoint. Here's an example of how to retrieve image details using the Getty Images API in JavaScript:
fetch('https://api.gettyimages.com/v3/images/123456', {
headers: {
'Api-Key': 'YOUR_API_KEY',
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
},
})
.then(response => response.json())
.then(data => console.log(data));
In this example, we're sending a GET
request to retrieve the image with the ID 123456
. Again, we're including our Api-key
and Authorization
headers in the request.
Conclusion
If you're looking for high-quality images for your app or website, Getty Images API could be the perfect solution. By using their public API, you can easily integrate their vast library of images, illustrations, and videos into your application or website.
📊 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes