{"id":764,"date":"2022-11-19T18:31:38","date_gmt":"2022-11-19T10:31:38","guid":{"rendered":"https:\/\/vmlogin.us\/help\/?p=764"},"modified":"2023-02-03T10:45:17","modified_gmt":"2023-02-03T02:45:17","slug":"how-to-integrate-vmlogin-with-puppeteer","status":"publish","type":"post","link":"https:\/\/www.vmlogin.us\/help\/api\/puppeteer.html","title":{"rendered":"How to Integrate VMLogin with Puppeteer?"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\">1. Using the Startup API : <\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:18px\"><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?skiplock=true&amp;profileId=xxxxxxxxxxxxxxxxxxxxxxxxxxx<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">The startup API will return : <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\"status\":\"OK\",\"value\":\"http:\/\/127.0.0.1:18500\"}<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><br><br><br>2. Access with the IP and port returned in step 1 : <\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:18px\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">http:\/\/127.0.0.1:18500\/json\/version<\/mark><\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">Returns a JSON string:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n   \"Browser\": \"Chrome\/102.0.5005.63\",\n   \"Protocol-Version\": \"1.3\",\n   \"User-Agent\": \"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/102.0.5005.63 Safari\/537.36\",\n   \"V8-Version\": \"10.2.154.4\",\n   \"WebKit-Version\": \"537.36 (@a45dd701fe466f94d3b0e13d1e51227b77b2b9ef)\",\n   \"webSocketDebuggerUrl\": \"ws:\/\/127.0.0.1:18500\/devtools\/browser\/15ed04d8-c64c-46a3-8b9a-f0f1dc27f586\"\n}<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><br><\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\">3. The <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">webSocketDebuggerUrl<\/mark> returned in step 2 is the puppeteer connection browser websocks protocol address.<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Using the Startup API : http:\/\/127.0.0.1:35000\/api\/v [&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-764","post","type-post","status-publish","format-standard","hentry","category-api"],"_links":{"self":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/764","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=764"}],"version-history":[{"count":6,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/764\/revisions"}],"predecessor-version":[{"id":2482,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/posts\/764\/revisions\/2482"}],"wp:attachment":[{"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/media?parent=764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/categories?post=764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vmlogin.us\/help\/wp-json\/wp\/v2\/tags?post=764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}