{"id":610,"date":"2022-11-18T14:09:19","date_gmt":"2022-11-18T06:09:19","guid":{"rendered":"https:\/\/vmlogin.us\/help\/?p=610"},"modified":"2024-05-28T17:15:10","modified_gmt":"2024-05-28T09:15:10","slug":"local-api-for-routine-automation-operations","status":"publish","type":"post","link":"https:\/\/www.vmlogin.us\/help\/api\/local-api.html","title":{"rendered":"Local API for Routine Automation Operations"},"content":{"rendered":"\n<p class=\"has-medium-font-size\"><br>1. Add parameter notifications=2 to the startup interface to disable the website notification box.<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/start?profileId=xxxxxxxxxxx&amp;skiplock=true&amp;notifications=2<\/mark><br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">2. Mouse click: GET passes x , y coordinates is the mouse click coordinates, the upper left corner of the page is 0,0 basis point.<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/page\/mouseclick?x=400&amp;y=500&amp;profileId=xxxx<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Return example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"status\":\"OK\",\"success\":true,\"value\":\"{}\"}<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\">If success = true, the execution is successful.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">3. Mouse wheel: GET passes x , y coordinates as the mouse coordinates, deltaY is the scrolling value of the wheel up and down, negative is upward scroll, positive is downward scroll.<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/page\/mousewheel?x=400&amp;y=500&amp;deltaX=0&amp;deltaY=50&amp;profileId=xxxx<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Return example: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"status\":\"OK\",\"success\":true,\"value\":\"{}\"}<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\">If success = true, the execution is successful.<br><br><br><br>4. Page information query: GET profileId profile ID, you can read the URL of the current page, the title, whether to load the complete information.<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/page\/pagestate?profileId=xxxx<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Return Example 1:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"status\":\"OK\",\"value\":\"\",\"success\":true,\"baseURI\":\"https:\/\/www.vmlogin.us\/\", \"readyState\":\"interactive\",\"title\":\"Bing\"}<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\">Return Example 2: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"status\":\"OK\",\"value\":\"\",\"success\":true,\"baseURI\":\"https:\/\/www.vmlogin.us\/\",\"readyState\":\"complete\",\"title\":\"Bing\"}<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\">If success = true means successful execution, baseURI is the current page URL, and readyState is page load complete. title is the title.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">5. Forward<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/historyforward?profileId=xxxx<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>6. Back<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/historyback?profileId=xxxx<\/mark><br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">7. Optimize the proxy detection interface (Add the active timeout parameter timeout milliseconds, timeout automatically returns)<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/proxy\/test?proxytype=socks5&amp;proxyserver=127.0.0.1&amp;proxyport=1080&amp;proxyusername=&amp;proxypassword=&amp;timeout=8000<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">Indicates that if the detect proxy does not have results for 8 seconds it does not wait and fails to return.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>8. Refresh the page<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/refresh?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>9. The current tab to open the specified URL<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/openurl?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;url=www.vmlogin.us<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>10. Get the source code of the web page<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/source?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx<\/mark><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>11. Client restart interface<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/client\/restart<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>12. Test proxy interface<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/proxy\/test?proxytype=socks5&amp;proxyserver=127.0.0.1&amp;proxyport=1080&amp;proxyusername=&amp;proxypassword=<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">proxytype parameters: socks5\/socks4\/http\/https<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"status\":\"ERROR\", \"value\":\"Failed to test the proxy server.\"}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"status\":\"OK\", \"value\":\"country:HK\\r\\ncity:Central\\r\\nregion:HCW\\r\\ntz:Asia\\\/Hong_Kong\\r\\n\"}<\/code><\/pre>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/proxy\/test?proxytype=socks5&amp;proxyserver=127.0.0.1&amp;proxyport=1080&amp;proxyusername=&amp;proxypassword=&amp;urlindex=0<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">url_index &nbsp;&nbsp;= &nbsp;0 &nbsp;&nbsp;&nbsp;lumtest \uff08Lumi detection IP address\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\">url_index &nbsp;&nbsp;= &nbsp;1 &nbsp;&nbsp;&nbsp;VMLogin \uff08VMLogin IP database\uff0csupport IPV6 detection\uff09<\/p>\n\n\n\n<p class=\"has-medium-font-size\">url_index &nbsp;&nbsp;= &nbsp;2 &nbsp;&nbsp;&nbsp;ip-api.com \uff08ip-api database\uff09<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">13. Settings: Warn if the password has suffered a data leak, enable=false turn off the warning<\/p>\n\n\n\n<p style=\"font-size:17px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/browser\/password_manager_leak_detection?profileId=xxxxxx&amp;enable=false<\/mark><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><br>14. Import address API:<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2460 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/addresses\/import<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2461 POST&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2462 profileId<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2463 body \uff08JSON need base64 encode\uff09:&nbsp;&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2464 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"name_on_card\":\"vmlogin\",\"nickname\":\"vmlogin\",\"card_number\":\"1111123456789\",\"expiration_month\":8,\"expiration_year\":2023}]<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><br><br><br>15. Import payment method API:<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2460 <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:35000\/api\/v1\/profile\/credit_cards\/import<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2461 POST<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2462 profileId<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2463 body \uff08JSON need base64 encode\uff09:&nbsp;<\/p>\n\n\n\n<p class=\"has-medium-font-size\">\u2464<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;{\"organization\":\"vmlogin ltd\",\"street_address\":\"vmlogin&nbsp; 100\",\"district\":\"Shushan\",\"city\":\"hefei\",\"province\":\"Anhui\",\"zipcode\":\"230088\",\"country_code\":\"CN\",\"number\":\"13988888\",\n\n\"full_name\":\"dawang\",\"email\":\"cs@vmlogin.us\"}]<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Add parameter notifications=2 to the startup interfa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-610","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/comments?post=610"}],"version-history":[{"count":26,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/610\/revisions"}],"predecessor-version":[{"id":3822,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/610\/revisions\/3822"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/media?parent=610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/categories?post=610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/tags?post=610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}