Get agent by id

This API fetches the agent by given agent id.

Code

$http.get("https://api.agenty.com/2.0/agents/{AgentId}?key={ApiKey}")
            .success(function (response) {
               console.log(response)
            })
	        .error(function (response) {
               console.log(response) 
            });

Sample output

{
  "agent_id": "78142457cb",
  "agent_name": "extract prices example",
  "created_at": "2018-03-06 07:17:35Z",
  "version": 1,
  "status": "Active",
  "input_type": "MANUAL",
  "input_list_id": "96c564",
  "last_job_version": 35,
  "frequency": "",
  "schedule_description": "",
  "next_auto_run_at": "",
  "last_run_at": "2018-03-08 06:02:43Z",
  "last_run_job_id": 199,
  "last_run_status": "Completed",
  "last_run_pages_total": 24,
  "last_run_pages_processed": 24,
  "config": {
    "AgentName": "extract prices example",
    "CreatedOn": "02-19-2018 04:02:52",
    "CreatedBy": "Chrome Extension - 2.0",
    "Version": 2.0,
    "About": "Scraping agent by https://www.agenty.com",
    "SourceURL": "https://cdn.agenty.com/sample_content/list/ecommerce-product-list.html",
    "Collections": [
      {
        "Name": "Collection1",
        "Fields": [
          {
            "Name": "ProductName",
            "Type": "CSS",
            "Selector": ".list-group-item-heading",
            "Extract": "TEXT",
            "Attribute": null,
            "From": null,
            "Visible": true,
            "CleanTrim": true,
            "JoinResult": false,
            "PostProcessing": []
          },
          {
            "Name": "ProductPrice",
            "Type": "CSS",
            "Selector": ".lead",
            "Extract": "TEXT",
            "Attribute": null,
            "From": null,
            "Visible": true,
            "CleanTrim": true,
            "JoinResult": false,
            "PostProcessing": []
          },
          {
            "Name": "ProductImage",
            "Type": "CSS",
            "Selector": ".list-group-image",
            "Extract": "ATTR",
            "Attribute": "src",
            "From": null,
            "Visible": true,
            "CleanTrim": true,
            "JoinResult": false,
            "PostProcessing": []
          },
          {
            "Name": "ProductCartLink",
            "Type": "CSS",
            "Selector": ".btn-success",
            "Extract": "ATTR",
            "Attribute": "href",
            "From": null,
            "Visible": true,
            "CleanTrim": true,
            "JoinResult": false,
            "PostProcessing": []
          },
          {
            "Name": "Page",
            "Type": "DEFAULT",
            "Selector": "",
            "Extract": "TEXT",
            "Attribute": null,
            "From": "REQUEST_URL",
            "Visible": true,
            "CleanTrim": true,
            "JoinResult": false,
            "PostProcessing": []
          }
        ]
      }
    ],
    "DynamicSelectors": {
      "Enabled": false,
      "ListId": null,
      "Data": []
    },
    "Header": {
      "Method": "GET",
      "Encoding": "utf-8",
      "TimeOut": 10,
      "ReadWriteTimeout": 10,
      "KeepSameURL": false,
      "ConnectionAlive": true,
      "HttpPost": {
        "Url": "",
        "PostData": "",
        "ContentType": "application/x-www-form-urlencoded"
      },
      "Data": [
        {
          "Key": "Accept",
          "Value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
        },
        {
          "Key": "User-Agent",
          "Value": "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"
        },
        {
          "Key": "Accept-Language",
          "Value": "*"
        }
      ]
    },
    "AutoRedirect": {
      "Enabled": true,
      "MaxAutoRedirect": 3
    },
    "FailRetry": {
      "Enabled": false,
      "MaxTryCount": 0,
      "MaxTryTime": 0,
      "TryInterval": 0
    },
    "Proxy": {
      "Enabled": false,
      "Type": null,
      "Address": "",
      "UserName": "",
      "Password": "",
      "Domain": "",
      "DynamicField": ""
    },
    "Throttling": {
      "Enabled": false,
      "DelayType": "",
      "DelaySeconds": 0
    },
    "RequestViaBrowser": {
      "Enabled": false,
      "BrowserType": null,
      "AjaxEnabled": false,
      "ImagesEnabled": false,
      "WaitForAjaxElement": 5
    },
    "Login": {
      "Enabled": false,
      "AuthenticationType": "FORM",
      "Data": [],
      "BasicAuthentication": null
    },
    "Pagination": {
      "Enabled": false,
      "Type": "",
      "Selector": "",
      "PageLimit": 10
    },
    "FormSubmit": null,
    "Options": null,
    "Output": {
      "Type": null,
      "Path": null,
      "FileName": "output.csv",
      "PostDataOnAbortCancel": false,
      "IncludeHeader": true
    },
    "Input": {
      "Type": "DIRECT",
      "Path": null,
      "FileType": "",
      "HasHeaders": false,
      "InlineContent": false,
      "Limit": {
        "Enabled": false,
        "StartAt": 0,
        "StopAt": 0
      },
      "Reference": {
        "Enabled": false,
        "Collection": 0,
        "Field": null
      },
      "Data": []
    }
  }
}