cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.x rest api Get all products

Magento 1.x rest api Get all products

Hi, I am trying to fetch all products from my Magento store through an app built in PHP. I have successfully authenticated from my app and get oauth_token and secret. Now I am going to fetch products via this - http://magentohost/api/rest/products endpoint but getting 404 error. I have checked with other endpoint and they are giving me a 404 error. Anyone can help me out to solve this.

7 REPLIES 7

Re: Magento 1.x rest api Get all products

@tarun_abc refer the below link and let me know if you stuck anywhere.

 

https://magento.stackexchange.com/questions/243459/how-to-show-the-all-products-by-using-rest-api-in...

 

Thanks!

 

Re: Magento 1.x rest api Get all products

@Rahul Gupta  Thank you for your response. I have already used this but getting same error 404. I am using Mozilla REST client and getting this. See belowScreenshot.png

Re: Magento 1.x rest api Get all products

@tarun_abc please share the link of any image as these can be visible only once approved by moderators.

 

Thanks

Re: Magento 1.x rest api Get all products

Hello @tarun_abc 

 

Did you check this thread for the issue you are facing?

https://community.magento.com/t5/Magento-1-x-Programming/Rest-API-Return-404-page-Error-In-Live-Site...

 

apache2.con File (/etc/apache2/apache2.conf).

To enable rewrites it is necessary to add the option 'AllowOverride All'

<Directory /var/www/html/magento/>        
Options Indexes FollowSymLinks AllowOverride All Require all granted
</Directory>

Be careful with the directory path in the Tag 'Directory'. The path must match the location of your Magento installation on the file system. After changing the configuration restart the apache server

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Magento 1.x rest api Get all products

See this image
https://apps.webilly.com/images/Screenshot.png

I am getting this page every time I requested for product list.

Re: Magento 1.x rest api Get all products

@tarun_abc  try to add index.php in your url.

 

http://magentohost/index.php/api/rest/products

 

Thanks

Re: Magento 1.x rest api Get all products

@theMageComp  I have tried with your solution but still getting same 404 error.