https://github.com/riad-azz/instagram-video-scraper
Simple API for Scraping instagram videos with no login required using puppeteer and express.
https://github.com/riad-azz/instagram-video-scraper
expressjs expressjs-api expressjs-server instagram instagram-api instagram-reels instagram-scraper instagram-video puppeteer scraper
Last synced: about 1 month ago
JSON representation
Simple API for Scraping instagram videos with no login required using puppeteer and express.
- Host: GitHub
- URL: https://github.com/riad-azz/instagram-video-scraper
- Owner: riad-azz
- License: mit
- Created: 2023-10-01T02:11:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-01T14:30:34.000Z (over 1 year ago)
- Last Synced: 2024-12-30T10:52:07.862Z (5 months ago)
- Topics: expressjs, expressjs-api, expressjs-server, instagram, instagram-api, instagram-reels, instagram-scraper, instagram-video, puppeteer, scraper
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 6
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Instagram Video Scraper API
Scrape instagram videos with no login required using puppeteer and express.
## Description
This is a powerful Instagram video scraper built using Express.js and Puppeteer. It allows you to extract video URL's from Instagram posts/reels with ease. Whether you want to create a personal video collection or analyze content for research, this tool makes the process straightforward.
## Getting Started
Clone the repository
```bash
git clone https://github.com/riad-azz/instagram-video-scraper.git
```Install dependencies
```bash
cd instagram-video-scraper && npm install
```Running the server
```bash
# Development
npm run dev# Production
npm start
```## API Endpoints
- `GET /api/video?url={POST_URL}`: Scrapes the video URL of the specified Instagram Post/Reel URL.
## Examples
### Request Example
```javascript
const fetch = require('node-fetch');const postUrl = 'https://www.instagram.com/p/{shortcode}/';
const apiUrl = `http://localhost:3000/api/video?url=${postUrl}`;fetch(apiUrl)
.then(response => response.json())
.then(data => {
// Handle the scraped data here
mp4Url = data.videoUrl;
console.log(mp4Url);
})
.catch(error => {
console.error(error);
});
```### Response Example
```json
{
"videoUrl": "https://scontent.cdninstagram.com/v/t50.2886-16/385047357_643...mp4?...",
}
```## License
This Instagram Video Scraper is licensed under the MIT License - see the LICENSE file for details.