{"id":22107485,"url":"https://github.com/nextyfine-dev/instagram-media-api","last_synced_at":"2025-07-13T18:39:30.805Z","repository":{"id":175201465,"uuid":"653484321","full_name":"nextyfine-dev/Instagram-Media-API","owner":"nextyfine-dev","description":"The Instagram Media API provides easy access to Instagram posts (videos/images). Retrieve post URLs and details. Perfect for an Instagram downloader server. Simplify post scraping and media extraction with this powerful API.","archived":false,"fork":false,"pushed_at":"2023-06-14T16:50:35.000Z","size":91,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T03:23:57.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nextyfine-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-14T06:34:36.000Z","updated_at":"2023-10-06T02:04:05.000Z","dependencies_parsed_at":"2023-09-09T03:08:18.663Z","dependency_job_id":null,"html_url":"https://github.com/nextyfine-dev/Instagram-Media-API","commit_stats":null,"previous_names":["nextyfine-dev/instagram-media-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nextyfine-dev/Instagram-Media-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2FInstagram-Media-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2FInstagram-Media-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2FInstagram-Media-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2FInstagram-Media-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextyfine-dev","download_url":"https://codeload.github.com/nextyfine-dev/Instagram-Media-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextyfine-dev%2FInstagram-Media-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260453746,"owners_count":23011577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-01T08:17:49.435Z","updated_at":"2025-06-17T23:07:06.067Z","avatar_url":"https://github.com/nextyfine-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instagram Media API\n\nThe Instagram Media API provides easy access to Instagram posts (videos/images). Retrieve post URLs and details. Perfect for an Instagram downloader server. Simplify post scraping and media extraction with this powerful API.\n\n## Features\n\n- Retrieve Instagram post URLs\n- Fetch post details\n- Download images and videos from Instagram\n- Simplified media extraction process\n- Easy-to-use API endpoints\n\n## Installation\n\nTo get started with the Instagram Media API, follow these steps:\n\n1. Download the repository:\n   - HTTPS: `git clone https://github.com/nextyfine-dev/Instagram-Media-API.git`\n    Or\n   - SSH: `git clone git@github.com:nextyfine-dev/Instagram-Media-API.git`\n    Or\n   - GitHub CLI: `gh repo clone nextyfine-dev/Instagram-Media-API`\n    Or\n   - Download the zip.\n\n2. Navigate to the Instagram-Media-API folder:\n   ```\n   cd Instagram-Media-API\n   ```\n\n3. Install the required Node modules:\n   ```\n   yarn install\n   ```\n   or\n   ```\n   npm install\n   ```\n\n4. Run the server:\n   ```\n   yarn run dev\n   ```\n   or\n   ```\n   npm run dev\n   ```\n   The default server runs on `http://127.0.0.1:8080/`.\n\n## Usage\n\nAPI Endpoint:- `/api/v1/posts`\n\nExample:-\nPOST Request: `http://127.0.0.1:8080/api/v1/posts`\n\n- Request JSON Body:\n  ```json\n  {\n    \"url\": \"https://www.instagram.com/p/Cd75BuCv0-X/\"\n  }\n  ```\n\n- Expected Response:\n  ```json\n  {\n    \"status\": \"success\",\n    \"statusCode\": 200,\n    \"message\": \"Instagram post found!\",\n    \"data\": {\n      \"author\": {\n        \"@type\": \"Person\",\n        \"image\": \"https://scontent.cdninstagram.com/v/t51.2885-19/284537464_749720126207805_227865564929001282_n.jpg?stp=dst-jpg_s100x100\u0026_nc_cat=106\u0026ccb=1-7\u0026_nc_sid=8ae9d6\u0026_nc_ohc=xYV6H9adgHoAX-OsfYY\u0026_nc_ht=scontent.cdninstagram.com\u0026oh=00_AfCHTWq3I_pwNgvDKeudPgf8_sQ55BPj6i67f1nucWcSrA\u0026oe=64B0D991\",\n        \"name\": \"NEXTYFINE\",\n        \"alternateName\": \"@nextyfine\",\n        \"url\": \"https://www.instagram.com/nextyfine\"\n      },\n      \"headline\": \"A.R \u0026 V.R \\nNextyfine\\n.\\n.\\n. #nextyfine\\n.\\n.\\n.\\n#tech #technology #technologies #new #vr #ar #facebook #instadaily #it #informationtechnology #instagood #instalike #avatar #dream #info #future #art #instapic #f4f #anime #wow #l4l #img  #next #followｍe #share #all\",\n      \"hasVideo\": false,\n      \"hasImage\": true,\n      \"videos\": [],\n      \"images\": [\n        {\n          \"@type\": \"https://schema.org/ImageObject\",\n          \"caption\": \"A.R \u0026 V.R \\nNextyfine\\n.\\n.\\n. #nextyfine\\n.\\n.\\n.\\n#tech#technology #technologies #new #vr #ar #facebook #instadaily #it #informationtechnology #instagood #instalike #avatar #dream #info #future #art #instapic #f4f #anime #wow #l4l #img  #next #followｍe #share #all\",\n          \"representativeOfPage\": \"True\",\n          \"height\": \"740\",\n          \"width\": \"720\",\n          \"url\": \"https://scontent.cdninstagram.com/v/t51.29350-15/283213452_152473727321449_1580425100400943911_n.webp?stp=dst-jpg_s640x640\u0026_nc_cat=105\u0026ccb=1-7\u0026_nc_sid=8ae9d6\u0026_nc_ohc=DGWSo2ufdH4AX_z8i_r\u0026_nc_ht=scontent.cdninstagram.com\u0026oh=00_AfBIHpyV2N_dmcjxbHUd_Yz6pkEJKQM4WYe2D2lVhwc8LA\u0026oe=648E6D3D\"\n        }\n      ]\n    }\n  }\n  ```\n\nExample JS Code (with `fetch`):\n```javascript\nlet headersList = {\n  \"Accept\": \"*/*\",\n  \"User-Agent\": \"Thunder Client (https://www.thunderclient.com)\",\n  \"Content-Type\": \"application/json\"\n};\n\nlet bodyContent = JSON.stringify({\n  \"url\": \"https://www.instagram.com/p/Cd75BuCv0-X/\"\n});\n\nlet response = await fetch(\"http://127.0.0.1:8080/api/v1/posts\", { \n  method: \"POST\",\n  body: bodyContent,\n  headers: headersList\n});\n\nlet data = await response.text();\nconsole.log(data);\n```\n\n## Contributing\n\nContributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextyfine-dev%2Finstagram-media-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextyfine-dev%2Finstagram-media-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextyfine-dev%2Finstagram-media-api/lists"}