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]
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
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.
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.
By @GisCoin Theme
Check the links that Christopher posted.
Copy link to clipboard
Copied
Thanks I made the plugin. You are the best.
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
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?
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.
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.
By @GisCoin Stock
Did you check the links that Christopher provided?
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
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*
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
*/
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.
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.
[Moderator deleted private information. Please do not post private information like e-mails and phone numbers]
Copy link to clipboard
Copied
I spend all night coding the Plug-In, Thank you for the information Adobe Rocks.
[Moderator deleted private information. Please do not post private information like e-mails and phone numbers]
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.
Copy link to clipboard
Copied
I suppose the API key should not be published publicly?
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.
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
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.
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.
Copy link to clipboard
Copied
ok so in each request i need to specified 0-100 then number two pagination 100-200 so fort.
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`:
https://stock.adobe.io/Rest/Media/1/Search/Files?locale=en_US&search_parameters[words]=cats&search_parameters[limit]=100&search_parameters[offset]=33900​
Copy link to clipboard
Copied
Nice, Thanks.