File size: 2,342 Bytes
bcf46c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
  "info": {
    "_postman_id": "8c5c6439-d4c3-4d40-971a-e9b4de5a6471",
    "name": "Opticparse — AI Vision Web Scraper",
    "description": "API collection for Opticparse, the plain-English vision-based web scraping platform.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Health Check",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "https://opticparse-python-sg.onrender.com/health",
          "protocol": "https",
          "host": ["opticparse-python-sg", "onrender", "com"],
          "path": ["health"]
        }
      },
      "response": []
    },
    {
      "name": "Vision Scrape",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-API-Key",
            "value": "your_api_key_here"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"target_url\": \"https://news.ycombinator.com\",\n  \"extraction_query\": \"Extract the top 5 article titles and their link URLs as structured JSON\"\n}"
        },
        "url": {
          "raw": "https://opticparse-python-sg.onrender.com/api/vision-scrape",
          "protocol": "https",
          "host": ["opticparse-python-sg", "onrender", "com"],
          "path": ["api", "vision-scrape"]
        }
      },
      "response": []
    },
    {
      "name": "Crawl multi-page",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "X-API-Key",
            "value": "your_api_key_here"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"start_url\": \"https://books.toscrape.com\",\n  \"extraction_query\": \"Get product titles and prices\",\n  \"follow_selector\": \"a.next\",\n  \"max_pages\": 3\n}"
        },
        "url": {
          "raw": "https://opticparse-python-sg.onrender.com/api/crawl",
          "protocol": "https",
          "host": ["opticparse-python-sg", "onrender", "com"],
          "path": ["api", "crawl"]
        }
      },
      "response": []
    }
  ]
}