Legacy EndpointsΒΆ

This section contains deprecated API endpoints that are maintained for backward compatibility. These endpoints are no longer recommended for new integrations and may be removed in future API versions.

⚠️ Deprecation Notice¢

The following endpoints have been superseded by newer, more powerful alternatives:

Legacy Endpoint Status Replacement Migration Deadline
/validate Deprecated /check June 2025
/bulk-validate Deprecated /bulk June 2025

For Single Domain ValidationΒΆ

❌ Legacy (Deprecated):

curl -X POST "https://api.reputeapi.com/v1/validate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"domain": "example.com"}'

βœ… Current (Recommended):

curl -X POST "https://api.reputeapi.com/v1/check" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"domain": "example.com"}'

For Bulk Domain ValidationΒΆ

❌ Legacy (Deprecated):

curl -X POST "https://api.reputeapi.com/v1/bulk-validate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"domains": ["example.com", "test.com"]}'

βœ… Current (Recommended):

curl -X POST "https://api.reputeapi.com/v1/bulk" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"domains": ["example.com", "test.com"]}'

πŸ“‹ Migration BenefitsΒΆ

Migrating to the new endpoints provides:

  • Enhanced Performance - 40% faster response times
  • Improved Accuracy - Advanced DNS resolution with fallback
  • Better Error Handling - More detailed error messages
  • New Features - Access to latest scoring algorithms
  • Long-term Support - Continued development and updates

πŸ› οΈ Migration ToolsΒΆ

Automated Migration ScriptΒΆ

#!/usr/bin/env python3
"""
ReputeAPI Legacy Endpoint Migration Script
Automatically updates your codebase to use new endpoints
"""

import re
import os
import glob

def migrate_endpoint_calls(file_path):
    """Migrate legacy endpoint calls in a file"""

    with open(file_path, 'r') as f:
        content = f.read()

    # Migration patterns
    migrations = [
        (r'/v1/validate\b', '/v1/check'),
        (r'/v1/bulk-validate\b', '/v1/bulk'),
        (r'\.validate\(', '.check('),
        (r'\.bulkValidate\(', '.bulk('),
    ]

    updated_content = content
    changes_made = 0

    for old_pattern, new_pattern in migrations:
        matches = re.findall(old_pattern, updated_content)
        if matches:
            updated_content = re.sub(old_pattern, new_pattern, updated_content)
            changes_made += len(matches)
            print(f"  Replaced {len(matches)} occurrences of '{old_pattern}'")

    if changes_made > 0:
        with open(file_path, 'w') as f:
            f.write(updated_content)
        print(f"βœ… Updated {file_path} ({changes_made} changes)")

    return changes_made

def migrate_project(project_path):
    """Migrate an entire project"""

    # File patterns to check
    file_patterns = [
        '**/*.py',
        '**/*.js', 
        '**/*.ts',
        '**/*.php',
        '**/*.rb',
        '**/*.go',
        '**/*.java'
    ]

    total_changes = 0
    files_updated = 0

    print(f"πŸ”„ Migrating ReputeAPI endpoints in {project_path}")
    print("=" * 50)

    for pattern in file_patterns:
        for file_path in glob.glob(os.path.join(project_path, pattern), recursive=True):
            if os.path.isfile(file_path):
                changes = migrate_endpoint_calls(file_path)
                if changes > 0:
                    total_changes += changes
                    files_updated += 1

    print("=" * 50)
    print(f"βœ… Migration complete!")
    print(f"   Files updated: {files_updated}")
    print(f"   Total changes: {total_changes}")

    if total_changes > 0:
        print("\n⚠️  Please test your application before deploying!")

if __name__ == "__main__":
    import sys

    if len(sys.argv) != 2:
        print("Usage: python migrate_reputeapi.py /path/to/your/project")
        sys.exit(1)

    project_path = sys.argv[1]

    if not os.path.exists(project_path):
        print(f"Error: Path {project_path} does not exist")
        sys.exit(1)

    migrate_project(project_path)

Testing MigrationΒΆ

# Download the migration script
curl -O https://raw.githubusercontent.com/reputeapi/migration-tools/main/migrate_endpoints.py

# Run migration on your project
python migrate_endpoints.py /path/to/your/project

# Test your application
npm test  # or pytest, or your test command

πŸ“š Legacy DocumentationΒΆ

For reference purposes, the legacy endpoint documentation is preserved below:

πŸ“ž Migration SupportΒΆ

Need help with migration? We're here to assist:


Don't wait until the deadline! Start your migration today with our API Reference for the latest endpoints.