--- title: "Agent.Get - Web Scraping API - Mozenda" slug: "agentget" description: "Need more information about one of your web scraping agents? Use Agent.Get to pull an agent's definition and metadata. " updated: 2026-08-19T20:44:37Z published: 2026-08-25T14:00:00Z canonical: "help.mozenda.com/agentget" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Agent.Get ### Description Gets the **agent** definition and metadata for an **agent**. ### URL parameters | Name | Required | Type | Description | | --- | --- | --- | --- | | `AgentID` | True | numeric | Unique identifier of the **agent**. | | `Version (Optional)` | True | numeric | The version number of the definition that will be retrieved. If omitted, the latest version will be requested. | ### Responses | Name | Type | Description | | --- | --- | --- | | `Result` | string | `Success` if the operation was successful. | | `AgentID` | numeric | Unique identifier of the **agent**. | | `Name` | string | Unique name of the **agent**. | | `AgentGroupID` | numeric | Identifier of associate Agent Group. | | `TemplateID` | numeric | Identifier of associate Template. | | `TemplateOverrides` | string | Associated TemplateOverrides. | | `IsLocked` | bool | Unique name of the **agent**. | | `CollectionID` | numeric | Unique identifier of the **collection**. | | `Description` | string | Description of the **agent**. | | `Domain` | string | Starting domain of the **agent**. | | `Definition` | string | The XML definition of the **agent**. | | `Version` | numeric | The agent version that was returned with in the Definition property of the response. Any number less than this can be requested directly. | ### Sample request ``` curl -X GET "https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=Agent.Get&Version=5&AgentID=152042" ``` ### Sample responses #### XML ``` Success 152042 M-ItemGet-Test 1111 1234 "{\"Parameters\":{\"TestingInput\":\"XLSX\"}}" False 131807 Ready mozenda.com 1.0o 11.3636 Chromium 120.0.6099.109 0 -1 2024-01-17 16:10:18 0 Curtis, Jon jon@email.com 0 regex:(?i)(mozenda\\.com|doubleclick\\.net|sitescout\\.com|moatads\\.com|mookie\\.com|adrta\\.com|adsafeprotected\\.com|mookie1\\.com) regex:(?i)(\\.css|\\.js|\\.font)$ regex:(?i)(\\.png|\\.gif|\\.jpg|\\.tiff|\\.bmp|\\.webp|\\.ico|\\.svg)$ regex:(?i)(\\.mpg|\\.mpeg|\\.swf|\\.flv|\\.ogg|\\.webm|\\.mp4|\\.mp3|\\.wav)$ regex:(?i)(gstatic\\.com|googleapis\\.com|googlesyndication\\.com|google-analytics\\.com) Action-0 LoadPage 0 False 1 True 1 http://web1.mozenda.com/builderwelcomechromium Action-1 PagePlaceHolder 1 False http://web1.mozenda.com/builderwelcomechromium http://web1.mozenda.com/builderwelcomechromium False ]]> 5 ``` #### JSON (add `&ResponseFormat=JSON`) ``` { "AgentID": 152042, "Name": "M-ItemGet-Test", "AgentGroupID": 1111, "TemplateID": 1234, "TemplateOverrides": "{\"Parameters\":{\"TestingInput\":\"XLSX\"}}", "IsLocked": "False", "CollectionID": 131807, "Description": "", "Status": "Ready", "Domain": "mozenda.com", "Definition": { "__cdata": "\n\n\n 1.0o\n 11.3636\n Chromium\n 120.0.6099.109\n 0\n -1\n \n\n \n\n \n\n \n 2024-01-17 16:10:18\n 0\n Curtis, Jon\n support@mozenda.com\n 0\n \n\n \n\n \n\n \n regex:(?i)(mozenda\\\\.com|doubleclick\\\\.net|sitescout\\\\.com|moatads\\\\.com|mookie\\\\.com|adrta\\\\.com|adsafeprotected\\\\.com|mookie1\\\\.com)\n regex:(?i)(\\\\.css|\\\\.js|\\\\.font)$\n regex:(?i)(\\\\.png|\\\\.gif|\\\\.jpg|\\\\.tiff|\\\\.bmp|\\\\.webp|\\\\.ico|\\\\.svg)$\n regex:(?i)(\\\\.mpg|\\\\.mpeg|\\\\.swf|\\\\.flv|\\\\.ogg|\\\\.webm|\\\\.mp4|\\\\.mp3|\\\\.wav)$\n regex:(?i)(gstatic\\\\.com|googleapis\\\\.com|googlesyndication\\\\.com|google-analytics\\\\.com)\n \n \n\n \n\n \n Action-0\n LoadPage\n 0\n False\n 1\n True\n 1\n http://web1.mozenda.com/builderwelcomechromium\n \n\n \n\n \n Action-1\n PagePlaceHolder\n 1\n False\n http://web1.mozenda.com/builderwelcomechromium\n http://web1.mozenda.com/builderwelcomechromium\n False\n \n \n \n" }, "Version": 5 } ```