{"openapi": "3.1.0", "info": {"title": "Sous Scrape API", "version": "2.0.0", "description": "Web scraping, crawling, screenshots, search, AI extraction and a cloud browser. Auth: header X-API-Key: <key> (or Authorization: Bearer <key>)."}, "servers": [{"url": "https://sousproxy.com/scrape"}], "components": {"securitySchemes": {"key": {"type": "apiKey", "in": "header", "name": "X-API-Key"}}}, "security": [{"key": []}], "paths": {"/v1/scrape": {"post": {"summary": "Scrape one page", "tags": ["Scrape"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "proxy": {"type": "string", "enum": ["auto", "cheap", "vip", "mobile", "none"], "description": "auto = start on the base pool, switch to a stronger one if the site blocks"}, "country": {"type": "string", "description": "2-letter exit country: us, de, gb, ru ..."}, "session_id": {"type": "string", "description": "same value = same exit IP (sticky session)"}, "render": {"type": "string", "enum": ["auto", "true", "false"], "description": "auto = plain request first, real browser only if the page needs JavaScript or is blocked"}, "mobile": {"type": "boolean"}, "formats": {"type": "array", "items": {"type": "string", "enum": ["markdown", "html", "raw", "text", "links", "metadata", "extract", "screenshot", "json"]}}, "format": {"type": "string"}, "main_only": {"type": "boolean"}, "wait_for": {"type": "string"}, "wait_ms": {"type": "integer"}, "actions": {"type": "array", "items": {"type": "object"}}, "headers": {"type": "object"}, "cookies": {"type": "object"}, "method": {"type": "string"}, "body": {"type": "string"}, "max_age": {"type": "integer", "description": "serve from cache if not older than N seconds (free)"}, "change_tracking": {"type": "boolean", "description": "compare with your previous scrape of this URL"}, "prompt": {"type": "string", "description": "for format json: what to extract"}, "json_schema": {"type": "object", "description": "for format json: shape of the result"}, "screenshot": {"type": "boolean"}, "full_page": {"type": "boolean"}, "timeout": {"type": "integer"}, "retries": {"type": "integer"}}, "required": ["url"]}}}}}}, "/v1/batch": {"post": {"summary": "Scrape many URLs in the background", "tags": ["Scrape"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"urls": {"type": "array", "items": {"type": "string"}}, "formats": {"type": "array", "items": {"type": "string", "enum": ["markdown", "html", "raw", "text", "links", "metadata", "extract", "screenshot", "json"]}}, "webhook": {"type": "string"}, "concurrency": {"type": "integer"}}, "required": ["urls"]}}}}}}, "/v1/batch/{id}": {"get": {"summary": "Batch status and results", "tags": ["Scrape"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}, "delete": {"summary": "Cancel a batch", "tags": ["Scrape"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}}, "/v1/extract": {"post": {"summary": "Structured data: CSS schema, automatic or AI", "tags": ["Extract"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "proxy": {"type": "string", "enum": ["auto", "cheap", "vip", "mobile", "none"], "description": "auto = start on the base pool, switch to a stronger one if the site blocks"}, "country": {"type": "string", "description": "2-letter exit country: us, de, gb, ru ..."}, "session_id": {"type": "string", "description": "same value = same exit IP (sticky session)"}, "render": {"type": "string", "enum": ["auto", "true", "false"], "description": "auto = plain request first, real browser only if the page needs JavaScript or is blocked"}, "mobile": {"type": "boolean"}, "html": {"type": "string"}, "schema": {"type": "object"}, "prompt": {"type": "string"}, "json_schema": {"type": "object"}}}}}}}}, "/v1/screenshot": {"post": {"summary": "Screenshot of a page or element", "tags": ["Screenshot"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "proxy": {"type": "string", "enum": ["auto", "cheap", "vip", "mobile", "none"], "description": "auto = start on the base pool, switch to a stronger one if the site blocks"}, "country": {"type": "string", "description": "2-letter exit country: us, de, gb, ru ..."}, "session_id": {"type": "string", "description": "same value = same exit IP (sticky session)"}, "render": {"type": "string", "enum": ["auto", "true", "false"], "description": "auto = plain request first, real browser only if the page needs JavaScript or is blocked"}, "mobile": {"type": "boolean"}, "full_page": {"type": "boolean"}, "selector": {"type": "string"}, "width": {"type": "integer"}, "height": {"type": "integer"}, "format": {"type": "string"}, "json": {"type": "boolean"}}, "required": ["url"]}}}}}}, "/v1/map": {"post": {"summary": "All URLs of a site in seconds", "tags": ["Crawl"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "proxy": {"type": "string", "enum": ["auto", "cheap", "vip", "mobile", "none"], "description": "auto = start on the base pool, switch to a stronger one if the site blocks"}, "country": {"type": "string", "description": "2-letter exit country: us, de, gb, ru ..."}, "session_id": {"type": "string", "description": "same value = same exit IP (sticky session)"}, "render": {"type": "string", "enum": ["auto", "true", "false"], "description": "auto = plain request first, real browser only if the page needs JavaScript or is blocked"}, "mobile": {"type": "boolean"}, "search": {"type": "string"}, "limit": {"type": "integer"}, "subdomains": {"type": "boolean"}, "sitemap": {"type": "boolean"}}, "required": ["url"]}}}}}}, "/v1/crawl": {"post": {"summary": "Crawl a site in the background", "tags": ["Crawl"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "proxy": {"type": "string", "enum": ["auto", "cheap", "vip", "mobile", "none"], "description": "auto = start on the base pool, switch to a stronger one if the site blocks"}, "country": {"type": "string", "description": "2-letter exit country: us, de, gb, ru ..."}, "session_id": {"type": "string", "description": "same value = same exit IP (sticky session)"}, "render": {"type": "string", "enum": ["auto", "true", "false"], "description": "auto = plain request first, real browser only if the page needs JavaScript or is blocked"}, "mobile": {"type": "boolean"}, "max_pages": {"type": "integer"}, "max_depth": {"type": "integer"}, "include": {"type": "array", "items": {"type": "string"}}, "exclude": {"type": "array", "items": {"type": "string"}}, "format": {"type": "string"}, "sitemap": {"type": "boolean"}, "respect_robots": {"type": "boolean"}, "subdomains": {"type": "boolean"}, "webhook": {"type": "string"}}, "required": ["url"]}}}}}}, "/v1/crawl/{id}": {"get": {"summary": "Crawl status and pages (?offset=&limit=)", "tags": ["Crawl"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}, "delete": {"summary": "Cancel a crawl", "tags": ["Crawl"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}}, "/v1/search": {"post": {"summary": "Web search, optionally with page contents", "tags": ["Search"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"query": {"type": "string"}, "limit": {"type": "integer"}, "country": {"type": "string"}, "lang": {"type": "string"}, "scrape_results": {"type": "integer"}, "formats": {"type": "array", "items": {"type": "string", "enum": ["markdown", "html", "raw", "text", "links", "metadata", "extract", "screenshot", "json"]}}}, "required": ["query"]}}}}}}, "/v1/linkcheck": {"post": {"summary": "Redirect chain and final page of a link from each country", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "countries": {"type": "array", "items": {"type": "string"}}, "mobile": {"type": "boolean"}, "screenshot": {"type": "boolean"}, "proxy": {"type": "string"}}, "required": ["url"]}}}}}}, "/v1/monitors": {"get": {"summary": "Monitored links, plan and recent events", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}}, "post": {"summary": "Add a link to monitoring", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "name": {"type": "string"}, "country": {"type": "string"}, "interval_min": {"type": "integer"}, "mobile": {"type": "boolean"}, "keyword": {"type": "string"}, "track_content": {"type": "boolean"}, "webhook": {"type": "string"}}, "required": ["url"]}}}}}}, "/v1/monitors/plan": {"post": {"summary": "Buy a monitoring plan with credits or switch auto-renew", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"plan": {"type": "string", "enum": ["start", "pro"]}, "auto_renew": {"type": "boolean"}}}}}}}}, "/v1/monitors/{id}": {"get": {"summary": "One monitor with its events", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}, "post": {"summary": "Pause or resume", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"active": {"type": "boolean"}}}}}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}, "delete": {"summary": "Remove a monitor", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}}, "/v1/monitors/{id}/check": {"post": {"summary": "Check now", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "string"}}]}}, "/v1/domains": {"post": {"summary": "Bulk domain check: age, expiry, SSL, HTTP", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"domains": {"type": "array", "items": {"type": "string"}}}, "required": ["domains"]}}}}}}, "/v1/analyze": {"post": {"summary": "AI breakdown of a landing page", "tags": ["Media buying"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"url": {"type": "string"}, "country": {"type": "string"}, "lang": {"type": "string"}, "translate_to": {"type": "string"}}, "required": ["url"]}}}}}}, "/v1/agent": {"post": {"summary": "AI agent: a task in plain words, done in a real browser", "tags": ["AI"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}, "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "properties": {"task": {"type": "string"}, "url": {"type": "string"}, "max_steps": {"type": "integer"}, "proxy": {"type": "string"}, "country": {"type": "string"}, "output_schema": {"type": "object"}}, "required": ["task"]}}}}}}, "/v1/jobs": {"get": {"summary": "Your recent crawl and batch jobs", "tags": ["Account"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}}}, "/v1/account": {"get": {"summary": "Credits, prices and usage", "tags": ["Account"], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"type": "object"}}}}, "400": {"description": "Bad request"}, "401": {"description": "No or bad API key"}, "402": {"description": "Not enough credits"}, "429": {"description": "Too many concurrent requests"}, "502": {"description": "Target site failed (credits are not charged)"}}}}}}