Jump to content

An Alamy Search Box for External Websites


Brad Mitchell

Recommended Posts

We need some good ways to integrate our Alamy stock photography portfolios into our personal websites.  This creates a win-win for both of us.

 

For example, there should be a way that I could add an Alamy search box to my website.  When a user enters a search term, that should then cause my Alamy portfolio page to open up with the search results from my images (not just the base portfolio page itself, but the portfolio page search results).

 

Or there should be some HTML code that I can drop into my website that embeds my Alamy portfolio into my website ... maybe with options to include the portfolio headers images or not.

 

Thanks!

Link to comment
Share on other sites

5 hours ago, Brad Mitchell said:

We need some good ways to integrate our Alamy stock photography portfolios into our personal websites.  This creates a win-win for both of us.

 

For example, there should be a way that I could add an Alamy search box to my website.  When a user enters a search term, that should then cause my Alamy portfolio page to open up with the search results from my images (not just the base portfolio page itself, but the portfolio page search results).

 

Or there should be some HTML code that I can drop into my website that embeds my Alamy portfolio into my website ... maybe with options to include the portfolio headers images or not.

 

Thanks!

 

There used to be exactly such a search box. It was a bit crude, with returning only 10 images at a time. But it worked.

Has that been retired with the Affiliate program or when we got the Portfolio page? I don't see it anywhere.

Anyway your Portfolio page contains a search box to search for only your images.

 

wim

Link to comment
Share on other sites

  • 3 weeks later...
On 06/09/2021 at 05:09, wiskerke said:

 

There used to be exactly such a search box. It was a bit crude, with returning only 10 images at a time. But it worked.

Has that been retired with the Affiliate program or when we got the Portfolio page? I don't see it anywhere.

Anyway your Portfolio page contains a search box to search for only your images.

 

wim

Right.  Thanks Wim.  The search box on my Portfolio page is great, but is there html code I can use to put a search box on my own non-Alamy webpage, with the search results then coming up within my Alamy portfolio, preferably in a new tab?  I can probably figure out how make a search box, but I don't know how to structure the action attribute in the <form> element.

Link to comment
Share on other sites

17 minutes ago, Brad Mitchell said:

Right.  Thanks Wim.  The search box on my Portfolio page is great, but is there html code I can use to put a search box on my own non-Alamy webpage, with the search results then coming up within my Alamy portfolio, preferably in a new tab?  I can probably figure out how make a search box, but I don't know how to structure the action attribute in the <form> element.

Maybe I just found a clue.  After messing around, I found that I can type the following web address:  https://www.alamy.com/search.html?qt=venice&qn=Brad Mitchell

and get to an Alamy image search results page just showing my images of Venice.  Would be better if the search results showed up in my Alamy Portfolio page instead of the more general Alamy search results page.  But maybe I can build a form on my website around this.

Link to comment
Share on other sites

Looks like I figured it out, though I have not fully tested it.  Here is code for a simple form that I can put on my website.  When a user submits a search phrase, a new tab will open in the user's browser with Alamy's general search results page (not my Portfolio page unfortunately) filtered for their search phrase and for me (Brad Mitchell) as contributor.

 

<form action="https://www.alamy.com/search.html" method="get" autocomplete="on" target="_blank" >
  <label for="qt"></label>
  Stock Photography <input type="text" id="qt" name="qt" placeholder="Search for images ...">
  <input type="hidden" id="qn" name="qn" value="Brad Mitchell">
  <input type="submit" value="Submit">
</form>

 

Now can anyone figure out how to adapt this to return search results on my Alamy Portfolio page (https://www.alamy.com/portfolio/bradmitchellphotography) instead of Alamy's general search results page?

Link to comment
Share on other sites

No idea. I don't think I fully understand why either.

The form action looks perfect.

Now find out how to adapt it to Alamy's affiliate program and you'll be getting a larger piece of the fee. 😁

And probably even get a percentage when the client decides to go with an image of a competing colleague contributor.

 

(Here we have one portmanteau word for competing colleague: conculega. Untranslatable. Even the Germans don't have it.)

 

wim

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.