Instagram Image downloader Using JavaScript - API - Wholly API

Sh Raj - Jan 24 '22 - - Dev Community

Wholly API :- https://wholly-api.appspages.online/

See This is the API endpoint-

https://wholly-api.appspages.online/websites/instagram.com/


Fetch Using JavaScript :- Ref. Google

Users can fetch the websites content on there website even using Pure JavaScript.
The different URLs will return you different results in JSON format. Just grab the JSON Using any Server Side or Client Side Language and Show on website.


Some API Uses are Given Below :-


Get Post's Images URL

https://wholly-api.appspages.online/websites/instagram.com/get-post.php?id={{Your Post's id}}

See Example Here :-
https://wholly-api.appspages.online/websites/instagram.com/get.php?id=CXCI49ABauD

It will return a JSON you something like this

{
    "status": 1,
    "id": "CXCI49ABauD",
    "user": "robertdowneyjr",
    "userimage": "https:\/\/imageproxy.pimg.tw\/resize?url=https%3A%2F%2Fscontent-mxp2-1.cdninstagram.com%2Fv%2Ft51.2885-19%2Fs150x150%2F143237481_227994098925572_6634984787450078090_n.jpg%3F_nc_ht%3Dscontent-mxp2-1.cdninstagram.com%26_nc_cat%3D1%26_nc_ohc%3DVw8f-EcRVOEAX_9Rdcf%26edm%3DAP_V10EBAAAA%26ccb%3D7-4%26oh%3D00_AT9sHFQHA_c3gNDCCf3JxjDVA6g2OdRxTxo7BizkuTUc4A%26oe%3D62021D39%26_nc_sid%3D4f375e",
    "images": [
        "https:\/\/img1.imginn.org\/?https:\/\/scontent-mxp2-1.cdninstagram.com\/v\/t51.2885-15\/sh0.08\/e35\/s640x640\/261084594_2924707011193308_3032430190944028166_n.jpg?_nc_ht=scontent-mxp2-1.cdninstagram.com&_nc_cat=100&_nc_ohc=BXj-qNYHjhsAX_2FOqK&edm=AP_V10EBAAAA&ccb=7-4&oh=00_AT96Q6nY747OyDVi56OsLcDnoE_aEU1e6k8Y141GgTNYow&oe=62025157&_nc_sid=4f375e",
        "https:\/\/img6.imginn.org\/?https:\/\/scontent-mxp2-1.cdninstagram.com\/v\/t51.2885-15\/sh0.08\/e35\/s640x640\/263237181_630058388018418_8819686837614848636_n.jpg?_nc_ht=scontent-mxp2-1.cdninstagram.com&_nc_cat=106&_nc_ohc=pqmWK8BQfvgAX9c9EaX&edm=AP_V10EBAAAA&ccb=7-4&oh=00_AT8JcFrQNNwshHa2APAkBoNcyrxyjW2hvvOIiXnEGovKtQ&oe=6201A575&_nc_sid=4f375e"
    ],
    "nickname": "Robert Downey Jr. Official",
    "description": " It\u2019s Friday, we\u2019re blasting The Beatles, going down memory lane and continuing our mission today for a great cause\u2026Want an autograph of your own and bragging rights for helping planet Earth? Thought so - check the link in the bio! "
}
Enter fullscreen mode Exit fullscreen mode

You can fetch the results using XHR or fetch API or Use WebScrapperJS in pure JavaScript.


Get User Data

https://wholly-api.appspages.online/websites/instagram.com/get-user.php?id={{Your Instagram Username}}

See Example Here :-
https://wholly-api.appspages.online/websites/instagram.com/get-user.php?id=robertdowneyjr

It will return a JSON you something like this

{
    "status": 1,
    "id": "robertdowneyjr",
    "user": "robertdowneyjr",
    "userimage": "https:\/\/imageproxy.pimg.tw\/resize?url=https%3A%2F%2Fscontent-mxp2-1.cdninstagram.com%2Fv%2Ft51.2885-19%2Fs150x150%2F143237481_227994098925572_6634984787450078090_n.jpg%3F_nc_ht%3Dscontent-mxp2-1.cdninstagram.com%26_nc_cat%3D1%26_nc_ohc%3DVw8f-EcRVOEAX_9Rdcf%26edm%3DAP_V10EBAAAA%26ccb%3D7-4%26oh%3D00_AT9sHFQHA_c3gNDCCf3JxjDVA6g2OdRxTxo7BizkuTUc4A%26oe%3D62021D39%26_nc_sid%3D4f375e",
    "postids": [
        "CXgs_RkJYUi",
        "CXCI49ABauD",
        "CW6S4trMpDA",
        "CWbL8fXPZj9",
        "CV8gUePvuoX",
        "CV3GfJIPHE8",
        "CVA8YCAFfo9",
        "CU-Yd_eFGvc",
        "CThycoMlPVq",
        "CTXeu4RF4Sz",
        "CTAvnrfhBqh",
        "CSuZR-Npuyw"
    ],
    "stories": "https:\/\/imginn.org\/api\/reels\/?id=1518284433",
    "nickname": "Robert Downey Jr. Official",
    "description": ""
}
Enter fullscreen mode Exit fullscreen mode

You can fetch the results using XHR or fetch API or Use WebScrapperJS.


The API will be improved more.
Features yet to be added :-

  • Reels & Video downloading
  • Load images in multiple pages
  • Multiple Image Downloading (Added ✅)
  • Profile image downloading (Added ✅)
  • and many more...

You can contribute here :- https://github.com/SH20RAJ/instaxapi or https://github.com/SH20RAJ/whollyapi/tree/main/websites/instagram.com


. . . . . .