- Features
- Supported Providers
- Tech Stack
- Getting Started
- API Documentation
- Authentication
- Environment Variables
- Deployment
- Contributing
- License
- Support
- π Secure API Key Authentication - JWT-based authentication with request quota management
- π Multiple Content Providers - Support for KMMovies, AnimeSalt, NetMirror, and more
- π― Comprehensive Endpoints - Search, details, streaming links, and download options
- π High Performance - Built with Next.js 15 and modern optimizations
- π± Modern Dashboard - User-friendly interface for API key management and documentation
- π Real-time Updates - Dynamic content scraping with caching strategies
- π Interactive Documentation - Built-in API playground with TypeScript examples
- π¨ Beautiful UI - Shadcn/ui components with Tailwind CSS
- πΎ PostgreSQL Database - Powered by Neon serverless PostgreSQL with Drizzle ORM
- π§ Email Notifications - Automated login alerts and quota warnings with beautiful HTML emails
-
KMMovies - Latest Bollywood, Hollywood, and dubbed movies
- Homepage listings with pagination
- Advanced search functionality
- Detailed movie information with IMDb ratings
- Multiple quality download links (480p, 720p, 1080p, 4K)
- Magic links resolver for direct downloads
-
NetMirror - Streaming content with multiple servers
- Homepage content with categories
- Search functionality
- Post details with metadata
- Stream links with playlist URLs
- AnimeSalt - Comprehensive anime database
- Latest anime releases
- Episode listings
- Streaming and download links
- Search with filters
- Framework: Next.js 15 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS + Shadcn/ui
- Authentication: Better Auth
- Database: Neon PostgreSQL + Drizzle ORM
- Web Scraping: Cheerio + Axios
- API Validation: Custom middleware with quota management
- Deployment: Vercel
- Node.js 18+ and npm/yarn/pnpm/bun
- PostgreSQL database (Neon recommended)
- Git
- Clone the repository
git clone https://github.com/Anshu78780/ScarperApi.git
cd ScarperApi- Install dependencies
npm install
# or
yarn install
# or
pnpm install
# or
bun install- Set up environment variables
cp .env.example .env.localEdit .env.local with your configuration (see Environment Variables)
- Run database migrations
npm run db:push- Start the development server
npm run dev- Open your browser Navigate to http://localhost:3000
Access the interactive API documentation at /dashboard/docs after logging in.
const response = await fetch('https://screenscapeapi.dev/api/kmmovies/search?q=inception', {
method: 'GET',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);GET /api/kmmovies- Latest releasesGET /api/kmmovies/search?q={query}- Search moviesGET /api/kmmovies/details?url={url}- Movie detailsGET /api/kmmovies/magiclinks?url={url}- Download links
GET /api/animesalt- Latest animeGET /api/animesalt/search?q={query}- Search animeGET /api/animesalt/details?url={url}- Anime detailsGET /api/animesalt/stream?url={url}- Streaming links
GET /api/netmirror- Homepage contentGET /api/netmirror/search?q={query}- Search contentGET /api/netmirror/getpost?id={id}- Post detailsGET /api/netmirror/stream?id={id}- Stream URLs
All API endpoints require authentication via API keys.
- Sign up at
/signup - Log in at
/login - Navigate to
/dashboard/apis - Generate a new API key
- Copy and use in your requests
Header (Recommended)
curl -H "x-api-key: YOUR_API_KEY" https://screenscapeapi.dev/api/kmmoviesQuery Parameter
curl "https://screenscapeapi.dev/api/kmmovies?api_key=YOUR_API_KEY"Session (Dashboard) Automatic when logged into the dashboard
Create a .env.local file with the following variables:
# Database
DATABASE_URL="postgresql://user:password@host/database"
# Better Auth
BETTER_AUTH_SECRET="your-secret-key-here"
BETTER_AUTH_URL="http://localhost:3000"
# Base URLs (optional - managed via providers.json)
# These are fetched from remote JSON for easy updates
# Optional: Rate Limiting
RATE_LIMIT_REQUESTS=100
RATE_LIMIT_WINDOW=900000
# Optional: Cookie Management
COOKIES_URL="https://your-cookies-endpoint.com/cookies.json"- Fork this repository
- Import to Vercel
- Add environment variables
- Deploy
npm run build
npm run startContributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]