Only 4 Video
Download & Upload Videos Easily
Professional video management platform
Video Downloader
Video Uploader
Click to upload or drag and drop
Video/Image files (Free)
Download/Upload History
No history yet
Quick Access to Video Platforms
Owner Dashboard
Manage platform settings and view revenue
Total Revenue
$0.00
Total Users
0
Total Downloads
0
Price Settings
💡 How It Works:
- User Earnings: 20% of the set rate per selected file size
- Owner Earnings: 80% of set rate + 100% of real-world price ($0.07 per 10MB)
- Referral Bonus: 10% one-time bonus when someone registers via referral
- Precision: Ranges from $0.000000001 to unlimited, increases with successful downloads
Revenue Breakdown
No revenue data available
User Dashboard
Track your earnings and referrals
Your Earnings
$0.00
20% from set user price + 10% one-time referral bonus. Precision ranges from $0.00 to $0.000000001 and increases unlimitedly.
Referral Link
Share Your Referral Link
Temporary User Access
Using temporary authentication. Google Cloud API authentication will be implemented once configured.
Request Payout
Choose your payout method. Google Cloud API will handle actual transactions once configured.
Available Balance: $0.00
Wire Transfer Information
Stripe Connect Information
Owner Access
Enter your credentials to access the owner dashboard
Reset Owner Password
Enter any 2 authorized emails and the owner code
Information
About Only 4 Video
Only 4 Video is a professional video download and upload platform designed to make video management simple and efficient. We provide users with an easy-to-use interface for downloading videos from various platforms and uploading their own content.
Our platform offers a unique revenue-sharing model where users can earn money by sharing their referral links and downloading videos. We believe in rewarding our community for their participation and growth.
Founded with the mission to democratize video content management, Only 4 Video continues to innovate and provide the best tools for content creators and video enthusiasts worldwide.
📌 All Page URLs
All page URLs are automatically tracked and updated. Copy any URL to share or bookmark specific sections.
🔧 Google Cloud API Setup Guide
📚 Overview
This guide will walk you through setting up all necessary Google Cloud APIs for your Only 4 Video platform. Follow each section step-by-step to enable authentication, video processing, payment handling, and revenue management.
🔧 Prerequisites
- 1. A Google Cloud Platform account (create at console.cloud.google.com)
- 2. Billing account enabled (required for most APIs)
- 3. Google AdMob account (create at admob.google.com)
- 4. Stripe account for payment processing (create at stripe.com)
🌐 Section 1: Google Cloud Project Setup
Step 1.1: Create a New Project
- 1. Go to Google Cloud Console
- 2. Click the project dropdown at the top of the page
- 3. Click "New Project"
- 4. Enter project name: "Only4Video-Platform"
- 5. Click "Create"
- 6. Wait for project creation to complete (30-60 seconds)
Step 1.2: Enable Billing
- 1. In the left menu, go to "Billing"
- 2. Click "Link a billing account"
- 3. Select existing billing account or create new one
- 4. Add payment method (credit card required)
- 5. Confirm billing setup
⚠️ Most APIs require billing enabled. You get $300 free credits for new accounts.
🔐 Section 2: Authentication API (Firebase Authentication)
Step 2.1: Enable Firebase
- 1. Go to Firebase Console
- 2. Click "Add project"
- 3. Select your existing "Only4Video-Platform" project
- 4. Confirm Firebase billing plan
- 5. Click "Continue"
Step 2.2: Enable Authentication Methods
- 1. In Firebase Console, click "Authentication" in left menu
- 2. Click "Get started"
- 3. Go to "Sign-in method" tab
- 4. Enable "Email/Password" - click Enable toggle, then Save
- 5. Enable "Google" - click, add support email, Save
- 6. (Optional) Enable "Facebook", "Twitter" for social login
Step 2.3: Get Configuration Keys
- 1. Click "Project Settings" (gear icon) in Firebase
- 2. Scroll to "Your apps" section
- 3. Click web icon (</>) to add web app
- 4. Register app name: "Only4Video-Web"
- 5. Copy the firebaseConfig object
- 6. Save these credentials securely
Example Config:
const firebaseConfig = {
apiKey: "AIzaSyXXXXXXXXXXXXXXXXX",
authDomain: "only4video.firebaseapp.com",
projectId: "only4video-platform",
storageBucket: "only4video.appspot.com",
messagingSenderId: "123456789",
appId: "1:123456789:web:xxxxx"
};
🎭 Section 3: Video Preview & Download API
Step 3.1: Enable YouTube Data API v3
- 1. Go to Google Cloud API Library
- 2. Search for "YouTube Data API v3"
- 3. Click on "YouTube Data API v3"
- 4. Click "Enable" button
- 5. Wait for activation (10-30 seconds)
Step 3.2: Create API Credentials
- 1. Go to "Credentials" in left menu
- 2. Click "Create Credentials" → "API Key"
- 3. Copy the API key immediately
- 4. Click "Restrict Key" for security
- 5. Under "API restrictions", select "YouTube Data API v3"
- 6. Under "Application restrictions", select "HTTP referrers"
- 7. Add your domain (e.g., "https://yoursite.com/*")
- 8. Click "Save"
Step 3.3: Enable Cloud Storage (for video uploads)
- 1. Search "Cloud Storage API" in API Library
- 2. Click "Enable"
- 3. Go to Cloud Storage
- 4. Click "Create Bucket"
- 5. Name: "only4video-uploads"
- 6. Location: Choose nearest region
- 7. Storage class: "Standard"
- 8. Access control: "Fine-grained"
- 9. Click "Create"
Step 3.4: Video Processing with Cloud Functions
- 1. Enable "Cloud Functions API" in API Library
- 2. Enable "Cloud Build API"
- 3. Install Google Cloud SDK on your computer
- 4. Run:
gcloud init - 5. Create function for video processing (Node.js example):
Deploy Command:
gcloud functions deploy processVideo \ --runtime nodejs18 \ --trigger-http \ --allow-unauthenticated \ --region us-central1
💰 Section 4: Revenue Validation API
Step 4.1: Enable Cloud Firestore
- 1. In Firebase Console, click "Firestore Database"
- 2. Click "Create database"
- 3. Select "Production mode"
- 4. Choose database location (nearest region)
- 5. Click "Enable"
- 6. Wait for setup to complete (1-2 minutes)
Step 4.2: Setup Security Rules
- 1. Go to "Rules" tab in Firestore
- 2. Replace default rules with validation rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /transactions/{transactionId} {
allow read: if request.auth != null;
allow create: if request.auth != null
&& request.resource.data.amount is number
&& request.resource.data.amount >= 0
&& request.resource.data.userId == request.auth.uid;
allow update, delete: if request.auth.uid == resource.data.userId
|| get(/databases/$(database)/documents/users/$(request.auth.uid)).data.role == 'owner';
}
match /revenue/{revenueId} {
allow read: if request.auth != null;
allow write: if get(/databases/$(database)/documents/users/$(request.auth.uid)).data.role == 'owner';
}
}
}
- 3. Click "Publish"
Step 4.3: Create Revenue Collections
- 1. Go to "Data" tab in Firestore
- 2. Click "Start collection"
- 3. Collection ID: "transactions"
- 4. Add first document with fields:
- 🎱 userId (string)
- • amount (number)
- • timestamp (timestamp)
- • validated (boolean)
- • status (string)
- 5. Repeat for "revenue" collection
💳 Section 5: Payment Processing API (Stripe Integration)
Step 5.1: Create Stripe Account
- 1. Go to Stripe.com
- 2. Click "Start now" or "Sign up"
- 3. Enter your email and create password
- 4. Verify email address
- 5. Complete business information
- 6. Add bank account for payouts
Step 5.2: Get API Keys
- 1. Login to Stripe Dashboard
- 2. Click "Developers" in top menu
- 3. Click "API keys" in left menu
- 4. Copy "Publishable key" (starts with pk_test_ or pk_live_)
- 5. Reveal and copy "Secret key" (starts with sk_test_ or sk_live_)
- 6. Store both keys securely - NEVER share secret key
⚠️ Test mode keys are for development. Switch to Live mode for production.
Step 5.3: Enable Stripe Connect (for payouts)
- 1. In Stripe Dashboard, go to "Connect" in left menu
- 2. Click "Get started"
- 3. Choose "Platform or marketplace"
- 4. Fill in platform details:
- • Platform name: "Only 4 Video"
- • Business type: Select appropriate
- • Integration type: "Custom"
- 5. Submit application
- 6. Wait for approval (usually instant for test mode)
Step 5.4: Setup Webhooks
- 1. In Stripe Dashboard, go to "Developers" → "Webhooks"
- 2. Click "Add endpoint"
- 3. Endpoint URL: "https://yoursite.com/api/stripe-webhook"
- 4. Select events to listen for:
- • payment_intent.succeeded
- • payment_intent.payment_failed
- • charge.refunded
- • account.updated
- • payout.paid
- 5. Click "Add endpoint"
- 6. Copy the "Signing secret" (starts with whsec_)
Step 5.5: Setup Google Cloud Function for Stripe
- 1. Create new Cloud Function: "processPayment"
- 2. Runtime: Node.js 18
- 3. Trigger: HTTP
- 4. Add Stripe SDK: npm install stripe
- 5. Set environment variables:
- • STRIPE_SECRET_KEY
- • STRIPE_WEBHOOK_SECRET
💱 Section 6: Currency Conversion API
Option A: Exchange Rates API (Free Tier Available)
- 1. Go to ExchangeRatesAPI.io
- 2. Click "Get Free API Key"
- 3. Sign up with email
- 4. Verify email
- 5. Copy your API key from dashboard
- 6. Free tier: 250 requests/month
Option B: Open Exchange Rates (Recommended)
- 1. Go to OpenExchangeRates.org
- 2. Click "Sign up free"
- 3. Choose "Forever Free" plan
- 4. Complete registration
- 5. Get App ID from dashboard
- 6. Free tier: 1,000 requests/month
API Usage Example:
// Convert USD to other currencies const response = await fetch( `https://openexchangerates.org/api/latest.json?app_id=YOUR_APP_ID` ); const data = await response.json(); const eurRate = data.rates.EUR; const amountInEUR = usdAmount * eurRate;
Step 6.1: Integrate with Cloud Functions
- 1. Create Cloud Function: "convertCurrency"
- 2. Add currency API key to environment variables
- 3. Implement conversion logic
- 4. Cache exchange rates (update hourly)
- 5. Handle multiple currencies (USD, EUR, GBP, etc.)
💲 Section 7: Banking & Payout API
Option A: Stripe Payouts (Recommended)
- 1. Already configured in Section 5 (Stripe Connect)
- 2. Supports automatic bank transfers
- 3. Available in 40+ countries
- 4. Processing time: 2-7 business days
- 5. Fees: $0.25 per payout (USA)
Option B: PayPal Payouts
- 1. Go to PayPal Developer
- 2. Create account or login
- 3. Go to "My Apps & Credentials"
- 4. Click "Create App"
- 5. App name: "Only4Video-Payouts"
- 6. Copy Client ID and Secret
- 7. Enable "Payouts" in app settings
- 8. Submit for review (production access)
Option C: Wire Transfer via Banking APIs
- 1. Plaid - For US bank verification
- • Sign up at Plaid.com
- • Get API keys from dashboard
- • Use for bank account verification
- 2. Dwolla - For ACH transfers (US)
- • Sign up at Dwolla.com
- • Complete business verification
- • Get API credentials
- 3. TransferWise API - International transfers
- • Sign up at Wise.com/business
- • Apply for API access
- • Lower fees for international transfers
Step 7.1: Setup Payout Validation
- 1. Create Cloud Function: "validatePayout"
- 2. Verify user identity (KYC check)
- 3. Validate bank account details
- 4. Check minimum payout threshold
- 5. Record transaction in Firestore
- 6. Send confirmation email
📱 Section 8: Google AdMob API (Ad Revenue)
Step 8.1: Create AdMob Account
- 1. Go to AdMob.google.com
- 2. Sign in with Google account
- 3. Accept AdMob terms of service
- 4. Select your country
- 5. Choose your timezone
- 6. Complete account setup
Step 8.2: Add Your App
- 1. In AdMob dashboard, click "Apps"
- 2. Click "Add app"
- 3. Select "No" for "Is your app listed on a supported app store?"
- 4. Enter app name: "Only 4 Video Web"
- 5. Select platform: "Android" or "iOS" (or both)
- 6. Click "Add"
- 7. Copy your App ID (ca-app-pub-XXXXXXXXXXXXXXXX~XXXXXXXXXX)
Step 8.3: Create Ad Units
- 1. In your app page, click "Ad units"
- 2. Click "Get started"
- 3. Select ad format:
- • Banner - Top/bottom of page
- • Interstitial - Full screen between actions
- • Rewarded - Video ads for rewards
- • Native - Blends with content
- 4. Name the ad unit (e.g., "Homepage Banner")
- 5. Click "Create ad unit"
- 6. Copy Ad Unit ID (ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX)
- 7. Repeat for each ad placement
Step 8.4: Enable AdMob API
- 1. Go to Google Cloud API Library
- 2. Search for "AdMob API"
- 3. Click "Enable"
- 4. Create service account:
- 🏃🏼 Go to "Credentials"
- • Click "Create Credentials" 🛠️ "Service Account"
- • Name: "admob-service"
- • Grant role: "AdMob Admin"
- • Create and download JSON key
Step 8.5: Link AdMob to Firebase
- 1. In Firebase Console, go to "Project settings"
- 2. Click "Integrations" tab
- 3. Find "Google AdMob"
- 4. Click "Link"
- 5. Select your AdMob app
- 6. Confirm linking
- 7. Enable "Google Analytics for Firebase" (recommended)
Step 8.6: Setup Payment Information
- 1. In AdMob dashboard, go to "Payments"
- 2. Click "Manage settings"
- 3. Enter payee information:
- • Legal name
- • Address
- • Tax information
- 4. Select payment method:
- • Wire transfer (bank account)
- • Check by mail (some countries)
- 5. Set payment threshold (minimum $100)
- 6. Submit information for verification
⚠️ Payments issued monthly around 21st, processed by end of month.
Step 8.7: Implementation Code
Add to HTML <head>:
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXXXX"
crossorigin="anonymous"></script>
Banner Ad Example:
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-XXXXXXXXXXXXXXXX"
data-ad-slot="XXXXXXXXXX"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
📊 Section 9: Analytics & Monitoring APIs
Step 9.1: Google Analytics 4
- 1. In Firebase Console, enable "Google Analytics"
- 2. Create or link Analytics account
- 3. Accept terms of service
- 4. Copy Measurement ID (G-XXXXXXXXXX)
- 5. Add to your website header
Step 9.2: Cloud Monitoring
- 1. Enable "Cloud Monitoring API"
- 2. Go to Monitoring dashboard
- 3. Create alerts for:
- • High API usage
- • Failed transactions
- • Unusual revenue patterns
🔒 Section 10: Security & Compliance
Step 10.1: Enable Security Features
- 1. Enable "Cloud Armor" for DDoS protection
- 2. Setup "reCAPTCHA Enterprise" for bot protection
- 3. Enable "Cloud Identity-Aware Proxy"
- 4. Configure SSL/TLS certificates
- 5. Enable "Secret Manager" for API keys
Step 10.2: Compliance Setup
- • GDPR compliance (EU users)
- • PCI DSS for payment data
- • Data retention policies
- • User consent management
- • Privacy policy & terms of service
✅ Final Checklist
💵 Estimated Monthly Costs
Low Traffic (0-1000 users):
- • Firebase/Firestore: $0-25/month (free tier covers most)
- • Cloud Functions: $0-10/month
- • Cloud Storage: $0-5/month
- • Stripe fees: 2.9% + $0.30 per transaction
- • Currency API: $0 (free tier)
- • Total: $0-40/month
Medium Traffic (1000-10000 users):
- • Firebase/Firestore: $50-200/month
- • Cloud Functions: $20-50/month
- • Cloud Storage: $10-30/month
- • Total: $80-280/month + transaction fees
♐ AdMob revenue typically covers operational costs once you have steady traffic!