Backend API Integration Demo

Test the SERP & Web Scraping Backend API features

Backend API Demo
Test the SERP & Web Scraping Backend API integration

Authentication Required

SERP Search Demo
Integration Notes
Important information about the frontend-backend integration

Backend Server Status

Make sure the backend is running on localhost:8000. You can start it with:

cd D:\Projects\SerpBackend
docker-compose -f docker-compose.dev.yml up --build -d

Authentication Flow

  1. Sign up or sign in using the demo form
  2. The frontend receives a JWT token from the backend
  3. All subsequent API calls use this token for authentication
  4. The backend validates the token and processes requests

API Endpoints Tested

  • POST /api/auth/register - User registration
  • POST /api/auth/signin - User authentication
  • POST /api/serp/search - SERP search
  • POST /api/scrape/scrape - Web scraping
  • GET /health - Health check

Token System

Each API call consumes tokens based on the operation:

  • SERP search: 5 tokens per request
  • Web scraping: 2 tokens per request
  • Tokens are deducted from user balance after successful operations

Error Handling

The frontend handles various error scenarios:

  • Network connectivity issues
  • Authentication failures
  • Insufficient token balance
  • Invalid request parameters
  • Backend server errors