{"openapi": "3.0.0", "info": {"version": "1.0.0", "title": "WebAutomation REST API", "description": "<b>The Webautomation API</b> is organized around REST. Our API has predictable resource\u2212oriented URLs, accepts form\u2212encoded request bodies, returns JSON\u2212encoded responses, and uses standard HTTP response codes, authentication, and verbs.  <br/><br/><b>Authentication</b><br/>WebAutomation API uses <b>basic authentication</b> and you can send your email as username and password as shown below to reach any api endpoint. To tell curl to do an authenticated HTTP request, you use the \u2212u, \u2212\u2212user option to provide user name and password (separated with a colon). <br/><br/><b>Sample curl command</b><br/><pre>curl \u2212\u2212user username:password https://webautomation.io/api/{ENDPOINT}</pre> <br/><br/><b>Sample Python command</b><br/><pre>import requests<br/>from requests.auth import HTTPBasicAuth<br/><br/>api_url = 'https://webautomation.io/api/{ENDPOINT}'<br/>r = requests.post(api_url, auth=HTTPBasicAuth('username', 'password'), data={})<br/>r = requests.get(api_url, auth=HTTPBasicAuth('username', 'password'))</pre><br/><br/>This will make curl use the default Basic HTTP authentication method. Yes, it is actually called Basic and it is truly basic. <br/><br/>To explicitly ask for the basic method use \u2212\u2212basic every request must have basic authentication  <br/><br/><b>Rate Limits</b><br/>Every API endpoint has its own limits please check it under each endpoint section.", "termsOfService": "", "contact": {"name": "WebAutomation Support", "url": "https://webautomation.io/?t=tech", "email": "info@webautomation.io"}}, "servers": [{"url": "https://webautomation.io/api", "description": "API server"}], "paths": {"/extractors/": {"get": {"description": "Gets list of all extractors that the user created or used. The response is a list of extractor objects, where each object contains basic information about a single extractor.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractors"], "summary": "List of extractors", "operationId": "SpiderList", "security": [{"basicAuth": []}], "responses": {"200": {"description": "Returning extractor objects", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/data"}}}}}}}, "/adjust_settings/{EXTRACTOR_ID}/": {"get": {"description": "Gets list of all extractors settings data that the user created or used. The response is a list of extractor settings , where each object contains basic information about a single extractor settings.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractors Settings"], "summary": "List of extractors settings ", "operationId": "Adjust_Settings", "security": [{"basicAuth": []}], "responses": {"200": {"description": "Returning extractor settings list", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/data"}}}}}}, "post": {"description": "You can save or change the Advanced settings  <br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractors Settings"], "summary": "settings will be update", "operationId": "Adjust_Settings", "security": [{"basicAuth": []}], "parameters": [{"settings_name": "DOWNLOAD_DELAY", "settings_value": 12}], "responses": {"200": {"description": "Returning extractor updated advanced settings with value ", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/data"}}}}}}}, "/extractor_variables/{EXTRACTOR_ID}/": {"get": {"description": "Get list of all extractor's variables data that the user created or used. The response is a list of extractor variables <br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractor Variables"], "summary": "List of extractors variables", "operationId": "extractor_variables", "security": [{"basicAuth": []}], "responses": {"200": {"description": "Returning extractor's  variables list", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/data"}}}}}}, "put": {"description": "You can update extractor's variables.  <br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractor Variables"], "summary": "extractor's variables will be update", "consumes": "application/json", "operationId": "extractor_variables", "security": [{"basicAuth": []}], "parameters": [{"key": "max_page_limit", "value": "24", "field_type": "any"}], "responses": {"200": {"description": "Returning extractor's updated variables with value ", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/resstart_urls"}}}}}}}, "/activate_extractor/{EXTRACTOR_ID}/": {"post": {"description": "You can activate extractor by spider_pd_id.  <br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Activate Extractor"], "summary": "Activate Extractor by spider_pd_id", "operationId": "activate_extractor", "security": [{"basicAuth": []}], "responses": {"200": {"description": "Activate extractor by spider_pd_id", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/data"}}}}}}}, "/add_extractor_domain/{EXTRACTOR_ID}/": {"get": {"description": "Gets list of all extractor domain  data that the user created or used. The response is a list of extractor domain.", "tags": ["Extractors Domain"], "summary": "List of extractors domains ", "operationId": "add_extractor_domain", "security": [{"basicAuth": []}], "responses": {"200": {"description": "Returning extractor settings list", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/data"}}}}}}}, "/extractors/run/{EXTRACTOR_ID}/": {"get": {"description": "Runs an extractor immediately for the given extractor ID.<br/><br/><b>Rate limit:</b> 30/Hour", "tags": ["Extractors"], "summary": "Run extractor", "operationId": "RunExtractor", "security": [{"basicAuth": []}], "parameters": [{"name": "EXTRACTOR_ID", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Returning extractor status", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RunExtractor"}}}}}}}, "/extractors/start_urls/{EXTRACTOR_ID}/": {"get": {"description": "You can get given extractor's starter links.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractors"], "summary": "Starter links", "operationId": "SpiderStarterLink", "security": [{"basicAuth": []}], "parameters": [{"name": "EXTRACTOR_ID", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Returning extractor link array", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SpiderStarterLink"}}}}}}, "delete": {"description": "You can delete given extractor's starter links.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractors"], "summary": "Delete starter links", "operationId": "DeleteSpiderStarterLink", "security": [{"basicAuth": []}], "parameters": [{"name": "EXTRACTOR_ID", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Returning extractor starter links array", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SpiderStarterLink"}}}}}}, "post": {"description": "You can set given extractor's starter links. This action will delete all existing starter links from extractor and add new ones. <br/><br/><b>Sample json to add links:</b><br/><pre>{\"start_urls\":\"LINK_1\",\"LINK_2\"]}</pre><br/><br/>To delete all start_urls send like {\"start_urls\":[]} or user DELETE request.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractors"], "summary": "Add Starter links", "consumes": "application/json", "operationId": "resstart_urls", "security": [{"basicAuth": []}], "parameters": [{"name": "EXTRACTOR_ID", "in": "path", "required": true, "schema": {"type": "integer"}}, {"name": "start_urls", "in": "body", "required": true, "schema": {"type": "array"}}], "responses": {"200": {"description": "Returning extractor link array", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/resstart_urls"}}}}}}}, "/extractors/{domain}/": {"get": {"description": "You can get extractors by its domain.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Extractors"], "summary": "List by domain", "operationId": "getEXTRACTORdomain", "security": [{"basicAuth": []}], "parameters": [{"name": "domain", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Returning list of extractors", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/resgetExtractorsdomain"}}}}}}}, "/sessions/": {"get": {"description": "You can get list of all sessions of your extractors.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Sessions"], "summary": "List of sessions", "operationId": "SessionList", "security": [{"basicAuth": []}], "responses": {"200": {"description": "Returning array of sessions", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/datasession"}}}}}}}, "/sessions/data/{SESSIONID}/": {"get": {"description": "You can get one sessions data.<br/><br/><b>Rate limit:</b> 1/Minute", "tags": ["Sessions"], "summary": "Session data", "operationId": "SessionData", "security": [{"basicAuth": []}], "parameters": [{"name": "SESSIONID", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "Returning session data object", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/resgetSessions"}}}}}}}, "/sessions/{SESSIONID}/": {"get": {"description": "You can get session information.<br/><br/><b>Rate limit:</b> 1000/Day", "tags": ["Sessions"], "summary": "Session information", "operationId": "getSession List", "security": [{"basicAuth": []}], "parameters": [{"name": "SESSIONID", "in": "path", "required": true, "schema": {"type": "string"}}], "responses": {"200": {"description": "Categories", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/resgetSession_List"}}}}}}}, "/scrape/": {"post": {"description": "You can scrape any link with help of raw data extractor. This extractor will help you to extract all html source of visited link.<br/><br/><b>Rate limit:</b> 100/Second", "tags": ["Scrape"], "summary": "Raw data scraper", "operationId": "Scrape", "security": [{"basicAuth": []}], "parameters": [{"name": "url", "in": "query", "required": true, "description": "The target link to scrape.", "schema": {"type": "array"}}, {"name": "use_js_rendering", "in": "query", "required": true, "description": "If true, real browser will be used to open the link", "schema": {"type": "boolean"}}, {"name": "use_rendential_proxy", "in": "query", "required": false, "description": "If needed for a specific website backconnect proxies will be used", "schema": {"type": "boolean", "default": false}}, {"name": "return_headers", "in": "query", "required": false, "description": "If true in response you will get headers. But only supported if use_js_rendering is false", "schema": {"type": "boolean", "default": false}}, {"name": "return_raw_data", "in": "query", "required": false, "description": "If true in response you will get raw html source.", "schema": {"type": "boolean", "default": true}}], "responses": {"200": {"description": "Returning raw data", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/datascrape"}}}}}}}}, "components": {"securitySchemes": {"basicAuth": {"type": "http", "scheme": "basic"}}, "schemas": {"data": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {"$ref": "#/components/schemas/restotalsData"}}, "restotalsData": {"type": "object", "properties": {"id": {"type": "integer", "example": "3308"}, "designer": {"type": "integer", "example": "128"}, "project": {"type": "integer", "example": "89"}, "type": {"type": "integer", "example": "1"}, "spider_base": {"type": "integer", "example": "82"}, "spider_base_version": {"type": "integer", "example": "269"}, "name": {"type": "string", "example": "skroutz.gr"}, "domain": {"type": "string", "example": "skroutz.gr"}, "method": {"type": "string", "example": "regular"}, "created_on": {"type": "string", "example": "2021-02-09T14:39:53.495827Z"}, "updated": {"type": "string", "example": "2021-02-09T14:39:53.496886Z"}, "success": {"type": "boolean"}}}, "datasession": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {"$ref": "#/components/schemas/resdatasession"}}, "resdatasession": {"type": "object", "properties": {"id": {"type": "integer", "example": "93240"}, "spider": {"type": "integer", "example": "3308"}, "job_id": {"type": "string", "example": "c2e593006ae411eb83dc74d02b99a0a7"}, "status": {"type": "string", "example": "completed"}, "score": {"type": "string", "example": "68.00"}, "item_count": {"type": "integer", "example": "8"}, "request_count": {"type": "integer", "example": "9"}, "item_dropped_count": {"type": "integer", "example": "0"}, "response_count": {"type": "integer", "example": "9"}, "finish_reason": {"type": "string", "example": "finished"}, "elapsed_time_seconds": {"type": "string", "example": "18.00"}, "start_time": {"type": "string", "example": null}, "end_time": {"type": "string", "example": "2021-02-09T17:40:53.141513Z"}, "created_on": {"type": "string", "example": "2021-02-09T14:40:31.940942Z"}, "updated": {"type": "string", "example": "2021-02-09T14:45:05.516742Z"}, "removed": {"type": "boolean"}}}, "resgetSession_List": {"type": "object", "properties": {"id": {"type": "integer", "example": "93240"}, "spider": {"type": "integer", "example": "3308"}, "job_id": {"type": "string", "example": "c2e593006ae411eb83dc74d02b99a0a7"}, "status": {"type": "string", "example": "completed"}, "score": {"type": "string", "example": "68.00"}, "item_count": {"type": "integer", "example": "8"}, "request_count": {"type": "integer", "example": "9"}, "item_dropped_count": {"type": "integer", "example": "0"}, "response_count": {"type": "integer", "example": "9"}, "finish_reason": {"type": "string", "example": "finished"}, "elapsed_time_seconds": {"type": "string", "example": "18.00"}, "start_time": {"type": "string", "example": null}, "end_time": {"type": "string", "example": "2021-02-09T17:40:53.141513Z"}, "created_on": {"type": "string", "example": "2021-02-09T14:40:31.940942Z"}, "updated": {"type": "string", "example": "2021-02-09T14:45:05.516742Z"}, "removed": {"type": "boolean"}}}, "RunExtractor": {"type": "object", "properties": {"status": {"type": "boolean"}, "detail": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {}}, "data": {"type": "object", "properties": {"status": {"type": "string", "example": "running"}, "post": {"type": "string", "example": "running"}, "job_id": {"type": "string", "example": "e7436f1a7fc511eb83dc74d02b99a0a7"}, "session_id": {"type": "integer", "example": "95203"}}}}}, "SpiderStarterLink": {"type": "object", "properties": {"start_urls": {"type": "array", "xml": {"name": "Data", "wrapped": false}, "items": {"$ref": "#/components/schemas/resstart_urls"}}, "id": {"type": "integer", "example": "3308  "}, "designer": {"type": "integer", "example": "128"}, "project": {"type": "integer", "example": "89"}, "type": {"type": "integer", "example": "1"}, "spider_base": {"type": "integer", "example": "82"}, "spider_base_version": {"type": "integer", "example": "269"}, "name": {"type": "string", "example": "skroutz.gr"}, "domain": {"type": "string", "example": "skroutz.gr"}, "method": {"type": "string", "example": "regular"}, "created_on": {"type": "string", "example": "2021-02-09T14:39:53.495827Z"}, "updated": {"type": "string", "example": "2021-02-09T14:39:53.496886Z"}, "success": {"type": "boolean"}}}, "resstart_urls": {"type": "object", "properties": {"id": {"type": "integer", "example": "47802"}, "url": {"type": "string", "example": "https://www.skroutz.gr/c/32/cpu-epeksergastes/m/40/HP.html"}}}, "resgetExtractorsList": {"type": "object", "properties": {"id": {"type": "integer", "example": "3308  "}, "designer": {"type": "integer", "example": "128"}, "project": {"type": "integer", "example": "89"}, "type": {"type": "integer", "example": "1"}, "spider_base": {"type": "integer", "example": "82"}, "spider_base_version": {"type": "integer", "example": "269"}, "name": {"type": "string", "example": "skroutz.gr"}, "domain": {"type": "string", "example": "skroutz.gr"}, "method": {"type": "string", "example": "regular"}, "created_on": {"type": "string", "example": "2021-02-09T14:39:53.495827Z"}, "updated": {"type": "string", "example": "2021-02-09T14:39:53.496886Z"}, "removed": {"type": "string", "example": false}, "sessions": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {"$ref": "#/components/schemas/resresgetExtractorsList_urls"}}}}, "resresgetExtractorsList_urls": {"type": "object", "properties": {"id": {"type": "integer", "example": "95210"}, "spider": {"type": "integer", "example": "3308"}, "job_id": {"type": "string", "example": "c3c65f307fd811eb83dc74d02b99a0a7"}, "status": {"type": "string", "example": "completed"}, "score": {"type": "string", "example": "69.00"}, "item_count": {"type": "integer", "example": "11"}, "request_count": {"type": "integer", "example": "12"}, "item_dropped_count": {"type": "integer", "example": "0"}, "response_count": {"type": "integer", "example": "12"}, "finish_reason": {"type": "string", "example": "finished"}, "elapsed_time_seconds": {"type": "string", "example": "26.00"}, "start_time": {"type": "string", "example": null}, "end_time": {"type": "string", "example": "2021-03-08T09:38:03.163551Z"}, "created_on": {"type": "string", "example": "2021-03-08T06:37:33.827725Z"}, "updated": {"type": "string", "example": "2021-03-08T06:41:05.987084Z"}, "removed": {"type": "string", "example": false}}}, "resgetExtractorsdomain": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {"$ref": "#/components/schemas/cat_resgetExtractorsdomain"}}, "cat_resgetExtractorsdomain": {"type": "object", "properties": {"id": {"type": "integer", "example": "3306"}, "designer": {"type": "integer", "example": "128"}, "project": {"type": "integer", "example": "89"}, "type": {"type": "integer", "example": "1"}, "spider_base": {"type": "integer", "example": "86"}, "spider_base_version": {"type": "integer", "example": "104"}, "name": {"type": "string", "example": "spareroom.co.uk"}, "domain": {"type": "string", "example": "spareroom.co.uk"}, "method": {"type": "string", "example": "advanced"}, "created_on": {"type": "string", "example": "2021-03-08T06:37:33.827725Z"}, "updated": {"type": "string", "example": "2021-03-08T06:41:05.987084Z"}, "removed": {"type": "string", "example": true}}}, "resgetSessions": {"type": "object", "properties": {"id": {"type": "integer", "example": "93240  "}, "spider": {"type": "integer", "example": "3308"}, "job_id": {"type": "string", "example": "c2e593006ae411eb83dc74d02b99a0a7"}, "status": {"type": "string", "example": "completed"}, "score": {"type": "integer", "example": "68.00"}, "item_count": {"type": "integer", "example": "8"}, "request_count": {"type": "integer", "example": "9"}, "response_count": {"type": "integer", "example": "9"}, "finish_reason": {"type": "string", "example": "finished"}, "elapsed_time_seconds": {"type": "string", "example": "18.00"}, "results": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {"$ref": "#/components/schemas/res_results"}}}}, "res_results": {"type": "object", "properties": {"64-bit": {"type": "string", "example": "\u039d"}, "built-in-graphics": {"type": "string", "example": "-"}, "cache-memory": {"type": "string", "example": "11 MB"}, "description": {"type": "string", "example": ""}, "family": {"type": "string", "example": "Xeon"}, "image-1": {"type": "string", "example": ""}, "image-2": {"type": "string", "example": ""}, "includes-heatsink": {"type": "string", "example": "\u038c\u03c7\u03b9"}, "maximum-processor-frequency": {"type": "string", "example": "2,5 GHz"}, "microarchitecture": {"type": "string", "example": "Cascade Lake"}, "name": {"type": "string", "example": "HP Xeon Intel Xeon-Silver 4208 Tray"}, "nuclei": {"type": "integer", "example": "8"}, "packing": {"type": "string", "example": "Tray"}, "price": {"type": "string", "example": "626,45 \u20ac"}, "processor-frequency": {"type": "string", "example": "2,1 GHz"}, "product-code": {"type": "string", "example": "P02491-B21"}, "socket": {"type": "integer", "example": "3647"}, "thermal-design-power": {"type": "string", "example": "85 W"}, "threads": {"type": "integer", "example": "16"}, "unlocked": {"type": "string", "example": "\u038c\u03c7\u03b9"}, "url": {"type": "string", "example": "https://www.skroutz.gr/s/25867111/HP-Xeon-Intel-Xeon-Silver-4208-Tray.html"}, "year": {"type": "string", "example": "2019"}}}, "datascrape": {"type": "object", "properties": {"status": {"type": "boolean", "example": "true"}, "result": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {"$ref": "#/components/schemas/scraped_data"}}, "detail": {"type": "array", "xml": {"name": "Data", "wrapped": true}, "items": {}}}}, "scraped_data": {"type": "object", "properties": {"headers": {"type": "object", "example": "{}"}, "response": {"type": "string", "example": "<html><head>\n    <title>Comprehensive IP address data, IP geolocation API and database - IPinfo.io</title>\n    <meta charset=\"utf-8\">\n    <meta name=\"apple-itunes-app\" content=\"app-id=917634022\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no\">\n    <meta name=\"description\" content=\"We're the trusted source for IP address information, handling 20 billion IP geolocation API requests per month for over 1,000 businesses and 100,000+ developers\">\n\n    <link rel=\"manifest\" href=\"/static/manifest.json\">\n    <link rel=\"icon\" sizes=\"48x48\" href=\"/static/deviceicons/android-icon-48x48.png\">\n    <link rel=\"icon\" sizes=\"96x96\" href=\"/static/deviceicons/android-icon-96x96.png\">\n    <link rel=\"icon\" sizes=\"192x192\" href=\"/static/deviceicons/android-icon-192x192.png\">\n    <link rel=\"apple-touch-icon-precomposed\" href=\"/static/deviceicons/apple-icon-precomposed.png\">\n    <link type=\"image/x-icon\" href=\"/static/favicon-96x96.png?v3\" rel=\"shortcut icon\">\n\n    <meta property=\"twitter:card\" content=\"summary\">\n    <meta property=\"twitter:site\" content=\"@ipinfoio\">\n</head><body>THIS IS SOURCE HTML</body></html>"}, "url": {"type": "string", "example": "https://webautomation.io"}}}}}}