Hosted services
Fetch a web page
Scrape a page through a proxy that bypasses anti-bot protections, and get it back as markdown, plain text, or raw HTML.
POST
https://cloud.generalinput.com/v1/platform/proxy-scrapeAuthenticationRequires
platform:use on a platform API key. A CLI session always passes.Use it when a direct fetch is blocked. Returns markdown by default, which is the friendliest shape for a model.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
url | string | yes | The page to fetch. |
returnFormat | string | no | markdown (default), text, or html. |
shouldRenderJs | boolean | no | Render JavaScript first. Needed for single-page apps. Costs 5x. Default false. |
proxyMode | string | no | default (most sites), premium (10 to 25 credits, stronger anti-bot bypass), stealth (75 credits, the strongest protections). |
countryCode | string | no | Two-letter code (us, de) to route through a proxy in that country. |
Response
{ "content": "# Page title\n\nBody as markdown…", "statusCode": 200 }statusCode is the upstream site's status. A response may also carry isLikelyJsShell: true, meaning the page came back as an empty app shell and is worth retrying with shouldRenderJs.
Escalation
- Try a plain fetch yourself first. It is free.
- Blocked (403, captcha)? Call this route with the defaults.
- Content missing (a single-page app)? Add
shouldRenderJs: true. - Still blocked? Step
proxyModeup tostealth. Thedefaultmode already retries through the premium tier on its own, so the manual escalation that adds anything is straight tostealth.
Example
curl -s -X POST https://cloud.generalinput.com/v1/platform/proxy-scrape \
-H "Authorization: Bearer $GI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/pricing","returnFormat":"markdown"}'POSTSearch the web
Execute a web search and get ranked pages with titles, URLs, snippets, and relevance scores. Optionally search images and return page content.
POSTGeolocation
Seven operations on one route: geocode, reverse geocode, directions, distance matrix, text search, nearby search, and place details.