This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user