To use the widget, add a
<script> tag to the page and then add the
<istock-affiliate> tag in the HTML where the image list is desired.
<html> ... <script src="https://developers.gettyimages.com/libs/affiliate/1.0/istock.js"></script> ... <hr /> <istock-affiliate api-key="API_KEY" affiliate-id="AFFILIATE_ID" search-phrase="trees" item-count="6" orientation="horizontal" image-style="photography" /> <hr /> ... </html>
The above would produce this output:
vertical. Default is
vector. If left blank, results will be mixed.
We have two search API endpoints that are specific to the needs of our Affiliate Partners:
You can read the full documentation in the AffiliateSearch section of our Open API Documentation (Swagger).