How to get amazon affiliate product Url programatically - amazon-web-services

I need to get Amazon product affiliate Url programatically without logging in to
affiliate-program.amazon.com.
I know how to get it manually.
Log into Associates
Go to Product Linking -> Product Links
Search for the product and get the Text Link
I want the same programatically just by using ASIN, access key, amazon secret key,
and my associate tag.
Thanks in Advance.

You can use open-source libraries like Affiliate JS to automatically add the affiliation tags to links on your website.
<script data-aff="amazon.com, www.amazon.com : tag = MY-AMAZON-TAG" src="https://cdn.jsdelivr.net/npm/affiliate#1.2/dist/affiliate.js" async id="aff-js"></script>
Just simply replace MY-AMAZON-TAG with the tag that you made in Amazon (that probably looks like my-tag-20) and add the HTML right above the </head>. If you want to affiliate your URLs manually, simply add ?tag=my-tag to the end.
Before: https://www.amazon.com/dp/B0042TVKZY/
After: https://www.amazon.com/dp/B0042TVKZY/?tag=MY-AMAZON-TAG
Before: https://www.amazon.com/dp/B0042TVKZY/ref=longvndjks?nsjklasd=nkdnc
After: https://www.amazon.com/dp/B0042TVKZY/?tag=MY-AMAZON-TAG

I am looking for the same thing. From my searches, it looks like you can use the Product Advertising API by Amazon to generate the links.

Related

How do I set anchors for the postman documentation?

I make the documentation for api, how to make a cross reference (named anchor) with markdown in postman?
Is there such a similar option?
Take me to rest api ... <a name="api"> this is rest api </a>
You could create an element with an id "api" in a collection/folder/request description, and then link it in another place like [rest api](#api)
If you want to link a folder or request, you should get the ID (from the documentation itself) and then using the same Markdown as before with the respective ID.
Note: Take into account that Postman Documentation doesn't provide (at this moment) a way to specify a custom ID for a folder or request, so in case you're trying to do that, the best you can do is create an element with an id at the top of the description and then linking to that new element. It will scroll to a point under the title, which may result in a poorer user experience.

Amazon Products Api

I was looking around web and amazon affilate apis, but can not find a way without scrapping amazon product pages to extract some of the data to display on my site.
I have input box where users can copy/past amazon links and I want to create preview to the product on next page using the image, price and other content and link back to the page. I saw this Amazon products API - Looking for basic overview and information, I have try to use id that I think was correct one to get data for but I got wrong result.
Example
https://www.amazon.com/Hello-Kitty-Petite-House-Complete/dp/B00I90NTCE/ref=sr_1_2
I assume this is B00I90NTCE the id.
Can someone point me to correct direction?
Well you should read the documentation for the amazon product api. Here is a link to the documentation: http://docs.aws.amazon.com/AWSECommerceService/latest/DG/Welcome.html. You can also try out the api using the scratch pad: http://webservices.amazon.com/scratchpad/index.html?rw_useCurrentProtocol=1. See also this link: http://docs.aws.amazon.com/AWSECommerceService/latest/GSG/SubmittingYourFirstRequest.html
The amazon api is RESTful which means it is stateless and it works over http. It is easy to use. you have to create a url with the required parameters. if you call this url from a programming language or copy/paste it in a browser, it will return xml. The xml will contain the product information such as product image, price, product description, amazon link etc. You can parse the xml using a suitable library for your programming language

How do I display the price from Amazon products with API?

I had my associates account closed by Amazon because I've entered my prices manually and I need to enter them using Product Advertising API so they'll be up to date every time. I just don't know exactly how to use that. I've tried with "Amazon Product in a Post" plugin but it shows the picture too while I'd like it to display just the price. If you guys know how to get rid of the picture or another way to insert the price with API, it would be a life saver.
You can use jQuery to remove picture with class amazon-image-wrapper in you page, and so you keep amazon api plugin:
<script type = "text/javascript">
$("amazon-image-wrapper").remove();
</script>
Don't forget to add jQuery in the head of the page:
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>

Creating a shorten URL for products using Amazon advertising API

I'm using Amazon's API to browse for some products and I would like to generate an affiliate link for some of them.
I know I can get a normal affiliate link from the DetailPageURL field in the response (and that I can create one manually following the affiliate link format) but I would like to find an automated way to create a shorten URL for a product that contains my tag.
2 technical notes:
Shorten URLs are the ones Amazon provides that look like amzn.to/12345
I know I create these manually via the associates panel, but I'm looking for a way to get them using an API.
Apparently this can be done using bit.y's API, as every Amazon URL shortened by bit.ly will get the amzn.to/{unique_id} format.

Search photo & videos from facebook

Can we search public photos & videos from facebook by tags as input perameter as we do in flickr using the tags we search photos and flickr API returns list of photos.
Any help or suggestion would be greatly appriciated.
Thanks
Gaurav
last time I checked, photos uploaded to Facebook do not have tags. Therefore, it isn't possible to return photos that match a tag. What you could do, is search for groups or apps on Facebook and then retrieve the public photos there.
The search URL format is https://graph.facebook.com/search?q=watermelon&type=post&access_token=AAAAAAITEghMBAHwKSuFoX7OpcyCezYGO1JkVzBaQq6fBdXoHPayxZCxta4EZC0fYSLPjO16Yf9FKOAkhOHrU2ROZCZB9fcbLsDtPFgy67dK5TXOeYJqG, where q is your query. More info can be found here. https://developers.facebook.com/docs/reference/api/
Here is an app that allows you to search facebook photos!
The below api query will return everything that has that object_id tagged.
https://graph.facebook.com/[object_id]/tagged
An example of this would be looking for everything tagging Heat Ultra Lounge (a project I'm working on). To get the objects tagged with this tag, I would use the below get address and include &access_token=[my or my app's access token]. Like so:
https://graph.facebook.com/118613151504271/tagged?access_token=[youraccesstoken]