remove /json route
Build and Push Docker Images / build-and-push (push) Successful in 2m39s

This commit is contained in:
2025-07-13 14:46:10 +02:00
parent 667829102d
commit 4e3ef5d207
3 changed files with 0 additions and 92 deletions
-12
View File
@@ -91,17 +91,8 @@ RATE_LIMIT_MINUTE=60 # Requests per minute (default: 60)
- `GET /` - Visit URL and get HTML content
- `GET /seo` - Extract SEO information
- `GET /meta` - Extract meta tags and Open Graph data
- `GET /json` - Fetch JSON content from a website
- `GET /resulting-url` - Get the final URL after navigation (handles redirects)
The `/json` endpoint intelligently extracts JSON data from websites by:
- Directly parsing JSON responses (when Content-Type is application/json)
- Extracting JSON from `<script type="application/json">` tags
- Finding JSON in `data-json` attributes
- Searching for JSON-like structures in page content
- Parsing the entire page content as JSON if possible
### Management Endpoints
- `HEAD /` - Health check
@@ -122,9 +113,6 @@ curl -H "X-API-Key: your-api-key" "http://localhost:8000/?url=https://example.co
# Extract SEO data
curl -H "X-API-Key: your-api-key" "http://localhost:8000/seo?url=https://example.com"
# Fetch JSON content
curl -H "X-API-Key: your-api-key" "http://localhost:8000/json?url=https://api.example.com/data"
# Get resulting URL (handles redirects)
curl -H "X-API-Key: your-api-key" "http://localhost:8000/resulting-url?url=https://example.com"