• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
1

Adobe Stock Integration On Wordpress Website

New Here ,
May 23, 2023 May 23, 2023

Copy link to clipboard

Copied

Hi There, I have a new pets blog. Yesterday I came up with an idea to integrate adobe stock on my website.  The idea is to make a new page for Animals phtots and display all the animals images on that page and users can search for their image. I had a research on this idea but could not find any insight on how to connect Stock with my wordpress website. Can someone please help me out please.

 

[moderator deleted the link to the external website]

TOPICS
Search , Stock API , Troubleshooting

Views

938

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 23, 2023 May 23, 2023

Copy link to clipboard

Copied

Hi. 

 

You can use the Stock API to get search results. If you want to refer traffic to Adobe Stock from your site, you can get a commission if users sign up for a new plan. You will need to create a Wordpress plugin, as the Stock API does not have a built in integration with Wordpress. If you have technical questions about the API, email stockapis@adobe.com

 

Here is the Stock affiliate guide:

https://developer.adobe.com/stock/docs/Affiliate-API-workflow.pdf

 

There is more information here:

https://developer.adobe.com/stock/docs/getting-started/07-workflow-guides/ 

 

Thanks,

Christopher

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 30, 2023 May 30, 2023

Copy link to clipboard

Copied

Pardon, Could you a make video, DO i have input the HTTP "GET" Sample request with headers to a blank .php ot hmtl.

I want to display a adobe stock search bar in my wordpress.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2023 Jun 04, 2023

Copy link to clipboard

Copied

quote

Pardon, Could you a make video, DO i have input the HTTP "GET" Sample request with headers to a blank .php ot hmtl.

I want to display a adobe stock search bar in my wordpress.


By @GisCoin Theme

Check the links that Christopher posted.

ABAMBO | Hard- and Software Engineer | Photographer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

Thanks I made the plugin. You are the best.GisCoinStock_Plugin.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2023 May 31, 2023

Copy link to clipboard

Copied

Hi Christopher,

Thank you for your message and providing the necessary information. I'm happy to let you know that I have successfully solved the issue. I have created a WordPress plugin to integrate the Stock API with our website, allowing us to get search results and refer traffic to Adobe Stock. Additionally, I have reviewed the Stock affiliate guide and found it to be very helpful in understanding the workflow.

If there are any further technical questions or concerns regarding the API, I will reach out to stockapis@adobe.com for assistance.

Once again, thank you for your support in resolving this matter.

Best regards,

Aiden

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 31, 2023 May 31, 2023

Copy link to clipboard

Copied

Hi Aiden. I'm pleased you were able to get it working. Is your integration available on a public repository or in a Wordpress plugin catalog?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 03, 2023 Jun 03, 2023

Copy link to clipboard

Copied

Sir, Christopher, I would need instructions, I would like to make a blank page in wordpress and add the search engine or bar of Adobe Stock so my customer could go to my website and search the images they want.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 04, 2023 Jun 04, 2023

Copy link to clipboard

Copied

quote

Sir, Christopher, I would need instructions, I would like to make a blank page in wordpress and add the search engine or bar of Adobe Stock so my customer could go to my website and search the images they want.


By @GisCoin Stock

Did you check the links that Christopher provided?

ABAMBO | Hard- and Software Engineer | Photographer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 05, 2023 Jun 05, 2023

Copy link to clipboard

Copied

Hi.

 

I cannot tell you how to create a WordPress plugin because I do not know how. We also cannot help you with code. All we can do is help you use the Stock APIs and help troubleshoot them.

 

If you have specific questions, please email stockapis@adobe.com

 

Thanks,

Christopher

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

OK my friend im building my own plugin those this code look right to you,

 

*Image removed that showed API key*

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

Or in the header like this

<?php
/*
Plugin Name: =====
Plugin URI: Your Plugin Website URL
Description: A WordPress plugin to retrieve HTTP GET/REST API data as a shortcode.
Version: 1.0.0
Author: Your Name
Author URI: Your Website URL
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
Text Domain: giscoinstock

GET /Rest/Media/1/Search/Files?locale=en_US
&search_parameters[words]=artwork HTTP/1.1
Host: stock.adobe.io
X-Product: Test/1.0
X-API-Key: c70xxxxx

*/

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

it say ( With each HTTP request, you will set mandatory and optional headers in addition to any search query
parameters. ) so i have to implement the request in each page i want to implement Adobe stock Search Query.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

I just coded  your exmaple for HTTP, now i'm coding your second example The partner’s web application sends a Search/Files request to the Stock API.

 

Abambo_1-1712408020655.png

[Moderator deleted private information. Please do not post private information like e-mails and phone numbers]

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

I spend all night coding the Plug-In, Thank you for the information Adobe Rocks.

 

Abambo_0-1712407901277.png

[Moderator deleted private information. Please do not post private information like e-mails and phone numbers]

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

Hi.

 

Yes, the API key and product name must be in the headers. Please do not post your API key on a public website. This is considered a secret and is registered to your email. If someone else used your key and abused the API, we would have to cut off access. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2023 Jun 06, 2023

Copy link to clipboard

Copied

@Christopher at Adobe ,

I suppose the API key should not be published publicly?

ABAMBO | Hard- and Software Engineer | Photographer

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 07, 2023 Jun 07, 2023

Copy link to clipboard

Copied

Thank you for the information i disable the api key and got a new one. Noi have another problem is not giving me the entire adobe stock images database, is limited to 30 images and i use page pagiantion to view different images it repeat the first 3o images in all the pages.

Untitled-3.jpgUntitled-4.jpgUntitled-5.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 07, 2023 Jun 07, 2023

Copy link to clipboard

Copied

Please read all the documentation, as this is covered. You need to implement pagination.
https://developer.adobe.com/stock/docs/getting-started/apps/05-search-for-assets/#paginating-results 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2023 Jun 09, 2023

Copy link to clipboard

Copied

Pardon me, for the interuption, i know you are busy individuals, from thsi discription it seem like the api key is restrcited to 100 images, i want to display at least 1000 images, i did page pagination and still i could used 100 images of the entire database. and the page reuslt it show the in the database there is more than 100 images.

 

 

images-found.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 09, 2023 Jun 09, 2023

Copy link to clipboard

Copied

Did you read the link I posted? Pagination means that you must get the data one page at a time, like Google search. When you perform a search, it does not give you all results at once. Instead, you get page one, then go to page two, until you reach the end. This works the same way.

 

Request 1. You request images 0-100

search_parameters[offset]=0

search_parameters[limit]=100

 

Request 2. You request images 100-200

search_parameters[offset]=100

search_parameters[limit]=100

 

Request 3. You request images 200-300

search_parameters[offset]=200

search_parameters[limit]=100

 

The `nb_results` field tells you the total. You continue increasing the [offset] until it reaches the total number.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2023 Jun 09, 2023

Copy link to clipboard

Copied

ok so in each request i need to specified 0-100 then number two pagination 100-200 so fort.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 09, 2023 Jun 09, 2023

Copy link to clipboard

Copied

Yes, exactly. Your first request might look like this:

https://stock.adobe.io/Rest/Media/1/Search/Files?locale=en_US&search_parameters[words]=cats&search_parameters[limit]=100&search_parameters[offset]=0

 This gets a lot of results you can see in `nb_results`:

    "nb_results"3398338,

If you wanted to get every image, you would need to make (3,398,338 / 100 images per page) = 33,984 API calls.

The last call would have an offset of 33,900, and it will return 84 assets.
https://stock.adobe.io/Rest/Media/1/Search/Files?locale=en_US&search_parameters[words]=cats&search_parameters[limit]=100&search_parameters[offset]=33900​

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2023 Jun 09, 2023

Copy link to clipboard

Copied

LATEST

Nice, Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Buy Adobe Stock
Getting Started