Local API for Routine Automation Operations


1. Add parameter notifications=2 to the startup interface to disable the website notification box.

http://127.0.0.1:35000/api/v1/profile/start?profileId=xxxxxxxxxxx&skiplock=true&notifications=2

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.

http://127.0.0.1:35000/api/v1/profile/page/mouseclick?x=400&y=500&profileId=xxxx

Return example:

{"status":"OK","success":true,"value":"{}"}

If success = true, the execution is successful.


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.

http://127.0.0.1:35000/api/v1/profile/page/mousewheel?x=400&y=500&deltaX=0&deltaY=50&profileId=xxxx

Return example:

{"status":"OK","success":true,"value":"{}"}

If success = true, the execution is successful.



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.

http://127.0.0.1:35000/api/v1/profile/page/pagestate?profileId=xxxx

Return Example 1:

{"status":"OK","value":"","success":true,"baseURI":"https://www.vmlogin.us/", "readyState":"interactive","title":"Bing"}

Return Example 2:

{"status":"OK","value":"","success":true,"baseURI":"https://www.vmlogin.us/","readyState":"complete","title":"Bing"}

If success = true means successful execution, baseURI is the current page URL, and readyState is page load complete. title is the title.


5. Forward

http://127.0.0.1:35000/api/v1/profile/historyforward?profileId=xxxx



6. Back

http://127.0.0.1:35000/api/v1/profile/historyback?profileId=xxxx

7. Optimize the proxy detection interface (Add the active timeout parameter timeout milliseconds, timeout automatically returns)

http://127.0.0.1:35000/api/v1/proxy/test?proxytype=socks5&proxyserver=127.0.0.1&proxyport=1080&proxyusername=&proxypassword=&timeout=8000

Indicates that if the detect proxy does not have results for 8 seconds it does not wait and fails to return.



8. Refresh the page

http://127.0.0.1:35000/api/v1/profile/refresh?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx



9. The current tab to open the specified URL

http://127.0.0.1:35000/api/v1/profile/openurl?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&url=www.vmlogin.us



10. Get the source code of the web page

http://127.0.0.1:35000/api/v1/profile/source?profileId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx



11. Client restart interface

http://127.0.0.1:35000/api/v1/client/restart



12. Test proxy interface

http://127.0.0.1:35000/api/v1/proxy/test?proxytype=socks5&proxyserver=127.0.0.1&proxyport=1080&proxyusername=&proxypassword=

proxytype parameters: socks5/socks4/http/https

{"status":"ERROR", "value":"Failed to test the proxy server."}
{"status":"OK", "value":"country:HK\r\ncity:Central\r\nregion:HCW\r\ntz:Asia\/Hong_Kong\r\n"}

http://127.0.0.1:35000/api/v1/proxy/test?proxytype=socks5&proxyserver=127.0.0.1&proxyport=1080&proxyusername=&proxypassword=&urlindex=0

url_index   =  0    lumtest (Lumi detection IP address)

url_index   =  1    VMLogin (VMLogin IP database,support IPV6 detection)

url_index   =  2    ip-api.com (ip-api database)

13. Settings: Warn if the password has suffered a data leak, enable=false turn off the warning

http://127.0.0.1:35000/api/v1/profile/browser/password_manager_leak_detection?profileId=xxxxxx&enable=false



14. Import address API:

http://127.0.0.1:35000/api/v1/profile/addresses/import

② POST  

③ profileId

④ body (JSON need base64 encode):  

[{"name_on_card":"vmlogin","nickname":"vmlogin","card_number":"1111123456789","expiration_month":8,"expiration_year":2023}]




15. Import payment method API:

http://127.0.0.1:35000/api/v1/profile/credit_cards/import

② POST

③ profileId

④ body (JSON need base64 encode): 

[{"organization":"vmlogin ltd","street_address":"vmlogin  100","district":"Shushan","city":"hefei","province":"Anhui","zipcode":"230088","country_code":"CN","number":"13988888",

"full_name":"dawang","email":"cs@vmlogin.us"}]