🌐 Page Analysis API

🏠 Back to Home

✨ This endpoint analyzes a webpage and extracts key SEO information.

Please enter a valid URL starting with http:// or https://.


    

🚀 How to Use

Make a POST request to /analyze-page with the following JSON body:

{
    "url": "https://example.com"
}

📝 Response Format

The API returns a JSON object containing:

  • 📌 title: Page title
  • 📄 meta_description: Meta description content
  • 🔗 url: Original URL that was analyzed
  • 📝 body_text: Main text content from paragraph tags
  • 📊 heading_structure: Object containing h1-h6 headings
  • 🔄 internal_links: Array of links to same domain
  • 🌐 external_links: Array of links to other domains
  • 🎯 canonical: Canonical URL if specified
  • 🤖 meta_robots: Robots meta tag content if present

Example Response

{
    "title": "Example Domain",
    "meta_description": "This is an example page",
    "url": "https://example.com",
    "body_text": "This domain is for use in illustrative examples...",
    "heading_structure": {
        "h1": ["Example Domain"],
        "h2": ["Section 1", "Section 2"]
    },
    "internal_links": ["https://example.com/about"],
    "external_links": ["https://external-site.com"],
    "canonical": "https://example.com",
    "meta_robots": "index,follow"
}

Error Responses

  • 400: No URL provided in request
  • 500: Failed to fetch page or other server error

🚀 Benefits

  • 🔍 Gain insights into SEO elements and identify improvement areas
  • 🧠 Understand page structure and optimize for search visibility
  • 📊 Comprehensive analysis with data-driven insights for informed decisions
  • ⏱️ Automates analysis, saving time with a user-friendly interface
  • ⚙️ Customizable for different URLs with clear error handling
  • 🔗 Integrates with other tools and ensures regular updates based on latest practices