This document explains how to use Python’srequests library to send HTTP/HTTPS requests through YumiProxy’s proxy service and retrieve response data from the target websiteipinfo.io.
import requests # Import the requests library for sending HTTP requests# ==================== Proxy Configuration (Replace with your actual credentials) ====================username = "YOUR_USERNAME" # Replace with the username parameter from YumiProxy dashboardpassword = "YOUR_PASSWORD" # Replace with the password parameter from YumiProxy dashboard# Build the proxy URL with authentication (format: protocol://username:password@proxy_server:port)# Replace proxy.yumiproxy.com:9091 with the proxy server (host) and port from YumiProxy dashboardproxy = f"http://{username}:{password}@proxy.yumiproxy.com:9091"# Define the proxies dictionary, specifying the same proxy for both HTTP and HTTPS protocolsproxies = { "http": proxy, # HTTP requests go through the proxy "https": proxy, # HTTPS requests go through the proxy}# ==================== Make Request and Handle Response ====================# Access ipinfo.io JSON endpoint via the proxy to get the outgoing IP and geolocation inforesponse = requests.get( "https://ipinfo.io/json", # Target URL proxies=proxies, # Pass the proxy configuration timeout=30 # Timeout in seconds to prevent hanging)# Print the raw JSON response from the server (includes IP, city, organization, etc.)print(response.text)
After completing the above steps, you have successfully integrated YumiProxy with your program, providing a safer and more flexible option for network connections.If you have any questions or suggestions while using our service, please don’t hesitate to reach out. We’d love to hear your feedback and are always happy to help.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"YumiProxy","description":"YumiProxy offers high‑speed, stable residential proxies with over 50 million real IPs, 99.9% success rate, 98.5% IP purity, coverage in 195+ countries and 2,500+ cities, and 99% country‑level location accuracy. Customizable solutions are available to meet all enterprise application scenarios and needs.","colors":{"primary":"#c1d61f","light":"#cbd7bd"},"logo":{"light":"https://mintcdn.com/yumiproxycom/xSCEdgCSOdtUPPql/images/%E9%BB%91.png?fit=max\u0026auto=format\u0026n=xSCEdgCSOdtUPPql\u0026q=85\u0026s=f3099dac0b3d165d1247bcbce1e0e57b","dark":"https://mintcdn.com/yumiproxycom/xSCEdgCSOdtUPPql/images/%E7%99%BD.png?fit=max\u0026auto=format\u0026n=xSCEdgCSOdtUPPql\u0026q=85\u0026s=a1dc4dbc9134465fa6d90b7344e2bbe2","href":"https://www.yumiproxy.com?utm_campaign=mintlify\u0026utm_medium=mintlify\u0026utm_source=mintlify"},"favicon":{"light":"https://mintcdn.com/yumiproxycom/io9LX-gQ4E8EqO2T/images/logo-100_100-2.png?fit=max\u0026auto=format\u0026n=io9LX-gQ4E8EqO2T\u0026q=85\u0026s=be7acd6dbed258a8677caddb4ba676db","dark":"https://mintcdn.com/yumiproxycom/io9LX-gQ4E8EqO2T/images/logo-100_100.png?fit=max\u0026auto=format\u0026n=io9LX-gQ4E8EqO2T\u0026q=85\u0026s=45893b05fa3048fd2ae945f9c0f0b561"},"background":{"decoration":"gradient","color":{"light":"#FFFFFF","dark":"#000000"}},"navbar":{"links":[{"href":"https://www.yumiproxy.com?utm_campaign=mintlify\u0026utm_medium=mintlify\u0026utm_source=mintlify","label":"Visit YumiProxy"}],"primary":{"type":"button","label":"Dashboard","href":"https://dash.yumiproxy.com/overview"}},"footer":{"socials":{"telegram":"https://t.me/yumiproxy","facebook":"https://www.facebook.com/people/YumiProxy/61591161726880","x":"https://x.com/YumiProxy6zaa","youtube":"https://youtube.com/@yumiproxy?si=WcLWdhBERyAZWx3u"}},"seo":{"indexing":"all"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"interaction":{"drilldown":true},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Price","icon":"book-open-cover","href":"https://www.yumiproxy.com/pricing/residential"},{"anchor":"Blog","icon":"newspaper","href":"https://yumiproxy.com/blog"}]},"languages":[{"language":"en","href":"userguide-overview"},{"language":"zh","href":"userguide-overview-zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"yumiproxycom","hasAudioNarration":false,"actualSubdomain":"yumiproxycom","customDomains":["docs.yumiproxy.com"],"gitSource":{"type":"github","owner":"yumi-proxy","repo":"docs","deployBranch":"yumiproxy","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b10f1369ffae5051c417b6f"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae95a96b9c52538cea7ef15:success","clientVersion":"0.0.4450","searchFilterCounts":[{"language":"zh","tag":"用户指南","count":34},{"language":"en","tag":"User Guide","count":34},{"language":"zh","tag":"YumiProxy的集成","count":26},{"language":"en","tag":"YumiProxy Integration","count":26},{"language":"zh","tag":"常见问题","count":18},{"language":"en","tag":"FAQS","count":18},{"language":"zh","tag":"产品问题","count":13},{"language":"en","tag":"Product Issues","count":13},{"language":"zh","tag":"YumiProxy与指纹浏览的集成","count":10},{"language":"en","tag":"Anti-Detect Browser Proxy Integration Guide","count":10},{"language":"zh","tag":"YumiProxy深度解读","count":7},{"language":"en","tag":"In-depth analysis of YumiProxy","count":7},{"language":"zh","tag":"YumiProxy与浏览器拓展的集成","count":6},{"language":"zh","tag":"YumiProxy 无缝集成","count":6},{"language":"en","tag":"Browsers \u0026 Extensions Proxy Integration Guide","count":6},{"language":"en","tag":"YumiProxy Seamless Integration","count":6},{"language":"zh","tag":"YumiProxy与操作系统的集成","count":4},{"language":"en","tag":"Operating Systems Proxy Integration Guide","count":4},{"language":"zh","tag":"住宅代理","count":3},{"language":"en","tag":"Unlimited Proxy","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"untitled-page-48","slug":"/untitled-page-48","pageMetadata":{"title":"Python","description":null,"href":"/untitled-page-48"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`This document explains how to use Python’s`}),` `,_jsx(_components.code,{children:`requests `}),_jsx(_components.strong,{children:`library to send HTTP/HTTPS requests through YumiProxy’s proxy service and retrieve response data from the target website`}),` `,_jsx(_components.code,{children:`ipinfo.io`}),_jsx(_components.strong,{children:`.`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`26`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Import the requests library for sending HTTP requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ==================== Proxy Configuration (Replace with your actual credentials) ====================`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`username `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_USERNAME\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Replace with the username parameter from YumiProxy dashboard`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`password `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_PASSWORD\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Replace with the password parameter from YumiProxy dashboard`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Build the proxy URL with authentication (format: protocol://username:password@proxy_server:port)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Replace proxy.yumiproxy.com:9091 with the proxy server (host) and port from YumiProxy dashboard`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`proxy `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"http://`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`username`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`password`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`@proxy.yumiproxy.com:9091\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Define the proxies dictionary, specifying the same proxy for both HTTP and HTTPS protocols`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`proxies `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: proxy, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# HTTP requests go through the proxy`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: proxy, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# HTTPS requests go through the proxy`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# ==================== Make Request and Handle Response ====================`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Access ipinfo.io JSON endpoint via the proxy to get the outgoing IP and geolocation info`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://ipinfo.io/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Target URL`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` proxies`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`proxies, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Pass the proxy configuration`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` # Timeout in seconds to prevent hanging`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Print the raw JSON response from the server (includes IP, city, organization, etc.)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.text)`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`After completing the above steps, you have successfully integrated YumiProxy with your program, providing a safer and more flexible option for network connections.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`If you have any questions or suggestions while using our service, please don’t hesitate to reach out. We’d love to hear your feedback and are always happy to help.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Python","description":null,"href":"/untitled-page-48"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"yumiproxycom","siteName":"YumiProxy","title":"Python - YumiProxy","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/untitled-page-48","matchLevel":0},"zh":{"href":"/userguide-overview-zh","matchLevel":4}}},"lastModified":"2026-08-21T10:42:32.595Z","originalFileLocation":"untitled-page-48.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"YumiProxy\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Python - YumiProxy\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"YumiProxy\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.yumiproxy.com/untitled-page-48\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://yumiproxycom.mintlify.site/_mintlify/api/og/v2?division=YumiProxy+Seamless+Integration\u0026amp;title=Python\u0026amp;theme=838abcb7f41461c4a9812513\u0026amp;signature=fe120e5805cc10a584d55840ee90c04022fc3181e25160f947e311641483af47\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Python - YumiProxy\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://yumiproxycom.mintlify.site/_mintlify/api/og/v2?division=YumiProxy+Seamless+Integration\u0026amp;title=Python\u0026amp;theme=838abcb7f41461c4a9812513\u0026amp;signature=fe120e5805cc10a584d55840ee90c04022fc3181e25160f947e311641483af47\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/yumiproxycom/jua__2sfklHpm8YK/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"YumiProxy\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#c1d61f\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.yumiproxy.com/untitled-page-48\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/untitled-page-48.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.yumiproxy.com/#organization\",\"name\":\"YumiProxy\",\"url\":\"https://docs.yumiproxy.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/yumiproxycom/xSCEdgCSOdtUPPql/images/%E9%BB%91.png?fit=max\u0026auto=format\u0026n=xSCEdgCSOdtUPPql\u0026q=85\u0026s=f3099dac0b3d165d1247bcbce1e0e57b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.yumiproxy.com#website\",\"name\":\"YumiProxy\",\"url\":\"https://docs.yumiproxy.com\",\"publisher\":{\"@id\":\"https://docs.yumiproxy.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.yumiproxy.com/untitled-page-48#webpage\",\"url\":\"https://docs.yumiproxy.com/untitled-page-48\",\"name\":\"Python\",\"dateModified\":\"2026-08-21T10:42:32.595Z\",\"isPartOf\":{\"@id\":\"https://docs.yumiproxy.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.yumiproxy.com/untitled-page-48#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.yumiproxy.com/untitled-page-48#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"YumiProxy Integration\",\"item\":\"https://docs.yumiproxy.com/untitled-page-27\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https://docs.yumiproxy.com/untitled-page-48\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.yumiproxy.com/untitled-page-48#article\",\"headline\":\"Python\",\"name\":\"Python\",\"url\":\"https://docs.yumiproxy.com/untitled-page-48\",\"mainEntityOfPage\":{\"@id\":\"https://docs.yumiproxy.com/untitled-page-48#webpage\"},\"dateModified\":\"2026-08-21T10:42:32.595Z\",\"publisher\":{\"@id\":\"https://docs.yumiproxy.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.yumiproxy.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"YumiProxy\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"YumiProxy\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/untitled-page-48.md","siteName":"YumiProxy","nav":{"global":{"anchors":[{"anchor":"Price","icon":"book-open-cover","href":"https://www.yumiproxy.com/pricing/residential"},{"anchor":"Blog","icon":"newspaper","href":"https://yumiproxy.com/blog"}]},"languages":[{"language":"en","tabs":[{"tab":"User Guide","groups":[{"group":"Overview","pages":[{"title":"User Guide Overview","href":"/userguide-overview"}]},{"group":"In-depth analysis of YumiProxy","pages":[{"title":"What is YumiProxy?","href":"/file"},{"title":"YumiProxy help you solve?","href":"/untitled-page"},{"title":"YumiProxy-Residential Proxy-Parameter","href":"/yumi-proxy-residential-proxy-parameter"},{"title":"YumiProxy-Unlimited Residential Proxies (Bandwidth)-Parameter","href":"/parameter"},{"title":"YumiProxy-Unlimited Residential Proxies (Port)-Parameter","href":"/yumi-proxy-unlimited-residential-proxies-port-parameter"},{"title":"YumiProxy-Static Residential Proxies-Parameter","href":"/yumi-proxy-static-residential-proxies-parameter"},{"title":"YumiProxy-How to Recharge on the Official Website Wallet","href":"/yumi-proxy-how-to-recharge-on-the-official-website-wallet"}]},{"group":"YumiProxy Integration","pages":[{"group":"Anti-Detect Browser Proxy Integration Guide","pages":[{"title":"AdsPower","href":"/untitled-page-27"},{"title":"ixBrowser","href":"/untitled-page-28"},{"title":"VMLogin","href":"/untitled-page-29"},{"title":"BitBrowser","href":"/untitled-page-30"},{"title":"RoxyBrowser","href":"/untitled-page-31"},{"title":"Incogniton ","href":"/untitled-page-32"},{"title":"Hubstudio ","href":"/untitled-page-33"},{"title":"Multilogin ","href":"/untitled-page-34"},{"title":"Xlogin ","href":"/untitled-page-35"},{"title":"GoLogin ","href":"/untitled-page-36"}]},{"group":"Browsers \u0026 Extensions Proxy Integration Guide","pages":[{"title":"Firefox","href":"/untitled-page-13"},{"title":"Chrome","href":"/untitled-page-12"},{"title":"Microsoft Edge","href":"/untitled-page-17"},{"title":"Proxy Helper","href":"/untitled-page-16"},{"title":"Safari Browser","href":"/untitled-page-14"},{"title":"BP Proxy Switcher","href":"/untitled-page-15"}]},{"group":"Operating Systems Proxy Integration Guide","pages":[{"title":"Mac ","href":"/untitled-page-19"},{"title":"Windows 10 ","href":"/untitled-page-18"},{"title":"Android ","href":"/untitled-page-20"},{"title":"iPhone ","description":null,"href":"/untitled-page-21"}]},{"group":"YumiProxy Seamless Integration","pages":[{"title":"Python","href":"/untitled-page-48"},{"title":"JAVA","description":null,"href":"/untitled-page-49"},{"title":"C# ","href":"/untitled-page-50"},{"title":"Go","href":"/untitled-page-51"},{"title":"PHP","href":"/untitled-page-52"},{"title":"Node.js","href":"/untitled-page-53"}]}]}]},{"tab":"FAQS","pages":[{"title":"FAQS","href":"/faqs-overview"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/userguide-overview-zh"}]}]},"basePath":"","title":"Python - YumiProxy","deploymentId":"dpl_BEYRRXz1HkchnQ2yWX4JUQCbQT5Q","buildId":"dpl_BEYRRXz1HkchnQ2yWX4JUQCbQT5Q","dynamics":[],"chunks":[]}