# Authentication Source: https://docs.joinmassive.com/isp-proxies/authentication We support HTTP, HTTPS, and SOCKS5 > [!NOTE] > > **Attention:** Make sure to carefully check that your credentials and port number are correct for your auth type. ## HTTP How to authenticate using HTTP. | | | | - | - | | HTTP Port | 8000 | ```bash theme={null} curl --proxy http://isp.joinmassive.com:8000 -U '{PROXY_USERNAME}:{API_KEY}' https://cloudflare.com/cdn-cgi/trace ``` ## HTTPS How to authenticate using HTTPS. | | | | - | - | | HTTPS Port | 4080 | ```bash theme={null} curl --proxy https://isp.joinmassive.com:4080 -U '{PROXY_USERNAME}:{API_KEY}' https://cloudflare.com/cdn-cgi/trace ``` ## SOCKS5 How to authenticate using SOCKS5. | | | | - | - | | SOCKS5 Port | 8000 | ```bash theme={null} curl -x socks5h://isp.joinmassive.com:8000 -U '{PROXY_USERNAME}:{API_KEY}' https://www.cloudflare.com/cdn-cgi/trace ``` # Error Types Source: https://docs.joinmassive.com/isp-proxies/error-types Massive may respond with one of several common or custom error messages: Status codes `452`–`454` and `470`–`477` indicate errors that originated within the Massive network. Any other status code — including a plain `500`, `502`, or `503` — was returned by the target site and is passed through unchanged. Every Massive-generated error also includes an `X-Reason` response header with a short machine-readable cause. Codes `400`, `407`, and `429` are unchanged. The **Previously** column shows the code that was returned before this scheme was introduced. | Status code | Reason phrase | Previously | Additional comments | | - | - | - | - | | `400` | Bad Request | – | The request was malformed, most likely because of invalid routing parameters; the response body contains details | | `407` | Proxy Authentication Required | – | The login email address, the Massive API token, or both were incorrect | | `429` | Too Many Requests | – | The request rate limit for the account was exceeded | | `452` | Disallowed Content | `452` | The requested protocol or content conflicts with Massive’s content policy; the Link header lists the entire policy | | `453` | Port Forbidden | `452` | The requested port is not available on the account; ports `80` and `443` are open by default, and support can enable others | | `454` | Target Unresolvable | `502` | The target hostname could not be resolved; retries fail until the hostname is corrected | | `470` | No Nodes Available | `503` | No proxy nodes were available; the condition is usually temporary and a retry is likely to succeed | | `471` | No Route Match | `521`, `503` | No available node matched the geotargeting or routing parameters; retries fail until the targeting is relaxed | | `472` | Node Tunnel Failed | `502` | A tunnel to a proxy node could not be established; the condition is usually temporary | | `473` | Upstream Unavailable | `503` | A Massive server involved in routing the request was unreachable; the condition is usually temporary | | `474` | Proxy Internal Error | `500` | An internal Massive error occurred; persistent occurrences are worth reporting to support | | `475` | Sticky Node Gone | `503` | The node serving the sticky session went offline; a new session is required | | `476` | Target Connect Timeout | `502` | Connections to the target host timed out on every attempt; a longer connect timeout may help | | `477` | Sticky Node At Capacity | `503` | The node serving the sticky session is temporarily at capacity; the same session can be retried after a short delay | ## SOCKS5 errors The SOCKS5 protocol has no response headers, so error information is limited to the reply code in the `CONNECT` response: | Reply code | Meaning | | - | - | | `0x04` | The request was blocked by Massive’s content policy, or the target hostname could not be resolved | | `0x06` | Connections to the target host timed out | | `0x0A` | The requested port is not available on the account (custom code) | | `0x0B` | No available node matched the geotargeting parameters (custom code) | | `0x01` | Any other error within the Massive network | Applications that need more detail can use the HTTP(S) endpoint, which returns the full set of status codes and the `X-Reason` header described above. # Geotargeting Source: https://docs.joinmassive.com/isp-proxies/geotargeting You can tune the request by providing geo parameters like an [ISO ZIP code, subdivision, and country code](https://www.iso.org/obp/ui/#search), and by [city](https://www.geonames.org/). We do not support geo-targeting for ISP proxies yet. # Introduction Source: https://docs.joinmassive.com/isp-proxies/introduction Massive ISP proxy networks use AT&T infrastructure to provide high-speed, rotating proxies across the US. With 10 Gbps speeds and automatic rotation capabilities, our proxies are perfect for your data collection needs. ![Hero Light](https://mintcdn.com/massive-c2ad7de9/zy-AdWwcnDauLaqG/images/hero-light.svg?fit=max\&auto=format\&n=zy-AdWwcnDauLaqG\&q=85\&s=8923a3d5fabc605f29bfe762c8936a8f) **Key Features:** * High-speed connectivity (10 Gbps) * Automatic IP rotation * Sticky session support * Multiple protocol support (HTTP, HTTPS, and SOCKS5) * US coverage ## Getting started The first step to using Massive Network is making sure your credentials work with a simple curl request. # .NET (in C#) Source: https://docs.joinmassive.com/isp-proxies/samples/.net .NET integrations should connect to the [Massive Network’s HTTP port](/isp-proxies/authentication#HTTP) `4080` because [.NET doesn’t broadly support HTTPS proxies yet](https://github.com/dotnet/runtime/pull/87638): ```csharp theme={null} using System.Net; class Demo { static async Task Main(string[] args) { string username = Uri.EscapeDataString("{PROXY_USERNAME}"); string password = "{API_Key}"; string url = "https://cloudflare.com/cdn-cgi/trace"; // Insert your target URL here string proxy = "http://isp.joinmassive.com:4080"; HttpClientHandler handler = new() { Proxy = new WebProxy(proxy), DefaultProxyCredentials = new NetworkCredential( username, password ) }; HttpClient client = new(handler); HttpResponseMessage response = await client.GetAsync(url); Console.WriteLine(await response.Content.ReadAsStringAsync()); } } ``` # Puppeteer Source: https://docs.joinmassive.com/isp-proxies/samples/puppeteer Integrate the Massive Network into your Puppeteer workflows by setting the `--proxy-server` launch flag then calling a page object’s `authenticate` method: ```javascript theme={null} #!/usr/bin/env node const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ args: ['--proxy-server=https://isp.joinmassive.com:4080'] }); const page = (await browser.pages())[0]; await page.authenticate({ username: '{PROXY_USERNAME}, password: '{API_KEY}' }); await page.goto('https://cloudflare.com/cdn-cgi/trace'); // Insert your target URL here console.log(await page.content()); browser.close(); })(); ``` # (Vanilla) Python Source: https://docs.joinmassive.com/isp-proxies/samples/python To connect to the Massive Network from Python, include your encoded credentials in the proxy address (this usage doesn’t risk leaking your API token to a shared history file per the caveat for Curl): ```javascript theme={null} #!/usr/bin/env python3 import requests import urllib username = '{PROXY_USERNAME}' password = '{API_KEY}' url = 'https://cloudflare.com/cdn-cgi/trace' # Insert your target URL here host = 'isp.joinmassive.com' port = 4080 proxy = f'https://{username}:{password}@{host}:{port}' response = requests.get(url, proxies={'http': proxy, 'https': proxy}) print(response.content) ``` # Ruby Source: https://docs.joinmassive.com/isp-proxies/samples/ruby Ruby’s standard HTTP library doesn’t seem to support HTTPS proxy connections, so connect to the [Massive Network’s HTTP port](/isp-proxies/authentication#http) with Ruby: ```javascript theme={null} #!/usr/bin/env node const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ args: ['--proxy-server=https://isp.joinmassive.com:4080'] }); const page = (await browser.pages())[0]; await page.authenticate({ username: '{PROXY_USERNAME}, password: '{API_KEY}' }); await page.goto('https://cloudflare.com/cdn-cgi/trace'); // Insert your target URL here console.log(await page.content()); browser.close(); })(); ``` # Scrapy (for Python) Source: https://docs.joinmassive.com/isp-proxies/samples/scrapy After installing Scrapy (`pip install scrapy`) and creating a project (`scrapy startproject [project name]`), you can connect to the Massive Network by saving code like that below to a file in the new `[project name]/[project name]/spiders` subdirectory then running `scrapy crawl demo` from the top-level `[project name]` directory (Scrapy doesn’t seem to support HTTPS proxy connections, but you can use the [network’s HTTP port](/isp-proxies/authentication#http)): ```python theme={null} import scrapy import urllib class Demo(scrapy.Spider): name = 'demo' def parse(self, response): print(response.body) def start_requests(self): username = '{PROXY_USERNAME}' password = '{API_KEY}' url = 'https://cloudflare.com/cdn-cgi/trace' # Insert your target URL here host = 'isp.joinmassive.com' port = 4080 proxy = f'http://{username}:{password}@{host}:{port}' yield scrapy.Request(url, callback=self.parse, meta={'proxy': proxy}) ``` # Sticky sessions Source: https://docs.joinmassive.com/isp-proxies/sticky-sessions Our ISP proxies support sticky sessions, allowing persistent IP connections and session-based routing without expiration. ## Using Sticky Sessions: | Key | Value | Duration | Examples | | - | - | - | - | | session | Any unique identifier of up to 255 characters | No expiration | 0, abc, session123 | Add a session identifier to keep your requests on the same IP address: ```bash theme={null} curl --proxy http://isp.joinmassive.com:8000 -U '{PROXY_USERNAME}-session-37:{API_KEY}' ip-api.com ``` When using sticky sessions: 1. The first request with a session ID linked to a specific IP address. 2. All subsequent requests with the same session ID will use that same IP address. 3. Sessions continue indefinitely unless the session identifier is changed. 4. Requests that do not have a session ID will automatically be assigned a new IP address. # Usage restrictions Source: https://docs.joinmassive.com/isp-proxies/usage-restrictions Some limitations apply to HTTP and SOCKS5 endpoints for ISP proxies. ## General Restrictions * **No UDP Support:** UDP communication is restricted by default. [Contact support](support@joinmassive.com) if you require access. * **Limited Ports:** Only standard ports (80, 443) are available. * Allowed: `http://example.com/`, `https://example.com/` * Not Allowed: `http://example.com:8080` * **Content Policy:** The ISP proxy network is designed for activities falling within the legal framework of all jurisdictions. Requests targeting high-risk, offensive, harmful, or illegal content may be blocked. See [Blocked Destination Categories](https://www.joinmassive.com/blocked-destinations) for the specific categories. Requests blocked due to protocol or content restrictions return a `452 Disallowed Content` error; requests to a blocked port return `453 Port Forbidden`. ## Restricted Domains We restrict access to content that is generally used to evade the law or site TOS policies. If you are getting blocked from accessing certain content that you have a legitimate reason to access, then [contact support](https://joinmassive.atlassian.net/servicedesk/customer/portal/2/group/2/create/13) to complete our KYC process to gain access. ## Port 25 `Port 25` is not opened on our ISP proxy network. Submit a request if this feature is necessary. ## Request access [Contact support](https://joinmassive.atlassian.net/servicedesk/customer/portal/2/group/2/create/13) if you have questions about our policies or want to complete KYC to gain access to content that is restricted by default. # How can I contact the sales team? Source: https://docs.joinmassive.com/kb/billing/how-can-i-contact-the-sales-team For inquiries about pricing, free trials, and custom solutions: 1. Visit our [Free trial form](https://www.joinmassive.com/free-trial) 2. Submit your details 3. Our sales team will reach out to you promptly # How to Access Your Bill.com Invoice Source: https://docs.joinmassive.com/kb/billing/how-to-access-your-billcom-invoice Welcome to partnering with Massive! We use [Bill.com](http://Bill.com) to issue our invoices, here's a quick guide on how to access and pay your invoices for the first time. 1. **Check Your Email:** You will get an invoice sent to the email on file with [Bill.com](http://Bill.com). This email will include a link to view and pay your invoice. 2. **Click the Link:** Click on the link in the email. This will take you to a secure page where you can view the invoice details. 3. **Create an Account (if needed):** If this is your first time using [Bill.com](http://Bill.com), you may need to create a free account. This is a simple process that requires your email address and a password. 4. **View Your Invoice:** Once you've logged into your account, you'll be able to see the invoice. You can download or print it for your records. 5. **Make a Payment:** If you're ready to pay, you can do so directly through [Bill.com](http://Bill.com) using various payment methods. You can also save a credit card on file that will automatically be charged on your due date. **Need Help?** If you have any trouble accessing your invoice or creating an account, please contact Jenn Starr at [support@joinmassive.com](mailto:support@joinmassive.com). **Important Note:** This guide assumes you have received an email notification from us at Massive. If you haven't received an email, please check your spam folder or contact us directly. # What are Massive Network's pricing and fees? Source: https://docs.joinmassive.com/kb/billing/what-are-massive-networks-pricing-and-fees Our pricing is usage-based with no setup fees or hidden costs. Volume discounts available for enterprise clients (contact [sales@joinmassive.com](mailto:sales@joinmassive.com)). # What should I know about the free trial? Source: https://docs.joinmassive.com/kb/billing/what-should-i-know-about-the-free-trial We offer a 2 GB free trial: * No credit card required * Fill out [Free Trial form](https://www.joinmassive.com/free-trial) * Partnership manager activates your trial * Support available at [support@joinmassive.com](mailto:support@joinmassive.com) # Are there any resources available for new users? Source: https://docs.joinmassive.com/kb/faq/are-there-any-resources-available-for-new-users Yes, Massive offers: 1. The [Quickstart Guide](https://docs.joinmassive.com/residential/quickstart) - A comprehensive guide with step-by-step instructions to help you get started with our proxy service 2. Our [Documentation Portal](https://docs.joinmassive.com/residential) - Access our full documentation where you can: * Use the search bar to find specific information * Browse through detailed tutorials * Find answers to common questions # How can I get technical support? Source: https://docs.joinmassive.com/kb/faq/how-can-i-get-technical-support We offer multiple support channels: 1. Support Portal: [Submit a ticket](https://forms.fillout.com/t/p8dRqBYs58us) 2. Email: [support@joinmassive.com](mailto:support@joinmassive.com) # How can I request access to restricted content for legitimate business needs? Source: https://docs.joinmassive.com/kb/faq/how-can-i-request-access-to-restricted-content-for-legitimate-business-needs Before you start, check [Blocked Destination Categories](https://www.joinmassive.com/blocked-destinations) to confirm which category applies to your target and which categories are eligible for a waiver. Follow these steps: 1. Submit a request through our [Massive Help Desk](https://forms.fillout.com/t/p8dRqBYs58us) 2. Complete the KYC (Know Your Customer) process 3. Provide documentation verifying your identity and business legitimacy 4. Await approval based on compliance with our policies # How can users opt out of the service? Source: https://docs.joinmassive.com/kb/faq/how-can-users-opt-out-of-the-service Users can: * Opt out at any time through application settings * For Android/Fire OS with Foreground Service: Opt out via the notification interface * Stop participation completely using the provided controls # How do I create a Massive Network account? Source: https://docs.joinmassive.com/kb/faq/how-do-i-create-a-massive-network-account Creating an account with Massive Network is a straightforward process: 1. Visit our website at [http://www.joinmassive.com](http://www.joinmassive.com) 2. Click on the "Sign Up" button 3. Select your preferred plan 4. Fill out the required registration information 5. Submit your registration to complete the account creation process # How do I export data from the dashboard? Source: https://docs.joinmassive.com/kb/faq/how-do-i-export-data-from-the-dashboard ## Exporting Results as a CSV, XLSX, JSON, or PNG To export the results of a particular card, hover over the dashboard card, click the three-dot menu (`⋯`), and select **Download results**. Export results of a dashboard card From here, you can select one of the following formats: * `.csv` * `.xlsx` * `.json` * `.png` *(if the card is a chart)* > [!NOTE] > > To export the raw, unformatted results, hold down the Option key (Mac) or Alt key (Windows) while clicking the desired download format. # How do I find my proxy username and password? Source: https://docs.joinmassive.com/kb/faq/how-do-i-find-my-proxy-username-and-password To access your proxy credentials: 1. Sign in to your Massive account 2. Go to your Profile page at [http://partners.joinmassive.com/profile](http://partners.joinmassive.com/profile) 3. Your proxy username and password will be displayed directly on your dashboard # How do I get started with Massive Network? Source: https://docs.joinmassive.com/kb/faq/how-do-i-get-started-with-massive-network Getting started with Massive Network involves four main steps: 1. Create Your Account * Visit [joinmassive.com](http://www.joinmassive.com) * Sign up and select your plan * Complete the registration process 2. Access Your Credentials * Log in to your account * Go to [Profile](http://partners.joinmassive.com/profile) * Locate your username and password 3. Configure Your Proxy * Navigate to the Quickstart section at [Dashboard](http://partners.joinmassive.com/quickstart) * Use the Massive Proxy Configurator * Select your preferences: * Location * Protocol * Other specific parameters 4. Establish Connection * Generate your connection command using the configurator * Run the generated command in your terminal * Begin using your proxy connection # What are subaccounts and how do they work? Source: https://docs.joinmassive.com/kb/faq/what-are-subaccounts-and-how-do-they-work Subaccounts in Massive Network are features that enable granular request management within your main account. They provide: * Request isolation for separate entities * Unique tracking with individual identifiers * Independent usage and billing tracking * Centralized management under the main account Technical Requirements: * Character Encoding: All encodings supported * Maximum Length: 255 characters * Uniqueness: Each identifier must be unique within your account * **Format:** `{USERNAME}-subaccount-[IDENTIFIER]:{PASSWORD}` # What reporting and analytics tools does Massive Network provide? Source: https://docs.joinmassive.com/kb/faq/what-reporting-and-analytics-tools-does-massive-network-provide Massive Network offers extensive reporting and analytics through our [Dashboard](https://partners.joinmassive.com/dashboard), organized into three main sections: 1. Overview Dashboard * Plan status and bandwidth usage monitoring * Current success rate metrics * Interactive bandwidth trend graphs * Real-time usage statistics 2. Detailed Analytics * Request analysis by account, sub-account, and domain * Key performance metrics: * Total request count * Successful request count * Success rate percentages * Bandwidth consumption * Customizable filters for date, location, and domain 3. Account Statistics * Current day performance metrics * Historical data analysis * Geographic connection distribution * Success/failure rate breakdown by country Additional Features: * Interactive data visualization tools * Customizable report filters * Export data in multiple formats * Detailed graph analysis for connection trends Need Help? For assistance with analytics or custom reporting needs, contact our support team: * Email: [support@joinmassive.com](mailto:support@joinmassive.com) * [Support Portal](https://forms.fillout.com/t/p8dRqBYs58us) # What types of proxies does Massive Network offer? Source: https://docs.joinmassive.com/kb/faq/what-types-of-proxies-does-massive-network-offer 1. Residential IPs: * Sourced from real residential devices * Best for bypassing restrictions and appearing as genuine users 2. ISP Proxies: * Static IPs assigned by internet service providers * Features: * High-speed connectivity (10 Gbps) * AT\&T infrastructure across US * Multiple protocol support (HTTP, HTTPS, SOCKS5) * Automatic IP rotation * Sticky session support 3. Datacenter IPs: * High-performance proxies from datacenters * Optimized for speed and reliability 4. Mobile Proxies: * Routed through mobile networks * Ideal for mobile user simulation and mobile-specific content # Where can I find documentation and resources? Source: https://docs.joinmassive.com/kb/faq/where-can-i-find-documentation-and-resources You can access: * [FAQ page](https://www.joinmassive.com/faq#Partners) * [Easy to follow documentation](https://docs.joinmassive.com/) # Where can I find my API token? Source: https://docs.joinmassive.com/kb/faq/where-can-i-find-my-api-token Log in to your Massive developer dashboard and navigate to the "Profile" section. The API token will be displayed there. If you can't find it, contact [support@joinmassive.com](mailto:support@joinmassive.com). # How does Massive ensure compliance with GDPR and CCPA? Source: https://docs.joinmassive.com/kb/general/how-does-massive-ensure-compliance-with-gdpr-and-ccpa Massive is fully compliant with GDPR and CCPA. For detailed information, please refer to our [Privacy Policy One-Pager](https://drive.google.com/file/d/1eABA1M6QzD-2ClfcFbRcUAp3DX8aW8Yq/view?usp=sharing). # What are the main use cases? Source: https://docs.joinmassive.com/kb/general/what-are-the-main-use-cases Our proxy network supports: 1. Network Intelligence: * Real-time internet performance monitoring across 195+ countries * Network security validation * Global service availability tracking 2. Market Research: * Competitive analysis * Regional price comparisons * SEO performance tracking * Ad campaign verification * Brand presence monitoring 3. Security Operations: * Fraud prevention * Malware tracking * Machine learning model training * Threat detection enhancement # What content is restricted on the Massive Network? Source: https://docs.joinmassive.com/kb/general/what-content-is-restricted-on-the-massive-network The following content types are blocked: * Malware or phishing websites * Adult or explicit content * Sites facilitating illegal activities * Domains associated with evading laws or site Terms of Service (TOS) This is a summary. See [Blocked Destination Categories](https://www.joinmassive.com/blocked-destinations) for the full list. # What is a Massive Network? Source: https://docs.joinmassive.com/kb/general/what-is-a-massive-network Massive Network is a global edge network built on a robust proxy infrastructure, characterized by the following features: * **Network Size:** Over 1,000,000 verified residential devices. * **Geographic Coverage:** Spanning 195+ countries. * **Participation Model:** Devices voluntarily opt-in via the [Massive SDK](https://www.joinmassive.com/getpaid). This infrastructure empowers businesses to access real-world user environments for tasks such as internet monitoring, market research, and security operations. # What is ethical data collection and how does Massive ensure it? Source: https://docs.joinmassive.com/kb/general/what-is-ethical-data-collection-and-how-does-massive-ensure-it Ethical data collection means gathering data responsibly, respecting website terms of service, and using fair scraping practices like appropriate request rates. It also involves using proxies that are ethically sourced. At Massive, we provide **100% ethically sourced residential proxies**. Every participant in our network gives explicit consent and opts in willingly. We ensure transparency by showing clear consent dialogs so everyone understands and agrees to the permissions they provide. # What is Massive Network's infrastructure size? Source: https://docs.joinmassive.com/kb/general/what-is-massive-networks-infrastructure-size As of August 2025, our network consists of: * Over 750,000 Daily Active Users * 400,000+ concurrent IP addresses * Unlimited concurrent connections supported For detailed capacity planning, contact: [support@joinmassive.com](mailto:support@joinmassive.com) # What is the IP distribution by country? Source: https://docs.joinmassive.com/kb/general/what-is-the-ip-distribution-by-country As of January 2025, sample Daily Active IPs (DAU): * USA: 147,935 * GB: 65,120 * DE: 42,877 * BR: 29,615 * MX: 28,570 * FR: 25,998 (Additional countries available) # Getting Started Source: https://docs.joinmassive.com/kb/introduction Welcome to the Massive Network Knowledge Base. Here you'll find answers to frequently asked questions, troubleshooting guides, and detailed information about our services. ## Quick Links * **[Frequently Asked Questions](/kb/faq/how-can-i-get-technical-support)** - Common questions about our services * **[Troubleshooting](/kb/troubleshooting/how-can-i-prevent-common-errors-before-they-occur)** - Fix common issues and errors * **[Billing & Payments](/kb/billing/what-are-massive-networks-pricing-and-fees)** - Information about pricing and payments * **[Technical Configuration](/kb/technical/what-ports-should-i-use-for-proxy-connections)** - Advanced setup and configuration * **[SDK Integration](/kb/general/what-is-massive-networks-infrastructure-size)** - Developer resources and guides ## Need More Help? If you can't find what you're looking for: * Submit a support ticket: [Support Portal](https://forms.fillout.com/t/p8dRqBYs58us) * Email us: [support@joinmassive.com](mailto:support@joinmassive.com) * Contact sales: [Free Trial Form](https://www.joinmassive.com/free-trial) # Does the SDK affect app performance or battery life? Source: https://docs.joinmassive.com/kb/sdk/does-the-sdk-affect-app-performance-or-battery-life No, the SDK is designed to operate with minimal impact by using only free/unused device resources. ### Android/Fire OS: * Uses idle device resources and runs as a separate process to avoid interfering with the main application. * When using Foreground Service, users are kept aware of resource usage through notifications ### iOS: * Background processing only occurs when the device is charging to preserve battery life * No special capabilities are required that might impact performance ### Windows: * Runs as a separate process to avoid interfering with the main application. * Users are notified of resource usage through the system tray notifications. The SDK implements these battery and performance optimizations: 1. User control over participation 2. Option to use Background Service mode for less resource usage (Android/Fire OS) 3. Separate process architecture (Android/Fire OS/Windows) 4. Charging-only background processing (iOS) For specific concerns about performance or battery usage, you can: 1. Contact support: [support@joinmassive.com](mailto:support@joinmassive.com) 2. Submit a ticket: [Support Portal](https://forms.fillout.com/t/p8dRqBYs58us) Learn more about technical details: * [Android Technical Details](https://docs.joinmassive.com/monetization-sdk/mobile-android#technical-details) * [Windows Getting Started Guide](https://docs.joinmassive.com/monetization-sdk/desktop-windows#getting-started) * [iOS Technical Details](https://docs.joinmassive.com/monetization-sdk/mobile-ios#technical-details) # How can I check if a device is compatible with the SDK? Source: https://docs.joinmassive.com/kb/sdk/how-can-i-check-if-a-device-is-compatible-with-the-sdk Check against platform requirements: * Android and Fire OS: SDK Level 21+ (Lollipop or later) * Windows: [Check documentation](https://docs.joinmassive.com/monetization-sdk/desktop-windows) for specific requirements * iOS: iOS 16.0 or later The SDK will return appropriate error states if the device is incompatible. # How can I monitor the SDK's network usage? Source: https://docs.joinmassive.com/kb/sdk/how-can-i-monitor-the-sdks-network-usage Each platform provides network usage tracking: * **Android/Fire OS:** Use the `usage()` method in MassiveClient * **Windows:** Use taskbar usage display functionality * **iOS:** Use `MassiveClient.shared.getNetworkUsage()` The usage is reported in bytes and can be monitored for resource management. # How do I handle SDK updates? Source: https://docs.joinmassive.com/kb/sdk/how-do-i-handle-sdk-updates Update procedures vary by platform: ### Android/Fire OS: * Update the dependency version in the Gradle configuration * Follow the migration guide when upgrading from 0.x to 1.0 Learn more: [Migration Guide](https://docs.joinmassive.com/monetization-sdk/mobile-android#migration-from-version-0-x) ### Windows: * The Massive service supports auto-updates distributed by Massive and will update automatically after installation. * The client library does not update automatically—you must manually update the SDK package in your project. Learn more: [Windows Guide](https://docs.joinmassive.com/monetization-sdk/desktop-windows#getting-started) ### iOS: * Download the latest xcframework * Update the embedded framework in Xcode * Test integration after updates Learn more: [iOS Integration Guide](https://docs.joinmassive.com/monetization-sdk/mobile-ios#integration-guide) # How do I initialize the Massive SDK on Android/Fire OS? Source: https://docs.joinmassive.com/kb/sdk/how-do-i-initialize-the-massive-sdk-on-androidfire-os Use the following method in your `Activity` or `Application` class: ```java theme={null} MassiveClient.init(API_TOKEN, this) ``` Learn more: [Android Integration Guide](https://docs.joinmassive.com/monetization-sdk/mobile-android#integration-to-the-app). # How do I initialize the Massive SDK on iOS? Source: https://docs.joinmassive.com/kb/sdk/how-do-i-initialize-the-massive-sdk-on-ios Use the following code: ```swift theme={null} MassiveClient.shared.initAsync(apiToken: {API_TOKEN}) { status in switch status { case .initialized: // Handle successful initialization case .error: // Handle initialization error } } ``` Learn more: [iOS Integration Guide](https://docs.joinmassive.com/monetization-sdk/mobile-ios#integration-to-the-app). # How does the Massive SDK work and make money for developers? Source: https://docs.joinmassive.com/kb/sdk/how-does-the-massive-sdk-work-and-make-money-for-developers The SDK generates revenue by using small amounts of users' idle device resources (with consent) to perform tasks such as processing public web data and running simulations. This provides an ad-free experience while monetizing your app. # How does the SDK handle service interruptions? Source: https://docs.joinmassive.com/kb/sdk/how-does-the-sdk-handle-service-interruptions Each platform provides service recovery mechanisms: ### Android/Fire OS * You can **optionally** set a callback when calling the `init` method * This callback will receive the **initial service state** after initialization * To check the service state later, the user must call the `state` method manually ### Windows * You can set callbacks for service availability: * `MassiveSetServiceUnavailableCallback` (when the service becomes unavailable) * `MassiveSetServiceAvailableCallback` (when the service becomes available) * You can also set callbacks to track service start/stop events triggered from the **service UI** instead of the app UI: * `MassiveStartedViaTaskbarCallback` (when started from the service UI) * `MassiveStoppedViaTaskbarCallback` (when stopped from the service UI) ### iOS * You **must** set a callback when calling the `initAsync` method. * This callback will receive the **initial service state** after initialization. * To check the service state later, the user must call the `getStatus` method manually. # How is revenue calculated using the Massive SDK? Source: https://docs.joinmassive.com/kb/sdk/how-is-revenue-calculated-using-the-massive-sdk For information about revenue calculation: 1. Contact support: [support@joinmassive.com](mailto:support@joinmassive.com) 2. Submit a ticket: [Support Portal](https://forms.fillout.com/t/p8dRqBYs58us) # Using Massive Residential Proxies with Python (Requests) Source: https://docs.joinmassive.com/kb/sdk/using-massive-residential-proxies-with-python-requests ### Step 1: Install Required Library Ensure you have the `requests` library installed. Run: ```bash theme={null} pip install requests ``` ### Step 2: Configure Proxy Retrieve your Massive credentials (username and password) from the **Profile** section of the dashboard. Format your proxy URL as: ``` https://:@network.joinmassive.com:65535 ``` ### Step 3: Code Example The following Python script demonstrates how to send requests through Massive Residential Proxies: ```python theme={null} import requests # Construct the proxy URL proxy_url = "https://:@network.joinmassive.com:65535" # Set up proxies for requests proxies = { "http": proxy_url, "https": proxy_url, } # Send a request through the proxy try: response = requests.get("https://httpbin.io/ip", proxies=proxies) print(response.text) except requests.exceptions.RequestException as e: print(f"Error occurred: {e}") ``` # Using Residential Proxies with Selenium (Python) Source: https://docs.joinmassive.com/kb/sdk/using-residential-proxies-with-selenium-python To use proxies with Selenium in Python, it's recommended to use Selenium Wire ([https://pypi.org/project/selenium-wire/](https://pypi.org/project/selenium-wire/)) instead of standard Selenium. Selenium Wire supports proxies with username and password authentication, which standard Selenium does not. Install the required packages by running: ```bash theme={null} pip install selenium selenium-wire webdriver-manager ``` Here's a Python example for integrating Massive proxies with Selenium Wire: ```python theme={null} from seleniumwire import webdriver from selenium.webdriver.chrome.service import Service from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.by import By def configure_proxy(username, password, address, port): proxy_url = f"http://{username}:{password}@{address}:{port}" return {"proxy": {"http": proxy_url, "https": proxy_url}} def initialize_driver(proxy_options): chrome_options = Options() chrome_options.add_argument("--headless") # Remove this line to see the browser driver = webdriver.Chrome( service=Service(ChromeDriverManager().install()), seleniumwire_options=proxy_options, options=chrome_options, ) return driver def test_connection(driver, test_url): driver.get(test_url) return driver.find_element(By.TAG_NAME, "body").text if __name__ == "__main__": PROXY_USERNAME = "" PROXY_PASSWORD = "" PROXY_ADDRESS = "network.joinmassive.com" PROXY_PORT = "65534" proxy_settings = configure_proxy( PROXY_USERNAME, PROXY_PASSWORD, PROXY_ADDRESS, PROXY_PORT ) driver = initialize_driver(proxy_settings) try: test_url = "https://httpbin.io/ip" ip_response = test_connection(driver, test_url) print(ip_response) finally: driver.quit() ``` If you encounter connection issues while using proxies with Selenium Wire, check the following: 1. **Proxy Credentials**: Ensure the username and password are correct. 2. **Proxy Host and Port**: Verify you're using the correct host (network.joinmassive.com) and port (65534). 3. **Proxy URL Format**: Confirm the proxy URL starts with http\://. # What are the minimum requirements for Android/Fire OS integration? Source: https://docs.joinmassive.com/kb/sdk/what-are-the-minimum-requirements-for-androidfire-os-integration * Android SDK Level 21 (Lollipop) or later * Kotlin version 1.9.0 or later * Java version 17 or later Learn more: * [Android Requirements](https://docs.joinmassive.com/monetization-sdk/mobile-android#technical-requirements) * [Fire OS Requirements](https://docs.joinmassive.com/monetization-sdk/tv-fire#technical-requirements) # What are the minimum requirements for iOS integration? Source: https://docs.joinmassive.com/kb/sdk/what-are-the-minimum-requirements-for-ios-integration * iOS Minimum Deployment: 16.0 * iOS Deployment Target: 16.0 or later * Swift version: 5.10 or later * No special capabilities required Learn more: [iOS Technical Requirements](https://docs.joinmassive.com/monetization-sdk/mobile-ios#technical-requirements) # What are the service types available in Android/Fire OS? Source: https://docs.joinmassive.com/kb/sdk/what-are-the-service-types-available-in-androidfire-os The SDK offers two service types: 1. Foreground Service: * More visible with customizable notification * Higher earning potential * Less likely to be killed by the system * Requires notification configuration 2. Background Service: * Runs silently * Less intrusive * No visible notification * May be more likely to be terminated by the system # What happens to the SDK when the app is suspended or terminated? Source: https://docs.joinmassive.com/kb/sdk/what-happens-to-the-sdk-when-the-app-is-suspended-or-terminated Behavior varies by platform: * **Android/Fire OS:** The service can continue running as a separate process in Foreground or Background mode. However, the runtime is limited and depends on whether the device is connected to power. * **Windows:** Can be configured to stop on app quit using `STOP_MASSIVE_ON_APP_QUIT` option * **iOS:** State persists in the background but not across launches. If the app is configured to run in the background, it can wake up at regular intervals (approximately every 30 minutes) and run for up to 5 minutes, but only if the device is connected to power. # What is the Massive SDK? Source: https://docs.joinmassive.com/kb/sdk/what-is-the-massive-sdk The Massive SDK is a monetization tool that allows developers to generate revenue from their apps without relying on ads or traditional paywalls. Instead, it uses small, unused resources from users' devices, such as bandwidth and processing power, with their explicit consent. Users have full control over participation. Learn more: [Quickstart Guide](https://docs.joinmassive.com/monetization-sdk/quickstart) # What permissions does the Massive SDK require on Android/Fire OS? Source: https://docs.joinmassive.com/kb/sdk/what-permissions-does-the-massive-sdk-require-on-androidfire-os The following permissions are needed: * `android.permission.INTERNET` * `android.permission.ACCESS_NETWORK_STATE` * `android.permission.FOREGROUND_SERVICE` * `android.permission.FOREGROUND_SERVICE_DATA_SYNC` * `android.permission.WAKE_LOCK` Learn more: [Android Permissions](https://docs.joinmassive.com/monetization-sdk/mobile-android#permissions-needed). # What should I test before releasing my app with the SDK? Source: https://docs.joinmassive.com/kb/sdk/what-should-i-test-before-releasing-my-app-with-the-sdk Key testing areas: 1. Initialization flow 2. User consent implementation 3. Background/Foreground behavior 4. Network usage tracking 5. Error handling 6. Start/stop functionality 7. State persistence Test on various devices and OS versions for each platform. Sample applications are available for reference: * [Android/FireOS Sample](https://docs.joinmassive.com/monetization-sdk/tv-fire#sample-application) * [Windows Sample](https://docs.joinmassive.com/monetization-sdk/desktop-windows#getting-started) * [iOS Sample](https://docs.joinmassive.com/monetization-sdk/mobile-ios#latest-release) # Where can I find sample applications? Source: https://docs.joinmassive.com/kb/sdk/where-can-i-find-sample-applications Sample applications are available for all platforms: * [Android/Fire OS Sample](https://docs.joinmassive.com/monetization-sdk/tv-fire#sample-application) * [iOS Sample](https://docs.joinmassive.com/monetization-sdk/mobile-ios#latest-release) * [Windows Sample](https://docs.joinmassive.com/monetization-sdk/desktop-windows#getting-started) # Which platforms does the Massive SDK support? Source: https://docs.joinmassive.com/kb/sdk/which-platforms-does-the-massive-sdk-support The Massive SDK supports: * Android * Fire OS * Windows * iOS Platform-specific integration guides: * [Android Integration Guide](https://docs.joinmassive.com/monetization-sdk/mobile-android) * [Fire OS Integration Guide](https://docs.joinmassive.com/monetization-sdk/tv-fire) * [Windows Integration Guide](https://docs.joinmassive.com/monetization-sdk/desktop-windows) * [iOS Integration Guide](https://docs.joinmassive.com/monetization-sdk/mobile-ios) # Do I need a special ProGuard configuration for Android/Fire OS? Source: https://docs.joinmassive.com/kb/technical/do-i-need-a-special-proguard-configuration-for-androidfire-os Yes, if not use the R8 compiler. Required rules include: * Keeping all "com.joinmassive.sdk" classes * Keeping OkHttp3 and Moshi classes * Preserving annotations and exceptions If using R8, rules are automatically applied. Learn more: [Android Technical Details](https://docs.joinmassive.com/monetization-sdk/mobile-android#technical-details) # How can I combine different targeting features? Source: https://docs.joinmassive.com/kb/technical/how-can-i-combine-different-targeting-features Example combinations: 1. Device with Location: ```java theme={null} {USERNAME}-device-mobile-country-GB-city-London:{PASSWORD} ``` 2. Device with Session: ```java theme={null} {USERNAME}-device-mobile-session-123:{PASSWORD} ``` 3. Complete Integration: ```java theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{USERNAME}-device-mobile-country-US-subdivision-NY-session-876:{PASSWORD}' \ https://cloudflare.com/cdn-cgi/trace ``` # How do I authenticate and verify my connection to Massive Network? Source: https://docs.joinmassive.com/kb/technical/how-do-i-authenticate-and-verify-my-connection-to-massive-network 1. Authentication Requirements: * PROXY\_USERNAME and PROXY\_PASSWORD (found in [Profile](https://partners.joinmassive.com/profile) section) * Choose the appropriate port: * 65535 for HTTPS * 65534 for HTTP * 65533 for SOCKS5 * 1080 when default ports are blocked by firewall 2. Verification Steps: ```bash theme={null} curl -x "https://network.joinmassive.com:65535" -U "PROXY_USERNAME:PROXY_PASSWORD" http://ip-api.com ``` Successful connection will return your IP information Error **407** indicates invalid credentials. # How do I authenticate with ISP proxies? Source: https://docs.joinmassive.com/kb/technical/how-do-i-authenticate-with-isp-proxies Massive ISP proxies support three protocols: 1. HTTP (Port 8000): ```bash theme={null} curl --proxy http://isp.joinmassive.com:8000 -U '{PROXY_USERNAME}:{PROXY_PASSWORD}' https://cloudflare.com/cdn-cgi/trace ``` 2. HTTPS (Port 4080): ```bash theme={null} curl --proxy https://isp.joinmassive.com:4080 -U '{PROXY_USERNAME}:{PROXY_PASSWORD}' https://cloudflare.com/cdn-cgi/trace ``` 3. SOCKS5 (Port 8000): ```bash theme={null} curl -x socks5h://isp.joinmassive.com:8000 -U '{PROXY_USERNAME}:{PROXY_PASSWORD}' https://www.cloudflare.com/cdn-cgi/trace ``` Replace `PROXY_USERNAME` and `PROXY_PASSWORD` with your credentials. # How do I configure Massive residential proxies in Foxy Proxy? Source: https://docs.joinmassive.com/kb/technical/how-do-i-configure-massive-residential-proxies-in-foxy-proxy Follow these steps: 1. Installation: * Install Foxy Proxy from browser extension store 2. Configuration: * Click extension icon → "Options" → "Proxies" → "Add" * Enter details: * Title: "Massive Proxies" * Type: HTTP, HTTPS, or SOCKS5 * Hostname: network.joinmassive.com * Ports: * HTTP: 65534 * HTTPS: 65535 * SOCKS5: 65533 * Username: Your proxy username * Password: Your API key * Save configuration 3. Usage: * Activate: Select your configuration from extension icon * Deactivate: Select "Disable" * Verify: Check your IP at [https://ip-api.com/](https://ip-api.com/) ### Troubleshooting Foxy Proxy If settings aren't working: 1. Review configuration in Options 2. Save changes 3. Restart browser completely 4. Verify IP at [https://ip-api.com/](https://ip-api.com/) # How do I configure Massive residential proxies in SwitchyOmega? Source: https://docs.joinmassive.com/kb/technical/how-do-i-configure-massive-residential-proxies-in-switchyomega Follow these steps: 1. Installation: * Install SwitchyOmega from Chrome Web Store 2. Initial Setup: * Open SwitchyOmega dashboard * Click "New Profile" * Name it (e.g., "Massive Proxies") * Click "Create" 3. Configuration: * Protocol: Select HTTP, HTTPS, or SOCKS5 * Server: network.joinmassive.com * Ports: * HTTP: 65534 * HTTPS: 65535 * SOCKS5: 65533 * Authentication: * Click "Lock" icon * Enter Username and API key * Save changes * Click "Apply Changes" 4. Usage: * Activate: Select your profile from extension icon * Deactivate: Select "Direct" from extension icon * Verify: Check your IP at [https://ip-api.com/](https://ip-api.com/) ### Troubleshooting SwitchyOmega If settings aren't working: 1. Verify configuration details 2. Click "Apply Changes" 3. Restart browser completely 4. Verify IP at [https://ip-api.com/](https://ip-api.com/) # How do I implement geotargeting? Source: https://docs.joinmassive.com/kb/technical/how-do-i-implement-geotargeting Two syntax options are available: 1. Dash Syntax: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{USERNAME}-country-US-subdivision-CA:{PASSWORD}' \ https://cloudflare.com/cdn-cgi/trace ``` 2. Query String Syntax: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{USERNAME}?country=US&subdivision=CA:{PASSWORD}' \ https://cloudflare.com/cdn-cgi/trace ``` Learn more at [Geotargeting documentation](https://docs.joinmassive.com/residential/geotargeting) # How do I implement sticky sessions? Source: https://docs.joinmassive.com/kb/technical/how-do-i-implement-sticky-sessions Basic Format: ```bash theme={null} PROXY_USERNAME-session-YOUR_ID:PASSWORD ``` Complete Example with All Parameters: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{USERNAME}-session-37-sessionttl-30-sessionmode-flex:{PASSWORD}' \ https://cloudflare.com/cdn-cgi/trace ``` Parameters Explained: * session-37: Unique session identifier * sessionttl-30: 30-minute session duration * sessionmode-flex: Flexible session mode * Port 65535: HTTPS (Use 65534 for HTTP, 65533 for SOCKS5) # How do I set up HTTPS proxy authentication with Massive Network? Source: https://docs.joinmassive.com/kb/technical/how-do-i-set-up-https-proxy-authentication-with-massive-network To authenticate using Massive Network's **HTTPS proxy**, follow these steps: ### **Step 1: Use the Correct Port** * For **HTTPS proxy connections**, always use **port 65535**. * Do not use ports assigned to other protocols, such as HTTP (65534) or SOCKS5 (65533). ### **Step 2: Run the Authentication Command** Use the following `curl` command to authenticate your **HTTPS proxy** connection: ```bash theme={null} curl --proxy https://network.joinmassive.com:65535 -U 'PROXY_USERNAME:PROXY_PASSWORD' https://cloudflare.com/cdn-cgi/trace ``` * Replace PROXY\_USERNAME and `PROXY_PASSWORD` with your credentials. * Retrieve your credentials from the **Profile section** of the Massive Network dashboard: [https://partners.joinmassive.com/profile](https://partners.joinmassive.com/profile). ### **Step 3: Generate a Custom Command (Optional)** * For advanced customization (e.g., location targeting or protocol preferences), visit the **Quickstart section** in your dashboard: [https://partners.joinmassive.com/quickstart](https://partners.joinmassive.com/quickstart). Use the **Massive Proxy Configurator** to create tailored commands based on your specific needs. # How do I set up proxy authentication with Residential Proxies? Source: https://docs.joinmassive.com/kb/technical/how-do-i-set-up-proxy-authentication-with-residential-proxies Choose your protocol and follow these steps: **Protocol Ports:** * HTTPS: 65535 * HTTP: 65534 * SOCKS5: 65533 **Authentication Commands:** 1. HTTPS: ```bash theme={null} curl --proxy https://network.joinmassive.com:65535 -U 'PROXY_USERNAME:PROXY_PASSWORD' https://cloudflare.com/cdn-cgi/trace ``` 2. HTTP: ```bash theme={null} curl --proxy http://network.joinmassive.com:65534 -U 'PROXY_USERNAME:PROXY_PASSWORD' https://cloudflare.com/cdn-cgi/trace ``` 3. SOCKS5: ```bash theme={null} curl -x socks5h://network.joinmassive.com:65533 -U 'PROXY_USERNAME:PROXY_PASSWORD' https://cloudflare.com/cdn-cgi/trace ``` **Setup Steps:** 1. Get your credentials from [Profile](http://partners.joinmassive.com/profile) tab 2. Replace `PROXY_USERNAME` and `PROXY_PASSWORD` in the command 3. Optional: Visit [Quickstart](http://partners.joinmassive.com/quickstart) for custom configurations # How should I organize and implement subaccounts? Source: https://docs.joinmassive.com/kb/technical/how-should-i-organize-and-implement-subaccounts You can organize subaccounts based on different strategies: 1. Client/Environment Segmentation: ```bash theme={null} {USERNAME}-subaccount-clientA_production:{PASSWORD} {USERNAME}-subaccount-clientA_staging:{PASSWORD} ``` 2. Department/Project Structure: ```bash theme={null} {USERNAME}-subaccount-marketing_analytics:{PASSWORD} {USERNAME}-subaccount-project_alpha_dev:{PASSWORD} ``` 3. Advanced Implementations (**with targeting**): ```bash theme={null} # Geographic targeting {USERNAME}-subaccount-client1-country-US:{PASSWORD} # Device targeting {USERNAME}-subaccount-client1-device-mobile:{PASSWORD} # Combined parameters {USERNAME}-subaccount-client1-country-US-device-mobile-session-123:{PASSWORD} ``` Here are complete examples showing how to use subaccounts in actual requests: 1. Basic Implementation: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{USERNAME}-subaccount-projectX:{PASSWORD}' \ https://cloudflare.com/cdn-cgi/trace ``` 2. With Customer Tracking: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{USERNAME}-subaccount-customer@example.com:{PASSWORD}' \ https://cloudflare.com/cdn-cgi/trace ``` # Using Massive Residential Proxies with Playwright Source: https://docs.joinmassive.com/kb/technical/using-massive-residential-proxies-with-playwright The playwright supports both synchronous and asynchronous scraping. Here's an asynchronous example: ### Step 1: Install Playwright Run: ```bash theme={null} pip install playwright python -m playwright install ``` ### Step 2: Code Example ```python theme={null} import asyncio from playwright.async_api import async_playwright async def main(): proxy = { "server": "https://network.joinmassive.com:65535", "username": "", "password": "" } async with async_playwright() as p: browser = await p.chromium.launch(proxy=proxy, headless=True) page = await browser.new_page() await page.goto("https://httpbin.io/ip") content = await page.content() print(content) await browser.close() asyncio.run(main()) ``` ### Troubleshooting Common Issues 1. **Invalid Proxy Credentials**: * Ensure your username and password match the Massive dashboard credentials. 2. **Connection Refused**: * Verify the protocol (`http` or `https`) and port (`65534` or `65535`). 3. **SSL Certificate Errors**: * For headless browsers, configure them to ignore SSL certificate issues. 4. **IP Rotation Settings**: * Adjust Sticky TTL in the Massive dashboard to control how often IPs rotate. 5. **Outdated Library Versions**: Ensure libraries like `requests`, `puppeteer`, or `playwright` are up-to-date. # Using Massive Residential Proxies with Puppeteer Source: https://docs.joinmassive.com/kb/technical/using-massive-residential-proxies-with-puppeteer Puppeteer, a popular headless browser library, can use Massive proxies to bypass anti-bot restrictions. ### Step 1: Install Puppeteer Ensure Puppeteer is installed. Run: ```bash theme={null} npm install puppeteer ``` ### Step 2: Configure Proxy Use Puppeteer's `--proxy-server` flag for proxy setup, and authenticate with your Massive credentials. ### Step 3: Code Example ```javascript theme={null} import puppeteer from "puppeteer"; (async () => { const browser = await puppeteer.launch({ args: [`--proxy-server=network.joinmassive.com:65534`], }); const page = await browser.newPage(); await page.authenticate({ username: '', password: '' }); await page.goto("https://httpbin.io/ip"); const body = await page.waitForSelector("body"); const response = await body.getProperty("textContent"); const jsonResponse = await response.jsonValue(); console.log(jsonResponse); await browser.close(); })(); ``` ### Troubleshooting: If you encounter SSL certificate errors (e.g., `net::ERR_CERT_AUTHORITY_INVALID`), add the following: ```javascript theme={null} const browser = await puppeteer.launch({ args: [`--proxy-server=network.joinmassive.com:65534`], ignoreHTTPSErrors: true }); ``` Use HTTP and port 65534 when using Puppeteer with the proxies. # Using Massive Residential Proxies with Scrapy Source: https://docs.joinmassive.com/kb/technical/using-massive-residential-proxies-with-scrapy Here's the clean Markdown version: Scrapy is a powerful web scraping library that supports proxy integration through `meta` parameters or custom middleware. ### Method 1: Using Meta Parameters ```python theme={null} import scrapy class ScraperSpider(scrapy.Spider): name = "scraper" start_urls = ["https://httpbin.org/ip"] def start_requests(self): for url in self.start_urls: yield scrapy.Request( url=url, callback=self.parse, meta={ "proxy": "http://:@network.joinmassive.com:65534" }, ) def parse(self, response): self.logger.info(f"Response: {response.text}") ``` ### Method 2: Custom Middleware Update the `middlewares.py` with: ```python theme={null} class CustomProxyMiddleware: def __init__(self): self.proxy = 'http://:@network.joinmassive.com:65534' def process_request(self, request, spider): if 'proxy' not in request.meta: request.meta['proxy'] = self.proxy ``` Add the middleware to `DOWNLOADER_MIDDLEWARES` in `settings.py`: ```python theme={null} DOWNLOADER_MIDDLEWARES = { 'myproject.middlewares.CustomProxyMiddleware': 350, } ``` Note that, when using proxies with the Scrapy, always use host http and port 65534, which will work perfectly. # Using Residential Proxies with Node.js and Axios Source: https://docs.joinmassive.com/kb/technical/using-residential-proxies-with-nodejs-and-axios Here's how you can integrate them with Node.js using Axios. ### Step 1: Install Axios Ensure you have Node.js installed on your system. Navigate to your project directory and install Axios using the following command: ```bash theme={null} npm install axios ``` ### Step 2: Get Your Proxy Credentials Log in to the Massive dashboard and navigate to the **Profile** section to find your username, password, and proxy domain. Your proxy URL should follow this format: ``` https://:@network.joinmassive.com:65535 ``` Replace `` and `` with your Massive credentials. ### Step 3: Make Requests with Massive Residential Proxies Here's an example of using Axios with Massive proxies to send a request to `httpbin.io/ip`, which returns the IP address used for the request. ```javascript theme={null} const axios = require('axios'); // Proxy credentials const proxy = { protocol: 'https', host: 'network.joinmassive.com', port: '65535', auth: { username: '', password: '' } }; // Target URL const targetURL = 'https://httpbin.io/ip'; // Axios instance with SSL verification disabled const axiosInstance = axios.create({ proxy: proxy, httpsAgent: new (require('https').Agent)({ rejectUnauthorized: false // Disable SSL verification }) }); // Make the request axiosInstance.get(targetURL) .then(response => { console.log('Your IP Address:', response.data); }) .catch(error => { console.error('Error:', error.message); }); ``` ### Troubleshooting Common Errors Here are some common issues and their solutions: ### 1. Invalid Proxy Credentials * If you see a `407 Proxy Authentication Required` or `401 Unauthorized` error, ensure your username and password in the `auth` section match the credentials in the Massive dashboard. ### 2. Outdated Axios Version * Older Axios versions might not support all proxy configurations. Update Axios to the latest version using: `npm install axios@latest` ### 3. Connection Refused or Blocked * Verify that you're using the correct protocol (`http` or `https`) and port (`65534` or `65535`). * Check if the target website is blocking proxies. Some websites implement advanced anti-bot mechanisms. ### 4. Invalid Proxy URL Format * The proxy URL must be correctly formatted: `:port` * Ensure no component is missing or incorrectly configured. ### 5. IP Rotation Issues If IPs are not rotating as expected, check the **Sticky TTL** settings on Massive. Lower the TTL value to rotate IPs more frequently. # What are Massive's proxy pool capabilities? Source: https://docs.joinmassive.com/kb/technical/what-are-massives-proxy-pool-capabilities Our proxy infrastructure includes: 1. Residential Proxy Pool: * 750,000+ unique IPs daily * Unlimited concurrent connections * Full access to entire proxy pool * No sub-pool restrictions 2. ISP Proxy Pool: * 20,000 dedicated IPs * Flexible allocation options: * Dedicated IP assignments * Shared pool access * Customizable allocations # What are sticky sessions and how do they work? Source: https://docs.joinmassive.com/kb/technical/what-are-sticky-sessions-and-how-do-they-work Sticky sessions (session persistence) maintain the same proxy IP for multiple requests. **Key Features:** 1. Duration: * Default TTL: 15 minutes * Maximum TTL: 1440 minutes (24 hours) * Customizable via `sessionttl` parameter * Static TTL: expires at creation time + TTL, not extended by activity 2. Session Modes: * **Strict Mode** (Default): Any error immediately rotates to a new node * **Flex Mode**: Tolerates up to N consecutive errors before rotating (default 15, customizable via `sessionerr`) * **No-Rotate Mode**: Never rotates on errors; returns 472 (tunnel error) or 475 (node offline) instead For more details, refer to the [sticky sessions documentation](/residential/sticky-sessions). # What are the rules for combining parameters? Source: https://docs.joinmassive.com/kb/technical/what-are-the-rules-for-combining-parameters When combining targeting parameters: 1. Mandatory Requirements: * Country parameter is always required * Additional parameters must be valid for the specified country 2. Parameter Hierarchy: * ZIP/Postal code takes precedence over city * Subdivision and city must match when both are used 3. Impact Considerations: * More specific targeting reduces available proxy nodes * Start with broad parameters and narrow as needed # What are the usage restrictions for Massive Network proxies (ISP and Residential)? Source: https://docs.joinmassive.com/kb/technical/what-are-the-usage-restrictions-for-massive-network-proxies-isp-and-residential Our proxy networks have the following restrictions: 1. Protocol Support: * ISP Proxies: UDP is restricted by default (contact support for access) * Residential Proxies: Only HTTP(S) and SOCKS5 protocols are supported 2. Port Access: * Standard ports (80 and 443) are available * Non-standard ports (e.g., [example.com:8080](http://example.com:8080)) are blocked and return a 453 Port Forbidden error * Port 25 is blocked on both networks * For email testing, request access to Ports 587 or 465 3. Content Policy: * Only legal and compliant activities are supported * 452 Disallowed Content error will appear for restricted content * The network is designed for "family-friendly" content * See [Blocked Destination Categories](https://www.joinmassive.com/blocked-destinations) for the full list of categories blocked at the network layer. # What geotargeting parameters are supported? Source: https://docs.joinmassive.com/kb/technical/what-geotargeting-parameters-are-supported Massive Network supports various geographic parameters: 1. Country (Mandatory): * Two-letter [ISO codes](https://www.iso.org/obp/ui/#search/code) (e.g., US, GB, CA) * Required for all geotargeting requests 2. Optional Parameters: * Subdivision/State: Alphanumeric codes (e.g., CA for California) * City: Case-sensitive. Use normal capitalization, spaces, and accents (e.g., "New York", "São Paulo"). Avoid all-lowercase values or values with the spaces removed. * ZIP/Postal Code: Format varies by country: * US: 5 digits (10001) * UK: 2-4 characters (SW1A) * Canada: 3 characters (M5V) * Other countries have specific formats * Geohash: a 1–4 character code for an area on the map (e.g., dr5r); country is optional with it. See [Geohash targeting](https://docs.joinmassive.com/residential/geohash-targeting) Learn more at [Geotargeting documentation](https://docs.joinmassive.com/residential/geotargeting) # What is device-type targeting? Source: https://docs.joinmassive.com/kb/technical/what-is-device-type-targeting This feature routes requests through specific device categories: * Mobile: Smartphones and tablets * Common: Desktop computers and laptops * TV: Smart TVs and set-top boxes Basic Implementation: ```java theme={null} {USERNAME}-device-[DEVICE_TYPE]:{PASSWORD} ``` For more details, refer to the documentation on [device-type targeting](https://docs.joinmassive.com/residential/device-type-targeting). # What is the difference between a sticky session and a TCP connection? Source: https://docs.joinmassive.com/kb/technical/what-is-the-difference-between-sticky-sessions-and-tcp-connections A common source of confusion is the relationship between **sticky sessions** and **TCP connections**. They are independent concepts that operate at different layers. ## TCP Connection (Transport Layer) A TCP connection is the underlying network link between your client and the Massive proxy server. It carries the actual bytes of your HTTP/HTTPS/SOCKS5 requests. * **Idle timeout**: Open TCP connections automatically close after **30 seconds of inactivity** * **Scope**: A single request (or a series of keep-alive requests on the same socket) * **Lifetime**: Typically seconds to minutes, depending on activity When a TCP connection closes, it does **not** mean your sticky session has expired or that a new IP has been assigned. ## Sticky Session (Application Layer) A sticky session is a logical mapping between your session ID and a specific proxy node (IP address). It is tracked server-side and persists independently of TCP connections. * **Default TTL**: 15 minutes (customizable up to 1440 minutes via `sessionttl`) * **TTL is static**: Set at creation time, not extended by subsequent requests * **Scope**: All requests sharing the same session ID, regardless of how many TCP connections they use * **Lifetime**: Minutes to hours, controlled by `sessionttl` parameter. ## How They Work Together Within a single sticky session, many TCP connections can open and close — your IP stays the same throughout. **1. 0:00 — First request** TCP connection opens → Request with `session-abc` → Assigned to IP **1.2.3.4** → TCP connection closes. **2. 0:45 — Second request (45 seconds later)** New TCP connection opens → Same `session-abc` → Still routed to IP **1.2.3.4** → TCP connection closes. **3. 3:00 — Third request (3 minutes later)** New TCP connection opens → Same `session-abc` → Still IP **1.2.3.4**. Session is alive until TTL expires. **4. 15:00 — Session TTL expires** The 15-minute sticky session ends. The IP **1.2.3.4** is no longer reserved for `session-abc`. **5. 15:01 — Next request** New TCP connection opens → Same `session-abc` → New session created → New IP **5.6.7.8**. > [!NOTE] > > TCP connections closed 3 times in this example, but the IP never changed until the session TTL expired. ## Key Takeaway | | TCP Connection | Sticky Session | | - | - | - | | **What it is** | Network socket between client and proxy | Logical IP-to-session mapping | | **Idle timeout** | 30 seconds | None (static TTL) | | **Max lifetime** | As long as data flows | 1440 minutes (`sessionttl-1440`) | > [!NOTE] > > The 30-second idle timeout applies to the TCP connection, not the session TTL. If your TCP connection closes due to inactivity, simply open a new connection with the same session ID — you will get the same IP as long as the session TTL has not expired. For more details on session modes and configuration, see the [sticky sessions documentation](/residential/sticky-sessions). # What ports are available for email services? Source: https://docs.joinmassive.com/kb/technical/what-ports-are-available-for-email-services For email-related traffic, the following ports are available with prior approval: * Port 587: SMTP with STARTTLS * Port 465: SMTP over SSL/TLS **Note:** Port 25 is blocked to prevent spam and abuse. # What ports should I use for proxy connections? Source: https://docs.joinmassive.com/kb/technical/what-ports-should-i-use-for-proxy-connections The following ports are available: 1. HTTPS Protocol: Port 65535 2. HTTP Protocol: Port 65534 3. SOCKS5 Protocol: Port 65533 4. Alternative Port: 1080 (use when default ports are blocked by firewall) # When do sticky sessions change nodes? Source: https://docs.joinmassive.com/kb/technical/when-do-sticky-sessions-change-nodes Sessions may change under these conditions: 1. TTL expiration 2. Request limit exceeded 3. Node unavailability 4. Mode-specific conditions: * Flex Mode: After 15 consecutive errors * Strict Mode: Immediate change on failure * No-Rotate Mode: The node does not change until TTL expires # Which ports should I use for standard web traffic? Source: https://docs.joinmassive.com/kb/technical/which-ports-should-i-use-for-standard-web-traffic Only standard ports 80 (HTTP) and 443 (HTTPS) are allowed for communication. # How can I prevent common errors before they occur? Source: https://docs.joinmassive.com/kb/troubleshooting/how-can-i-prevent-common-errors-before-they-occur Follow these best practices: 1. Always double-check: * Credential format * Port-protocol matching * Routing parameters 2. Review content policy before: * Using specific ports * Accessing certain content types * Implementing new protocols 3. Monitor response bodies and headers for detailed error information # How do I handle errors and debugging? Source: https://docs.joinmassive.com/kb/troubleshooting/how-do-i-handle-errors-and-debugging ### Windows: MassiveStatus enum includes these error states: * `INVALID_ARGS`: Invalid arguments passed to function * `UNINITIALIZED_SERVICE`: Service not initialized * `INITIALIZING_SERVICE`: Service is initializing * `ALREADY_STARTED`: Node already started * `CORRUPTED_INSTALLATION`: Installation is corrupted * `INTERNAL_ERROR`: Internal error occurred ### Android/Fire OS: * Provides callbacks for the `init`, `start`, and `stop` methods to handle errors. ### iOS: * Provides callbacks for the `initAsync` method to handle errors. * Requires checking the return values of the `start` and `stop` methods. Learn more about error handling: * [Android](https://docs.joinmassive.com/monetization-sdk/mobile-android#technical-details) * [Windows](https://docs.joinmassive.com/monetization-sdk/desktop-windows#api-reference) * [iOS](https://docs.joinmassive.com/monetization-sdk/mobile-ios#technical-details) # How do I troubleshoot a connection failure? Source: https://docs.joinmassive.com/kb/troubleshooting/how-do-i-troubleshoot-a-connection-failure Follow these steps: 1. Verify Protocol-Port Matching: * HTTPS: Port 65535 * HTTP: Port 65534 * SOCKS5: Port 65533 2. Check Credentials: * Format: username:password * Look for typos or spaces * Verify in [Profile](https://partners.joinmassive.com/profile) section 3. Test Configuration: ```bash theme={null} curl -x "https://network.joinmassive.com:65535" -U "username:password" http://ip-api.com ``` # I'm getting a "CONNECT tunnel failed, response 407" error. How do I fix it? Source: https://docs.joinmassive.com/kb/troubleshooting/im-getting-a-connect-tunnel-failed-response-407-error-how-do-i-fix-it I'm getting a "CONNECT tunnel failed, response 407" error. How do I fix it? This is an authentication error. To resolve: 1. Verify credentials format (username:password) 2. Check for correct port usage 3. Run test command to validate setup 4. If persisting, [contact support](https://forms.fillout.com/t/p8dRqBYs58us) with error details # Incompatibility with Older Python Versions (Pre-3.9.3) and HTTPS Proxies Source: https://docs.joinmassive.com/kb/troubleshooting/incompatibility-with-older-python-versions-pre-393-and-https-proxies **Overview** This article provides guidance on troubleshooting issues related to using a residential proxy network with Python, specifically focusing on scenarios where an older version of Python does not support HTTPS proxies. We also cover the usage of HTTP proxies as an alternative when upgrading Python is not feasible. **Problem:** Clients using older versions of Python (before 3.9.3) often face issues when attempting to use HTTPS proxies with the requests library. This is due to the lack of support for HTTPS proxies in older Python versions. **Root Cause** Python versions prior to 3.9.3 have limited support for HTTPS proxies, which can lead to issues such as slow response times or failures when making HTTPS requests. The requests library in these versions may struggle with proxying HTTPS connections, especially when using older versions of the library. **Solution** 1. **Verify Python and requests Library Versions** * Use Python 3.9.3 or later. If upgrading Python is not an option, use HTTP instead of HTTPS. * Confirm the version of the requests library. While the latest version is recommended, the issue primarily lies with the Python version rather than the library. 2. **Switch to HTTP Proxy (Port 65534)** * If upgrading Python is not possible due to dependency constraints, use the HTTP proxy on port 65534. * The HTTP proxy works well with all versions of Python and does not require an upgrade. * Modify the proxy configuration in the script to use HTTP as shown below: > **Configuration Note:** > While configuring your proxy settings in Python, it's important to note that even though the requests library expects both http and https keys in the configuration, you can set both keys to the HTTP proxy address (using port 65534). This configuration works correctly and ensures compatibility across different Python versions. ```python theme={null} #!/usr/bin/env python3 import urllib import requests username = urllib.parse.quote('PROXY_USERNAME') password = 'API_KEY' url = 'http://cloudflare.com/cdn-cgi/trace' # Insert your target URL here host = 'network.joinmassive.com' port = 65534 # Use HTTP port proxy = f'http://{username}:{password}@{host}:{port}' response = requests.get(url, proxies={'http': proxy, 'https': proxy}) print(response.content) ``` **Additional Notes** * **Compatibility**: Be aware that while HTTP is less secure than HTTPS, it might be the only viable solution when working with older Python environments. **Conclusion** When encountering issues with HTTPS proxies in Python, especially in versions prior to 3.9.3, switching to an HTTP proxy (port 65534) can provide a quick and effective workaround. This approach maintains the functionality of your residential proxy network while avoiding the need for a Python version upgrade that might disrupt existing dependencies. For further assistance or if you continue to experience issues, please [contact our support team](https://forms.fillout.com/t/p8dRqBYs58us). # What are the most common error codes and how do I fix them? Source: https://docs.joinmassive.com/kb/troubleshooting/what-are-the-most-common-error-codes-and-how-do-i-fix-them Errors generated by Massive use status codes in the 452–454 and 470–477 ranges and always include an `X-Reason` response header. Any other status code — 403, 404, 500, 502, 503, and so on — comes from the target site and is passed through unchanged. Here are the main error codes and their solutions: 1. Authentication Error (407): * Meaning: The provided credentials are invalid * Fix: Verify the username and password format 2. Bad Request (400): * Meaning: The request is malformed * Fix: Check routing parameters and request syntax 3. Disallowed Content (452): * Meaning: The request violates Massive's content policy * Fix: Check for restricted protocols or blocked destinations 4. Port Forbidden (453): * Meaning: The requested port is not available on the account * Fix: Use port 80 or 443, or request additional ports via support 5. Target Unresolvable (454): * Meaning: The target hostname could not be resolved * Fix: Verify that the hostname is correct and publicly resolvable 6. Capacity and Routing Errors (470–477): * 470 (No Nodes Available): No nodes are currently available; retry after a short delay * 471 (No Route Match): The geotargeting is too restrictive; relax the constraints * 472 (Node Tunnel Failed): A tunnel to a proxy node failed; usually temporary, so retry * 473 (Upstream Unavailable): A Massive server was unreachable; usually temporary, so retry * 474 (Proxy Internal Error): Retry, and contact support if the error persists * 475 (Sticky Node Gone): The session's node went offline; start a new session * 476 (Target Connect Timeout): Connections to the target timed out; increase the connect timeout or check the target * 477 (Sticky Node At Capacity): The session's node is temporarily busy; retry with the same session ID shortly See [Error Types](/residential/error-types) for the full reference, including SOCKS5 reply codes. # What should I do if I encounter issues with the SDK? Source: https://docs.joinmassive.com/kb/troubleshooting/what-should-i-do-if-i-encounter-issues-with-the-sdk What should I do if I encounter issues with the SDK? If you encounter any issues or need assistance: * Submit a ticket: [Support Portal](https://forms.fillout.com/t/p8dRqBYs58us) * Contact support: [support@joinmassive.com](mailto:support@joinmassive.com) # What should I do if I receive a server error (500, 502, or 503)? Source: https://docs.joinmassive.com/kb/troubleshooting/what-should-i-do-if-i-receive-a-server-error-500-502-or-503 A 500, 502, or 503 on a proxied request comes from the target site, not from Massive. Errors that originate within the Massive network use status codes in the 452–454 and 470–477 ranges and always include an `X-Reason` response header. * If the response has no `X-Reason` header, the target site returned the error and Massive delivered it unchanged. Retry the request, or check the status of the target site. * If the response carries a Massive status code instead: * 470, 472, or 473: The condition is usually temporary; wait a moment and retry * 471: The geotargeting is too restrictive; relax the routing parameters * 474: Retry, and contact support if the error persists * 475: The sticky session's node went offline; start a new session * 476: Connections to the target host timed out; check the target or increase the connect timeout * 477: The sticky session's node is temporarily busy; retry with the same session ID shortly See [Error Types](/residential/error-types) for the full list of status codes. # What should I do if the SDK initialization fails? Source: https://docs.joinmassive.com/kb/troubleshooting/what-should-i-do-if-the-sdk-initialization-fails If initialization fails: * Check if the API token is correct. * Ensure the platform requirements are met * Verify that all required permissions are granted. # Why do DNS leak tests show servers in a different country? Source: https://docs.joinmassive.com/kb/troubleshooting/why-do-dns-leak-tests-show-servers-in-a-different-country When running a DNS leak test through our proxy, you may see DNS resolvers in a country different from your selected exit node (for example, German DNS servers appearing when targeting the US). This is expected behavior caused by our security architecture — it is not a DNS leak. Our proxy servers perform a DNS lookup on incoming requests to verify that hostnames do not resolve to private or local IP addresses. This validation protects against [DNS rebinding attacks](https://en.wikipedia.org/wiki/DNS_rebinding), a class of vulnerability where an attacker tricks a proxy into connecting to internal network resources. Because this validation runs on our infrastructure, the DNS server used may be in a different region than your selected exit node, causing DNS leak test sites to detect it as a separate resolver. Your actual traffic still exits through a node in your selected country. The validation lookup is purely internal and is invisible to target websites — they only see the connection from the exit node's IP address in the country you specified. The DNS resolver location has no impact on your browsing, scraping, or data collection. # Select Your Platform Source: https://docs.joinmassive.com/monetization-sdk/desktop The Massive SDK is available on Windows. > [card] [Windows](/monetization-sdk/desktop-windows) > > Integrate in Windows. # Windows (C/C++) Source: https://docs.joinmassive.com/monetization-sdk/desktop-windows Integrate Massive SDK into your Windows application with this guide. ## Example code ```c theme={null} #include ... void initCallback(MassiveStatus status, void *context) { if (status == MassiveStatus::OP_SUCCESS) { if (MassiveStart() != MassiveStatus::OP_SUCCESS) { MassiveShowTaskbarUsage(); bool isTaskbarUsageShown = false; MassiveIsTaskbarUsageShown(&isTaskbarUsageShown); if (isTaskbarUsageShown) MassiveHideTaskbarUsage(); bool isMassiveStarted = false; MassiveIsStarted(&isMassiveStarted); if (isMassiveStarted) MassiveStop(); } } } MassiveOptions options = MassiveOptions::STOP_MASSIVE_ON_APP_QUIT; MassiveInitWithAPIToken(apiToken, options, initCallback, context); ... MassiveCleanUp(); ``` ## Getting started 1. Download the [latest SDK package][3]. 2. Extract the package to your folder of choice. 3. Open your IDE and the project you want to integrate the SDK into. 4. Add the extracted `include` folder to your include path. 5. Add the `lib\win64` folder to your library path and, from that folder, the `MassiveClient.dll` library as a dependency. 6. Configure the `MassiveInstaller.exe` installer to be copied, at build time, from the `bin` to output folders. 7. In your implementation file, import the SDK: ```c theme={null} // Importing in C/C++: #include ``` 8. Start and wait till the SDK is ready by calling the `MassiveInitWithAPIToken` function and defining a `MassiveInitCallback` continuation function: ```c theme={null} // Starting in C/C++: MassiveInitWithAPIToken(apiToken, options, initCallback, context); void initCallback(MassiveStatus status, void *context) { if (status == MassiveStatus::OP_SUCCESS) { ... } } ``` 9. When the user opts in, call the `MassiveStart` function: ```c theme={null} // Opting in in C/C++: MassiveStart(); ``` 10. Next, show user tooling by calling the `MassiveShowTaskbarUsage` function on demand: ```c theme={null} // Showing system tooling in C/C++: MassiveShowTaskbarUsage(); ``` See the [API reference][6] for detailed info and optional SDK functionality. ## Sample apps See the `README.txt` file and `samples` folder in the [SDK package][7]. The samples demonstrate how to integrate the SDK into your project and use its functionality. * `MassiveCliSample` is a simple console application that demonstrates how to integrate the SDK into a C/C++ project. * `MassiveSample` is a simple Windows application that demonstrates how to integrate the SDK into a C# project. ## API reference ### Types **`typedef enum MassiveStatus`** An enumeration of possible states of the Massive SDK. **Values** **`OP_SUCCESS`** The operation was successful. **`INVALID_ARGS`** The arguments passed to the function were invalid. **`UNINITIALIZED_SERVICE`** The Massive service was not initialized. **`INITIALIZING_SERVICE`** The Massive service is initializing. **`ALREADY_STARTED`** The node is already started. **`CORRUPTED_INSTALLATION`** The installation is corrupted. **`INTERNAL_ERROR`** An internal error occurred. *** **`typedef enum MassiveOptions`** An enumeration of options for the Massive SDK initialization. **Values** **`NONE`** No options. **`STOP_MASSIVE_ON_APP_QUIT`** Stops the Massive service when the client app quits. *** **`typedef void(__cdecl *MassiveInitCallback)(MassiveStatus status, void *context);`** A function called asynchronously after a node of the Massive network has been initialized. The startup state and local data from the caller are passed to the function. **Parameters** **`status`** The startup state of the node. **`context`** Any local data passed to the `MassiveInitWithAPIToken` function. *** **`typedef void(__cdecl *MassiveCallback)(void *context);`** Type of generic callback that is used to handle async events from the SDK. **Parameters** **`context`** Any local data passed to the function which uses this callback. *** ### Functions **`void __cdecl MassiveInitWithAPIToken(const char *apiToken, const MassiveOptions options, MassiveInitCallback callback, void *context);`** Starts a Massive node, pending user opt-in, attributed to your API token. **Parameters** **`apiToken`** A unique developer identifier obtained from this the [applications](https://partners.joinmassive.com/sdk/applications) page. **`options`** Options for the Massive SDK initialization. **`callback`** A function called asynchronously after node startup. **`context`** Any local data to pass to the `callback` function. *** **`void __cdecl MassiveCleanUp();`** De-initializes and releases all resources acquired by Massive. *** **`const char *__cdecl MassiveGetVersion();`** Returns the version of the Massive SDK. **Return value** The version of the Massive SDK in the format `major.minor.patch`. *** **`MassiveStatus __cdecl MassiveStart();`** Allows computing resources to be opportunistically consumed. The user must agree to easy-to-understand terms of the exchange you’re offering before you call this function. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveStop();`** Disallows computing resources to be consumed. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveIsStarted(bool *isStarted);`** Queries the allowing state of the computing resources sharing. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveShowTaskbarUsage();`** Adds charts representing resource consumption to the user’s taskbar. Resource charts must be made available by calling this function. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveHideTaskbarUsage();`** Hides charts representing resource consumption from the user's taskbar. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveIsTaskbarUsageShown(bool *isShown);`** Queries the visibility state of taskbar tooling. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveStoppedViaTaskbarCallback(MassiveCallback callback, void *context);`** Sets a callback to be called when user opts out from Massive using Taskbar UI. **Parameters** **`callback`** A callback to notify about the event. **`context`** Any local data to pass to the `callback` function. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveStartedViaTaskbarCallback(MassiveCallback callback, void *context);`** Sets a callback to be called when user opts in to Massive using Taskbar UI. **Parameters** **`callback`** A callback to notify about the event. **`context`** Any local data to pass to the `callback` function. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveSetServiceUnavailableCallback(MassiveCallback callback, void *context);`** Sets a callback to be called when connection to the Massive is lost. **Parameters** **`callback`** A callback to notify about the event. **`context`** Any local data to pass to the `callback` function. **Return value** Execution status code. *** **`MassiveStatus __cdecl MassiveSetServiceAvailableCallback(MassiveCallback callback, void *context);`** Sets a callback to be called when connection to the Massive is restored. **Parameters** **`callback`** A callback to notify about the event. **`context`** Any local data to pass to the `callback` function. **Return value** Execution status code. [3]: https://partners.joinmassive.com/sdk/downloads [6]: #api-reference [7]: #getting-started # Introduction Source: https://docs.joinmassive.com/monetization-sdk/introduction The Massive SDK provides a new way to monetize app features and content without annoying ads or low-converting paywalls. # About Us Your users who opt in pay with an imperceptible amount of their computing power and bandwidth rather than with their personal attention and data. Massive combines these computing resources to form a supercomputer that monitors internet performance, gathers business intelligence, trains AI models, runs scientific simulations, and performs other distributed tasks. You can access your developer dashboard anytime to check the daily revenue you’ve generated. The SDK takes care of performing tasks imperceptibly by analyzing anonymous telemetry data. You’re responsible for making sure users are prompted with clear terms before opting in then can pause, opt out of, and access tooling to visualize resource consumption. # Getting started The first step to using Massive Network is making sure you have been approved to use our SDK. If you haven't done so already, [create an account](https://partners.joinmassive.com/create-account-sdk) and if you have signed up but do not have credentials email [support@joinmassive.com](support@joinmassive.com). # Select Your Platform Source: https://docs.joinmassive.com/monetization-sdk/mobile-and-smart-tv The Massive SDK is available on Android, FireOS, iOS, Tizen, and WebOS. > [card] [Android](/monetization-sdk/mobile-android) > > Integrate in Android. > [card] [iOS](/monetization-sdk/mobile-ios) > > Integrate in iOS. > [card] [Fire OS](/monetization-sdk/tv-fire) > > Integrate in Fire OS. > [card] [Tizen](/monetization-sdk/tizen) > > Integrate in Tizen. > [card] [webOS](/monetization-sdk/webos) > > Integrate in webOS. # Android Source: https://docs.joinmassive.com/monetization-sdk/mobile-android Integrate Massive SDK into your Android application with this guide. ## Technical Requirements | | | | - | - | | Android SDK Level | `21 (Lollipop)` or later | | Kotlin version | `1.9.0` or later | | Java version | `17` or later | ### Permissions Needed | | | - | | `android.permission.INTERNET` | | `android.permission.ACCESS_NETWORK_STATE` | | `android.permission.FOREGROUND_SERVICE` | | `android.permission.FOREGROUND_SERVICE_DATA_SYNC` | | `android.permission.WAKE_LOCK` | ## Integration Guide ### Sample application | | | | | - | - | - | | | Sample Application Kotlin (Android / FireOS) | [Download](https://partners.joinmassive.com/sdk/downloads) | | | Sample Application Flutter (Android) | [Download](https://partners.joinmassive.com/sdk/downloads) | Massive SDK comes with a sample application showing project configuration, API integration, and consent screen. To run the app, follow next steps: 1. Download the latest sample using the link above. 2. Unarchive and open the project in Android Studio. 3. Copy the API token from the [applications](https://partners.joinmassive.com/sdk/applications) page. 4. Set the token value to the variable `API_TOKEN` at the end of `MainActivity.kt`. 5. Build and run a target `sampleapp`. ### Dependency configuration Add the dependency to your project Gradle configuration: 1. Add Massive maven repository to the dependency `repositories` used by the project. You can find the URL in the [downloads](https://partners.joinmassive.com/sdk/downloads) page. It can be defined in different places depending on your project. Common places are: global **settings.gradle.kts** ```gradle theme={null} dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() maven { url = uri("MASSIVE_MAVEN_REPO_URL") } } } ``` project **build.gradle** ```gradle theme={null} allprojects { repositories { google() mavenCentral() maven { url uri("MASSIVE_MAVEN_REPO_URL") } } } ``` 2. In the build configuration file for your **app module** (*build.gradle.kts* / *build.gradle*), add the Massive SDK as a dependency: ```gradle theme={null} dependencies { implementation("com.joinmassive:sdk:1.+") } ``` **Note:** Make sure to add and configure the `org.jetbrains.kotlin.android` plugin to your app module. ```gradle theme={null} plugins { id("org.jetbrains.kotlin.android") } android { ... kotlinOptions { jvmTarget = "1.8" } } ``` If you use a `toml` file for dependency configuration, add the following to the `toml`: ```gradle theme={null} [versions] massiveSdk = "massive_sdk_version_here" [libraries] massive-sdk = { group = "com.joinmassive", name = "sdk", version.ref = "massiveSdk"} ``` Then, define SDK dependency in the `gradle` file as: ```gradle theme={null} dependencies { implementation(libs.massive.sdk) } ``` ### Integration to the app #### 1. Get the API token Massive SDK API token is available in the [applications](https://partners.joinmassive.com/sdk/applications) page. #### 2. Initialize MassiveClient Interaction with Massive SDK starts with initializing the `MassiveClient` in your `Activity` or `Application` class. Ensure you do this at the start of the application lifecycle. ```kotlin theme={null} class MainActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) // Initialize MassiveClient MassiveClient.init(API_TOKEN, this) } } ``` #### 3. Create client options Next, fill in the client options to specify the desired running mode: *Foreground* or *Background* service. *Foreground* service is preferable as it increases the earning potential. You can find more information about the difference in the [Technical details](#technical-details). ```kotlin theme={null} val massiveOptions = MassiveOptions( serviceType = MassiveServiceType.Foreground, notificationOptions = MassiveNotificationOptions( notificationTitle = getString(R.string.notification_title), notificationText = getString(R.string.notification_content), iconDrawable = com.joinmassive.sdk.R.drawable.massive_sdk_icon ) ) ``` #### 4. Request consent from the user Before starting the client, obtain user consent for the terms of resource exchange. Please see our [launch checklist](https://www.joinmassive.com/launch-checklist-android) for additional details. Here is the sample consent screen: ![Android Consent Screen](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/android-consent-screen.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=6dcf6a12e8428804d294db827fc96a1b) Example consent text ``` To remove ads and get free content, please let Massive use a small amount of your device's free resources and IP address to download public web data from the internet. This supports the development of Application and helps us to improve our services. No personal information is collected except your IP address. Your participation is optional, and you may opt out anytime by accessing Settings (see Massive's FAQ for details). Pressing Accept indicates that you agree to Massive's license and privacy policy. ``` #### 5. Start usage after consent After receiving the user's consent, start usage using the `start()` method and created options: ```kotlin theme={null} // Check if there is user consent to use Massive and show the dialog if we need to request it. if (!consentHelper.isConsentGiven()) { consentHelper.showConsentDialog( onAccept = { // Start Massive if the user has given consent. MassiveClient.start(massiveOptions) { result -> result.onSuccess { // Handle successful start. }.onFailure { exception -> // Handle start failure. } } }, onDecline = {} ) } else { // If the user has already given consent, start Massive directly. MassiveClient.start(massiveOptions) { result -> result.onSuccess { // Handle successful start. }.onFailure { exception -> // Handle start failure. } } } ``` ## Changes in the new Massive SDK 1.0 The new version of the Massive SDK introduces several significant changes aimed at improving usability, performance, and integration flexibility. Here is an overview of the key changes: 1. Dependency configuration: The dependency configuration process has been streamlined. Instead of manually setting up a local Maven repository, you can now directly add the Massive Maven repository to your project’s Gradle configuration. This simplification reduces setup time and potential errors, ensuring a more efficient integration of the SDK. 2. Changed package name: The name of the Massive SDK package has changed from `com.massive` to `com.joinmassive`. 3. Changed client interface: The `MassiveClient` has shifted from using a singleton instance to utilizing static methods. This change simplifies interaction with the SDK, making it more straightforward to initialize and manage the client throughout the application lifecycle. 4. Options handling: The process of providing options has been moved from the init stage to the `start` method. This allows for more dynamic configuration, enabling modification of the service options at the time of starting the client rather than during initialization. This separation ensures a quicker initialization process and more flexible configuration management. 5. Changed behavior of `stop`: The behavior of the stop method has been enhanced. In the new version, calling `stop` not only stops the usage but also shuts down the service entirely. This ensures that all operations are cleanly terminated and the service is properly shut down, providing a more robust mechanism for managing the SDK’s lifecycle. 6. Remote service: The Massive SDK service now runs as a separate process, enhancing the stability and performance of the main application. ### Migration from version 0.x #### Dependency Configuration * **Old Version**: Requires manually setting up a local Maven repository. ```bash theme={null} mkdir project/repo unzip massive-sdk.zip -d project/repo ``` ```gradle theme={null} repositories { maven { url = uri("/project/repo") } } ``` ```gradle theme={null} dependencies { implementation("com.massive:sdk:0.+") } ``` * **New Version**: Directly add the Massive Maven repository to the dependency `repositories`. ```gradle theme={null} repositories { maven { url = uri("MASSIVE_MAVEN_REPO_URL") } } ``` ```gradle theme={null} dependencies { implementation("com.joinmassive:sdk:1.+") } ``` #### Initialization * **Old Version**: ```kotlin theme={null} MassiveClient.getInstance(context) { client -> client.initAsync(MASSIVE_DEMO_API_TOKEN, massiveOptions, object : InitCallback { override fun onSuccess() { // Handle successful initialization. } override fun onFailure(message: String) { // Handle initialization failure. } }) } ``` * **New Version**: ```kotlin theme={null} MassiveClient.init(API_TOKEN, context) ``` #### Start and stop methods * **Old Version**: ```kotlin theme={null} client.start() ... client.stop() ``` * **New Version**: ```kotlin theme={null} MassiveClient.start(massiveOptions) { it.onSuccess { // Handle Started state. } it.onFailure { // Handle error. } } ... MassiveClient.stop() { it.onSuccess { // Handle Stopped state. } it.onFailure { // Handle error. } } ``` #### State handling * **Old Version**: ```kotlin theme={null} // Async state handler. client.listener = object : MassiveClientListener { override fun onStateChange(newState: State) { // Handle changed state. } } ... // Current state. client.state ``` * **New Version**: ```kotlin theme={null} // Handle state after the action. MassiveClient.start(massiveOptions) { it.onSuccess { // Handle Started state or query the current state. } it.onFailure { // Handle error. } } // Current state. when (MassiveClinet.state()) { MassiveClient.State.Starting -> { } MassiveClient.State.Started -> { } MassiveClient.State.Stopped -> { } } ``` ## Technical details 1. Android permissions Massive SDK defines the following permissions in the manifest file: * `android.permission.INTERNET` * `android.permission.ACCESS_NETWORK_STATE` * `android.permission.FOREGROUND_SERVICE` * `android.permission.FOREGROUND_SERVICE_DATA_SYNC` * `android.permission.WAKE_LOCK` These permissions will be automatically added to your app during the build. 2. Client initialization Interaction with the SDK always begins with initialization using `MassiveClient.init`, which requires your API token. This initialization step is crucial and should be performed only once during the application’s lifecycle. Subsequent calls to `init` will have no effect. Attempting to re-initialize the SDK with a different API token will result in a `MassiveReinitException`, ensuring that the SDK maintains a single consistent state throughout the app’s runtime. Since the SDK consists of client and service components, initialization can trigger synchronization of their states. To handle this scenario and achieve accurate state tracking, you can pass an additional callback to the `init` method. This callback will be called in the main thread after synchronization is complete. 3. User consent before starting the usage Before starting the usage for the first time (using the `start()` method), it is mandatory to obtain user consent for the terms of resource exchange. This aligns with user privacy and control principles. Ensure that your application includes a clear and understandable consent mechanism. ```kotlin theme={null} if (isUserConsentGiven) { MassiveClient.start(massiveOptions) {} } ``` 4. Starting and stopping the client Initialization of the `MassiveClient` with the `init()` method does not automatically launch the service or start the usage. **It prepares the SDK for use but does not begin its operation.** To ensure that the Massive is running, the `start()` method must be called after initialization and on each application relaunch. The `start()` method is designed to be idempotent, meaning it is safe to call multiple times. If the service is already started, subsequent calls to start will have no effect, preventing redundant operations. The `stop()` method is used to stop and kill the service, effectively halting all operations and ensuring that the service is properly terminated. After calling `stop()`, you can restart the client by calling the `start()` method again, and it is possible to provide different options for the restart. This flexibility allows you to change the configuration or operational mode of the SDK as needed. 5. Client options and service types Massive SDK can operate either as a *Background* or a *Foreground* service. The choice depends on your app's requirements and how you want to manage the SDK's resource usage. * *Foreground Service*: Allow Massive to run more and less likely killed by the system but more visible with a customizable notification ensuring the user is aware of the service's operation. **Running as a Foreground Service increases earning potential.** * *Background Service:* Less intrusive, running silently without user interaction. 6. Customizing Foreground Service Notification When running as a foreground service, Massive SDK allows customization of the notification displayed to the user. You can set the title, text, and icon of the notification: ```kotlin theme={null} val options = MassiveOptions( serviceType = MassiveServiceType.Foreground, notificationOptions = MassiveNotificationOptions( notificationTitle = "Your Title", notificationText = "Your Text", iconDrawable = R.drawable.your_icon ) ) ``` Massive library contains a pre-defined drawable icon resource `com.joinmassive.sdk.R.drawable.massive_sdk_icon`, but you can also provide your own. 7. Usage tracking The Massive SDK includes functionality for tracking and retrieving current traffic usage statistics. This allows you to monitor the SDK's data usage, providing insights into its network activity. The `usage` method in the `MassiveClient` class fetches and returns the current traffic usage in *bytes*. Please check the sample application for an example of how to use the method to retrieve and display the traffic usage statistics. 8. SDK remote service The latest version of the Massive SDK uses a remote service that is launched as a separate process. This service handles the core operations of the SDK independently of the main application process, providing better performance and stability. 9. ProGuard rules Massive SDK AAR embeds required Android ProGuard rules which are applied automatically if you are using the R8 compiler. If you, however, don’t use R8 you have to apply the rules below: consumer-rules.pro ```gradle theme={null} # Keep the public SDK entities -keep class com.joinmassive.sdk.** { *; } -keep interface com.joinmassive.sdk.** { *; } -keep enum com.joinmassive.sdk.** { *; } -dontwarn org.jetbrains.annotations.** -keep class kotlin.Metadata { *; } # Keep OkHttp3 and Moshi classes -keep class com.squareup.okhttp3.** { *; } -keep interface com.squareup.okhttp3.** { *; } -keep class com.squareup.moshi.** { *; } -keep interface com.squareup.moshi.** { *; } -keepattributes Exceptions,InnerClasses,Signature,Deprecated,*Annotation*,EnclosingMethod ``` # iOS Source: https://docs.joinmassive.com/monetization-sdk/mobile-ios The Massive SDK provides a new way to monetize app features and content without annoying ads or low-converting paywalls. ## Latest release | | | | | - | - | - | | | iOS SDK | [Download](https://partners.joinmassive.com/sdk/downloads) | | | Sample iPhone Application | [Download](https://partners.joinmassive.com/sdk/downloads) | ## Technical Requirements | | | | - | - | | iOS Minimum Deployment | `16.0` | | iOS Deployment Target | `16.0` or later | | Swift version | `5.10` or later | | Capabilities required | None | ## Integration Guide ### Dependency configuration in Xcode To integrate the Massive SDK into your iOS project, set up the SDK as a dependency in the target's settings. 1. Go to the target's settings and select the `General` tab. 2. Drag and drop the Massive SDK `xcframework` file into the `Frameworks, Libraries, and Embedded Content` section. 3. Ensure that the `xcframework` is set to Embed & Sign. ### Integration to the app Here's an example of how to integrate the Massive SDK into an iOS app. This sample demonstrates the essential steps such as initializing Massive, handling user consent, and starting or stopping the SDK. #### 1. Obtain the API token Massive SDK API token is available in the [applications](https://partners.joinmassive.com/sdk/applications) page. #### 2. Initialize MassiveClient Initialize the client with the API token and handle the result in the callback: ```swift theme={null} MassiveClient.shared.initAsync(apiToken: {API_TOKEN}) { status in switch status { case .initialized: // Handle successful initialization case .error: // Handle initialization error default: // Handle other states when massive is already initialized } } ``` #### 3. Request user consent Before starting the SDK, obtain user consent for the terms of resource exchange. Here is a sample consent screen: ![ios-consent-screen](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/ios-consent-screen.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=d0e4cc9283a1b8c7925235ef49880f3a) #### 4. Start usage After receiving user's consent, start usage using `start()` method: ```swift theme={null} // Check if the user gives consent to use Massive, and show the dialog if we need to request it. if (!isConsentGiven()) { showConsentDialog() } if (MassiveClient.shared.start()) { // Handle successful start } ``` #### 5. Query network usage Having the SDK initialized, you can query the network usage anytime independently of the SDK state. The usage is in bytes and can be converted to more suitable units for display. ```swift theme={null} let usage = MassiveClient.shared.getNetworkUsage() let usageInBytes = Double(usage) let usageInKB = usageInBytes / 1024 let usageInMB = usageInKB / 1024 let usageInGB = usageInMB / 1024 // Display the usage ``` #### 6. Stop usage To stop the SDK, use the `stop()` method: ```swift theme={null} MassiveClient.shared.stop() ``` #### 7. Register a task to run in the background First, enable the **background processing** mode in the app capabilities and add the `com.massive.sdk.startBackground` task ID to the list of permitted task identifiers. Then, register a task to run in the background calling the `startBackground()` method in the provided closure. This must be done before the end of the app launch sequence. ```swift theme={null} let TASK_ID = "com.massive.sdk.startBackground" BGTaskScheduler.shared.register(forTaskWithIdentifier: TASK_ID, using: nil) { task in MassiveClient.shared.startBackground(task: task as! BGProcessingTask) } ``` ## Sample application Massive SDK comes with a sample application showing project configuration, API integration, and consent screen. The archive with the sample contains a *README* file with instructions to set up and run the application. ### Technical details #### 1. Shared instance of the `MassiveClient` The MassiveClient class is designed as a singleton, ensuring that only one instance of the client is active throughout the application's lifecycle. This design simplifies the management of the client's state and its interactions with the Massive network. #### 2. One-time initialization The SDK should be initialized only once per application launch. Attempts to reinitialize the SDK after a successful initialization will simply return its current state. ***The SDK must be reinitialized if the application is terminated and relaunched.*** #### 3. User Consent Before Starting SDK Usage Before starting the SDK (using the `start()` method), it is mandatory to obtain user consent for the terms of resource exchange. This aligns with user privacy and control principles. Ensure that your application includes a clear and understandable consent mechanism. ```swift theme={null} if (isUserConsentGiven) { MassiveClient.shared.start() } ``` #### 4. State persistence The SDK state persists when the application goes into the background. This ensures that the SDK continues to operate correctly when the application is resumed. ***The SDK state is not saved across different launches of the application.*** #### 5. Separate initialization and usage start Initializing the SDK does not automatically start its operation. This separation allows you to initialize the SDK early in your app's lifecycle (e.g., during app startup) and start its operation only after obtaining user consent. #### 6. Background processing The SDK supports background processing to continue its operation when the application is in the background. The application is responsible for registering the background task, but the task scheduling is managed by the SDK. ***The background execution occurs only when the device is charging to preserve battery life.*** #### 7. Network usage data The SDK provides network usage data in bytes and can be queried at any time after the SDK is initialized. The usage reported by the SDK is cumulative and represents the total network usage since the SDK was initialized for the first time. ***The data does not persist across application reinstalls.*** # Quickstart Source: https://docs.joinmassive.com/monetization-sdk/quickstart The Massive SDK is available on various mobile, TV and desktop platforms. > [card] [Massive SDK for desktop](/monetization-sdk/desktop) > [card] [Massive SDK for mobile & smart TV](/monetization-sdk/mobile-and-smart-tv) # Tizen Source: https://docs.joinmassive.com/monetization-sdk/tizen Integrate Massive SDK into your Tizen TV application with this guide. ## Technical Requirements | | | | - | - | | Tizen Version | `3.0` or later | | Tizen TV SDK | Latest version | ### Features Needed | | | - | | `http://tizen.org/feature/web.service` | ### Permissions Needed | | | - | | `http://tizen.org/privilege/internet` | | `http://tizen.org/privilege/messageport` | | `http://tizen.org/privilege/application.launch` | | `http://tizen.org/privilege/tv.inputdevice` | | `http://tizen.org/privilege/filesystem.read` | | `http://tizen.org/privilege/filesystem.write` | | `http://tizen.org/privilege/alarm` | | `http://tizen.org/privilege/system` | ## Downloads | | | | - | - | | Tizen SDK | [Download](https://partners.joinmassive.com/sdk/downloads) | | Tizen Sample Application | [Download](https://partners.joinmassive.com/sdk/downloads) | ## Integration Guide ### Sample application Massive SDK comes with a sample application showing project configuration, API integration, and consent screen. To run the app, follow these steps: 1. Install the [Tizen TV SDK](https://developer.samsung.com/smarttv/develop/getting-started/setting-up-sdk/installing-tv-sdk.html). 2. Extract the sample app and the SDK package provided by Massive. 3. Copy SDK files to the sample app: * Copy `MassiveClient/MassiveClient.js` to the `js/` directory * Copy `MassiveService/MassiveService.js` to the `service/` directory (create if needed) 4. Copy the API token from your [Applications List](https://partners.joinmassive.com/sdk/applications). 5. Set the token value to the `API_TOKEN` constant in `js/main.js`. 6. Create a new partner level certificate in the Tizen Certificate Manager. 7. Create a new Tizen TV web application project in the Tizen IDE. 8. Replace the project files with the sample application files. 9. Build and run the app in the emulator. ### Dependency configuration The Massive SDK for Tizen is distributed in two separate packages: 1. **MassiveSDK-Tizen-X.X.X.zip** - Contains the SDK files needed for integration 2. **SampleApp-Tizen-X.X.X.zip** - Contains a complete sample application To integrate the SDK into your project: 1. Extract the `MassiveSDK-Tizen-X.X.X.zip` file to get the SDK files. 2. Copy the following files to your project: * `MassiveClient/MassiveClient.js` to your `js/` directory * `MassiveService/MassiveService.js` to your `service/` directory 3. Configure your `config.xml` file to use the service: ```xml theme={null} MassiveService Massive SDK Web Service ``` **Note:** Replace `your_package_id` with your actual package ID. 4. Add required features and privileges to `config.xml`: ```xml theme={null} ``` ### Integration to the app #### 1. Get the API token Massive SDK API token is available in your [Applications List](https://partners.joinmassive.com/sdk/applications). #### 2. Import MassiveClient Import the MassiveClient module in your JavaScript file: ```javascript theme={null} import { MassiveClient } from './MassiveClient.js'; ``` **Alternative:** If your environment doesn't support ES6 modules, you can import it in your HTML file: ```html theme={null} ``` #### 3. Initialize MassiveClient Initialize the client with your API token and handle the result in the callback: ```javascript theme={null} let massiveClient = new MassiveClient(); massiveClient.init(API_TOKEN, function(result) { if (result) { // The SDK is initialized } else { // The SDK initialization failed } }); ``` If you made it globally available: ```javascript theme={null} let massiveClient = new window.MassiveClient(); ``` #### 4. Request consent from the user Before starting the client, obtain user consent for the terms of resource exchange. Please see our [launch checklist](https://www.joinmassive.com/launch-checklist) for additional details. Example consent text: ``` To remove ads and get free content, please let Massive use a small amount of your device's free resources and IP address to download public web data from the internet. This supports the development of Application and helps us to improve our services. No personal information is collected except your IP address. Your participation is optional, and you may opt out anytime by accessing Settings (see Massive's FAQ for details). Pressing Accept indicates that you agree to Massive's license and privacy policy. ``` #### 5. Start usage after consent After receiving the user's consent, start usage using the `start()` method: ```javascript theme={null} // Check if there is user consent to use Massive if (isUserConsentGiven()) { massiveClient.start(); } ``` #### 6. Stop usage To stop the SDK usage: ```javascript theme={null} massiveClient.stop(); ``` #### 7. Query SDK status You can query the SDK status at any time after initialization: ```javascript theme={null} massiveClient.status().then((result) => { console.log(result); // Handle status }).catch((error) => { console.error(error); }); ``` Possible status values: * `Uninitialized` * `Initializing` * `Initialized` * `Started` * `Stopped` * `Error` ## Technical details 1. **Service architecture** The Massive SDK for Tizen uses a web service application that runs as a separate service component in your application. This service handles the core operations independently of the main application, providing better performance and stability. 2. **Message port communication** The SDK uses Tizen's message port API for communication between your application and the Massive service. This ensures secure and efficient data exchange between components. 3. **One-time initialization** The SDK should be initialized only once per application session. The initialization establishes communication with the service and prepares the SDK for operation. Subsequent calls to `init` will return the current state without reinitializing. 4. **User consent before starting usage** Before starting the SDK usage for the first time (using the `start()` method), it is mandatory to obtain user consent for the terms of resource exchange. This aligns with user privacy and control principles. Ensure that your application includes a clear and understandable consent mechanism. ```javascript theme={null} if (isUserConsentGiven) { massiveClient.start(); } ``` 5. **Starting and stopping the client** Initialization of the `MassiveClient` with the `init()` method does not automatically start the usage. **It prepares the SDK for use but does not begin its operation.** To ensure that Massive is running, the `start()` method must be called after initialization. The `start()` method is designed to be idempotent, meaning it is safe to call multiple times. If the service is already started, subsequent calls will have no effect. The `stop()` method is used to stop the service operation. After calling `stop()`, you can restart the client by calling the `start()` method again. 6. **Persistent service** The Massive service is designed to persist across application sessions. Once initialized and started, it will continue to operate even when the main application is closed, subject to system resource management policies. 7. **Certificate requirements** To deploy applications with the Massive SDK on Tizen devices, you need a partner-level certificate. This certificate must be created using the Tizen Certificate Manager and is required for accessing certain system privileges needed by the SDK. 8. **Package ID configuration** When integrating the SDK, ensure that the service ID in your `config.xml` matches your application's package ID. This is crucial for proper service registration and message port communication. 9. **Error handling** The SDK provides comprehensive error handling through callbacks and promise rejections. Always implement proper error handling to ensure a smooth user experience: ```javascript theme={null} massiveClient.init(API_TOKEN, function(result) { if (result) { // Success handling } else { // Error handling - initialization failed } }); ``` 10. **Status monitoring** Regular status monitoring helps ensure the SDK is operating correctly. The `status()` method returns a promise that resolves with the current SDK state, allowing you to implement appropriate UI updates or error recovery mechanisms. 11. **Resource management** The SDK is designed to operate efficiently within the resource constraints of Tizen TV devices. It manages network and computational resources carefully to avoid impacting the user experience of your application or the overall TV performance. # Fire OS Source: https://docs.joinmassive.com/monetization-sdk/tv-fire Integrate Massive SDK into your Fire OS application with this guide. ## Technical Requirements | | | | - | - | | Android SDK Level | `21 (Lollipop)` or later | | Kotlin version | `1.9.0` or later | | Java version | `17` or later | ### Permissions Needed | | | - | | `android.permission.INTERNET` | | `android.permission.ACCESS_NETWORK_STATE` | | `android.permission.FOREGROUND_SERVICE` | | `android.permission.FOREGROUND_SERVICE_DATA_SYNC` | | `android.permission.WAKE_LOCK` | ## Integration Guide ### Sample application | | | | | - | - | - | | | Sample Application (Android / Fire OS) | [Download](https://partners.joinmassive.com/sdk/downloads) | Massive SDK comes with a sample application showing project configuration, API integration, and consent screen. To run the app, follow next steps: 1. Download the latest sample using the link above. 2. Unarchive and open the project in Android Studio. 3. Copy the API token from the [applications](https://partners.joinmassive.com/sdk/applications) page. 4. Set the token value to the variable `API_TOKEN` at the end of `MainActivity.kt`. 5. Build and run a target `sampleapp`. ### Dependency configuration Add the dependency to your project Gradle configuration: 1. Add Massive maven repository to the dependency `repositories` used by the project. You can find the URL in the [downloads](https://partners.joinmassive.com/sdk/downloads) page. It can be defined in different places depending on your project. Common places are: global **settings.gradle.kts** ```gradle theme={null} dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() maven { url = uri("MASSIVE_MAVEN_REPO_URL") } } } ``` project **build.gradle** ```gradle theme={null} allprojects { repositories { google() mavenCentral() maven { url uri("MASSIVE_MAVEN_REPO_URL") } } } ``` 2. In the build configuration file for your **app module** (*build.gradle.kts* / *build.gradle*), add the Massive SDK as a dependency: ```gradle theme={null} dependencies { implementation("com.joinmassive:sdk:1.+") } ``` If you use a `toml` file for dependency configuration, add the following to the `toml`: ```gradle theme={null} [versions] massiveSdk = "massive_sdk_version_here" [libraries] massive-sdk = { group = "com.joinmassive", name = "sdk", version.ref = "massiveSdk"} ``` Then, define SDK dependency in the `gradle` file as: ```gradle theme={null} dependencies { implementation(libs.massive.sdk) } ``` ### Integration to the app #### 1. Get the API token Massive SDK API token is available in the [applications](https://partners.joinmassive.com/sdk/applications) page. #### 2. Initialize MassiveClient Interaction with Massive SDK starts with initializing the `MassiveClient` in your `Activity` or `Application` class. Ensure you do this at the start of the application lifecycle. ```kotlin theme={null} class MainActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) // Initialize MassiveClient MassiveClient.init(API_TOKEN, this) } } ``` #### 3. Create client options Next, fill in the client options to specify the desired running mode: *Foreground* or *Background* service. *Foreground* service is preferable as it increases the earning potential. You can find more information about the difference in the [Technical details](#technical-details). ```kotlin theme={null} val massiveOptions = MassiveOptions( serviceType = MassiveServiceType.Foreground, notificationOptions = MassiveNotificationOptions( notificationTitle = getString(R.string.notification_title), notificationText = getString(R.string.notification_content), iconDrawable = com.joinmassive.sdk.R.drawable.massive_sdk_icon ) ) ``` #### 4. Request consent from the user Before starting the client, obtain user consent for the terms of resource exchange. Please see our [launch checklist](https://www.joinmassive.com/launch-checklist-android) for additional details. Here is the sample consent screen: ![Android Consent Screen](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/android-consent-screen.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=6dcf6a12e8428804d294db827fc96a1b) Example consent text ``` To remove ads and get free content, please let Massive use a small amount of your device's free resources and IP address to download public web data from the internet. This supports the development of Application and helps us to improve our services. No personal information is collected except your IP address. Your participation is optional, and you may opt out anytime by accessing Settings (see Massive's FAQ for details). Pressing Accept indicates that you agree to Massive's license and privacy policy. ``` #### 5. Start usage after consent After receiving the user's consent, start usage using the `start()` method and created options: ```kotlin theme={null} // Check if there is user consent to use Massive and show the dialog if we need to request it. if (!consentHelper.isConsentGiven()) { consentHelper.showConsentDialog( onAccept = { // Start Massive if the user has given consent. MassiveClient.start(massiveOptions) { result -> result.onSuccess { // Handle successful start. }.onFailure { exception -> // Handle start failure. } } }, onDecline = {} ) } else { // If the user has already given consent, start Massive directly. MassiveClient.start(massiveOptions) { result -> result.onSuccess { // Handle successful start. }.onFailure { exception -> // Handle start failure. } } } ``` ## Changes in the new Massive SDK 1.0 The new version of the Massive SDK introduces several significant changes aimed at improving usability, performance, and integration flexibility. Here is an overview of the key changes: 1. Dependency configuration: The dependency configuration process has been streamlined. Instead of manually setting up a local Maven repository, you can now directly add the Massive Maven repository to your project’s Gradle configuration. This simplification reduces setup time and potential errors, ensuring a more efficient integration of the SDK. 2. Changed package name: The name of the Massive SDK package has changed from `com.massive` to `com.joinmassive`. 3. Changed client interface: The `MassiveClient` has shifted from using a singleton instance to utilizing static methods. This change simplifies interaction with the SDK, making it more straightforward to initialize and manage the client throughout the application lifecycle. 4. Options handling: The process of providing options has been moved from the init stage to the `start` method. This allows for more dynamic configuration, enabling modification of the service options at the time of starting the client rather than during initialization. This separation ensures a quicker initialization process and more flexible configuration management. 5. Changed behavior of `stop`: The behavior of the stop method has been enhanced. In the new version, calling `stop` not only stops the usage but also shuts down the service entirely. This ensures that all operations are cleanly terminated and the service is properly shut down, providing a more robust mechanism for managing the SDK’s lifecycle. 6. Remote service: The Massive SDK service now runs as a separate process, enhancing the stability and performance of the main application. ### Migration from version 0.x #### Dependency Configuration * **Old Version**: Requires manually setting up a local Maven repository. ```bash theme={null} mkdir project/repo unzip massive-sdk.zip -d project/repo ``` ```gradle theme={null} repositories { maven { url = uri("/project/repo") } } ``` ```gradle theme={null} dependencies { implementation("com.massive:sdk:0.+") } ``` * **New Version**: Directly add the Massive Maven repository to the dependency `repositories`. ```gradle theme={null} repositories { maven { url = uri("MASSIVE_MAVEN_REPO_URL") } } ``` ```gradle theme={null} dependencies { implementation("com.joinmassive:sdk:1.+") } ``` #### Initialization * **Old Version**: ```kotlin theme={null} MassiveClient.getInstance(context) { client -> client.initAsync(MASSIVE_DEMO_API_TOKEN, massiveOptions, object : InitCallback { override fun onSuccess() { // Handle successful initialization. } override fun onFailure(message: String) { // Handle initialization failure. } }) } ``` * **New Version**: ```kotlin theme={null} MassiveClient.init(API_TOKEN, context) ``` #### Start and stop methods * **Old Version**: ```kotlin theme={null} client.start() ... client.stop() ``` * **New Version**: ```kotlin theme={null} MassiveClient.start(massiveOptions) { it.onSuccess { // Handle Started state. } it.onFailure { // Handle error. } } ... MassiveClient.stop() { it.onSuccess { // Handle Stopped state. } it.onFailure { // Handle error. } } ``` #### State handling * **Old Version**: ```kotlin theme={null} // Async state handler. client.listener = object : MassiveClientListener { override fun onStateChange(newState: State) { // Handle changed state. } } ... // Current state. client.state ``` * **New Version**: ```kotlin theme={null} // Handle state after the action. MassiveClient.start(massiveOptions) { it.onSuccess { // Handle Started state or query the current state. } it.onFailure { // Handle error. } } // Current state. when (MassiveClinet.state()) { MassiveClient.State.Starting -> { } MassiveClient.State.Started -> { } MassiveClient.State.Stopped -> { } } ``` ## Technical details 1. Android permissions Massive SDK defines the following permissions in the manifest file: * `android.permission.INTERNET` * `android.permission.ACCESS_NETWORK_STATE` * `android.permission.FOREGROUND_SERVICE` * `android.permission.FOREGROUND_SERVICE_DATA_SYNC` * `android.permission.WAKE_LOCK` These permissions will be automatically added to your app during the build. 2. Client initialization Interaction with the SDK always begins with initialization using `MassiveClient.init`, which requires your API token. This initialization step is crucial and should be performed only once during the application’s lifecycle. Subsequent calls to `init` will have no effect. Attempting to re-initialize the SDK with a different API token will result in a `MassiveReinitException`, ensuring that the SDK maintains a single consistent state throughout the app’s runtime. Since the SDK consists of client and service components, initialization can trigger synchronization of their states. To handle this scenario and achieve accurate state tracking, you can pass an additional callback to the `init` method. This callback will be called in the main thread after synchronization is complete. 3. User consent before starting the usage Before starting the usage for the first time (using the `start()` method), it is mandatory to obtain user consent for the terms of resource exchange. This aligns with user privacy and control principles. Ensure that your application includes a clear and understandable consent mechanism. ```kotlin theme={null} if (isUserConsentGiven) { MassiveClient.start(massiveOptions) {} } ``` 4. Starting and stopping the client Initialization of the `MassiveClient` with the `init()` method does not automatically launch the service or start the usage. **It prepares the SDK for use but does not begin its operation.** To ensure that the Massive is running, the `start()` method must be called after initialization and on each application relaunch. The `start()` method is designed to be idempotent, meaning it is safe to call multiple times. If the service is already started, subsequent calls to start will have no effect, preventing redundant operations. The `stop()` method is used to stop and kill the service, effectively halting all operations and ensuring that the service is properly terminated. After calling `stop()`, you can restart the client by calling the `start()` method again, and it is possible to provide different options for the restart. This flexibility allows you to change the configuration or operational mode of the SDK as needed. 5. Client options and service types Massive SDK can operate either as a *Background* or a *Foreground* service. The choice depends on your app's requirements and how you want to manage the SDK's resource usage. * *Foreground Service*: Allow Massive to run more and less likely killed by the system but more visible with a customizable notification ensuring the user is aware of the service's operation. **Running as a Foreground Service increases earning potential.** * *Background Service:* Less intrusive, running silently without user interaction. 6. Customizing Foreground Service Notification When running as a foreground service, Massive SDK allows customization of the notification displayed to the user. You can set the title, text, and icon of the notification: ```kotlin theme={null} val options = MassiveOptions( serviceType = MassiveServiceType.Foreground, notificationOptions = MassiveNotificationOptions( notificationTitle = "Your Title", notificationText = "Your Text", iconDrawable = R.drawable.your_icon ) ) ``` Massive library contains a pre-defined drawable icon resource `com.joinmassive.sdk.R.drawable.massive_sdk_icon`, but you can also provide your own. 7. Usage tracking The Massive SDK includes functionality for tracking and retrieving current traffic usage statistics. This allows you to monitor the SDK's data usage, providing insights into its network activity. The `usage` method in the `MassiveClient` class fetches and returns the current traffic usage in *bytes*. Please check the sample application for an example of how to use the method to retrieve and display the traffic usage statistics. 8. SDK remote service The latest version of the Massive SDK uses a remote service that is launched as a separate process. This service handles the core operations of the SDK independently of the main application process, providing better performance and stability. 9. ProGuard rules Massive SDK AAR embeds required Android ProGuard rules which are applied automatically if you are using the R8 compiler. If you, however, don’t use R8 you have to apply the rules below: consumer-rules.pro ```gradle theme={null} # Keep the public SDK entities -keep class com.joinmassive.sdk.** { *; } -keep interface com.joinmassive.sdk.** { *; } -keep enum com.joinmassive.sdk.** { *; } -dontwarn org.jetbrains.annotations.** -keep class kotlin.Metadata { *; } # Keep OkHttp3 and Moshi classes -keep class com.squareup.okhttp3.** { *; } -keep interface com.squareup.okhttp3.** { *; } -keep class com.squareup.moshi.** { *; } -keep interface com.squareup.moshi.** { *; } -keepattributes Exceptions,InnerClasses,Signature,Deprecated,*Annotation*,EnclosingMethod ``` # webOS Source: https://docs.joinmassive.com/monetization-sdk/webos Integrate Massive SDK into your webOS TV application with this guide. ## Technical Requirements | | | | - | - | | webOS Version | `5.0` or later | | webOS SDK | Latest version | ## Downloads | | | | - | - | | webOS SDK | [Download](https://partners.joinmassive.com/sdk/downloads) | | webOS Sample Application | [Download](https://partners.joinmassive.com/sdk/downloads) | ## Integration Guide ### Sample application Massive SDK comes with a sample application showing project configuration, API integration, and consent screen. To run the app, follow these steps: 1. Install the [webOS Simulator](https://webostv.developer.lge.com/develop/tools/simulator-installation). 2. Extract the sample app and the SDK package provided by Massive. 3. Copy `MassiveClient.js` from the SDK to the sample app's `js/` directory. 4. Copy the API token from your [Applications List](https://partners.joinmassive.com/sdk/applications). 5. Set the token value to the `API_TOKEN` constant in `js/apphelpers.js`. 6. Launch the webOS Simulator and load both the sample app and Massive service directories. 7. Use the app buttons to initialize, start, and stop the SDK. ### Dependency configuration To integrate the Massive SDK into your webOS project: 1. **Add the SDK client file** Copy the `MassiveClient.js` file from the extracted SDK folder into the `js/` directory of your project. 2. **Import the client file** Add the following line to your `index.html` file: ```html theme={null} ``` 3. **Configure the app domain** Replace `com.joinmassive.sampleapp.massivesdk` with your app's domain in all Massive SDK files. **Important:** Keep the `.massivesdk` suffix at the end. Update this string in the following files: * `MassiveClient.js` * `package.json` * `services.json` * `MassiveService.js` ### Integration to the app #### 1. Get the API token Massive SDK API token is available in your [Applications List](https://partners.joinmassive.com/sdk/applications). #### 2. Initialize MassiveClient Initialize the client with your API token and handle the result in the callback: ```javascript theme={null} window.MassiveClient.init(API_TOKEN, function(result) { if (result) { // The SDK is initialized } else { // The SDK initialization failed } }); ``` #### 3. Request consent from the user Before starting the client, obtain user consent for the terms of resource exchange. Please see our [launch checklist](https://www.joinmassive.com/launch-checklist) for additional details. Example consent text: ``` To remove ads and get free content, please let Massive use a small amount of your device's free resources and IP address to download public web data from the internet. This supports the development of Application and helps us to improve our services. No personal information is collected except your IP address. Your participation is optional, and you may opt out anytime by accessing Settings (see Massive's FAQ for details). Pressing Accept indicates that you agree to Massive's license and privacy policy. ``` #### 4. Start usage after consent After receiving the user's consent, start usage using the `start()` method: ```javascript theme={null} // Check if there is user consent to use Massive if (isUserConsentGiven()) { window.MassiveClient.start(); } ``` #### 5. Stop usage To stop the SDK usage: ```javascript theme={null} window.MassiveClient.stop(); ``` #### 6. Query SDK status You can query the SDK status at any time after initialization: ```javascript theme={null} window.MassiveClient.isStarted().then((isStarted) => { // Handle started/non-started status }).catch((error) => { console.error(error); }); ``` ## Technical details 1. **Service architecture** The Massive SDK for webOS uses a JavaScript service (JS Service) architecture that runs as a separate service component. This service handles the core operations independently of the main application, providing better performance and stability. 2. **Luna Service Bus** The SDK utilizes webOS's Luna Service Bus for communication between your application and the Massive service. This ensures secure and efficient inter-process communication within the webOS environment. 3. **One-time initialization** The SDK should be initialized only once per application session. The initialization establishes communication with the service and prepares the SDK for operation. Subsequent calls to `init` will return the current state without reinitializing. 4. **User consent before starting usage** Before starting the SDK usage for the first time (using the `start()` method), it is mandatory to obtain user consent for the terms of resource exchange. This aligns with user privacy and control principles. Ensure that your application includes a clear and understandable consent mechanism. ```javascript theme={null} if (isUserConsentGiven) { window.MassiveClient.start(); } ``` 5. **Starting and stopping the client** Initialization of the `MassiveClient` with the `init()` method does not automatically start the usage. **It prepares the SDK for use but does not begin its operation.** To ensure that Massive is running, the `start()` method must be called after initialization. The `start()` method is designed to be idempotent, meaning it is safe to call multiple times. If the service is already started, subsequent calls will have no effect. The `stop()` method is used to stop the service operation. After calling `stop()`, you can restart the client by calling the `start()` method again. 6. **Persistent service with auto-start** The Massive service is designed to persist across application sessions. Once initialized and started, it will continue to operate even when the main application is closed, subject to system resource management policies. 7. **App domain configuration** Proper app domain configuration is crucial for the SDK to function correctly. The domain must be consistent across all SDK files and must end with `.massivesdk`. This ensures proper service registration and communication between components. Example: If your app domain is `com.mycompany.myapp`, the Massive service domain should be `com.mycompany.myapp.massivesdk`. 8. **Service packaging** When packaging your webOS application, ensure that both the client JavaScript file and the service components are properly included. The service must be registered in the application manifest for proper operation. 9. **Error handling** The SDK provides error handling through callbacks. Always implement proper error handling to ensure a smooth user experience: ```javascript theme={null} window.MassiveClient.init(API_TOKEN, function(result) { if (result) { // Success handling console.log("Massive SDK initialized successfully"); } else { // Error handling console.error("Failed to initialize Massive SDK"); } }); ``` 10. **Global scope access** The MassiveClient is attached to the window object for global access throughout your application. This design ensures easy integration with various JavaScript frameworks and patterns commonly used in webOS TV applications. 11. **Resource management** The SDK is designed to operate efficiently within the resource constraints of webOS TV devices. It manages network and computational resources carefully to avoid impacting the user experience of your application or the overall TV performance. # Get usage Source: https://docs.joinmassive.com/reporting-api-reference/get-usage get /v1/usage Get usage data for the given time range. If no time range is provided, returns usage for the past 7 days (including today). Usage is aggregated hourly — see [Data freshness](/reporting-api-reference/reporting-api#data-freshness) before scheduling reporting jobs. # Introduction Source: https://docs.joinmassive.com/reporting-api-reference/reporting-api This guide will help you get started with the Reporting API in just a few minutes. # Getting started We’ll use `curl` for our API call examples. You could also consider a dedicated tool for developing API requests (like [Postman](https://www.postman.com/)). # Authenticate > [!NOTE] > > The API key for the Reporting API is automatically enabled with access to the Residential Proxy. ```bash theme={null} curl --location 'https://api-network.joinmassive.com/reporting/v1/usage' \ --header 'Content-Type: application/json' \ --header 'x-api-key: {PROXY_PASSWORD}' ``` # Data freshness Usage data is aggregated hourly, a few minutes after each hour completes. A calendar day (UTC) is final approximately 15 minutes after midnight UTC, once its last hour is aggregated. For daily reporting jobs, query after 00:30 UTC with `to=YYYY-MM-DDT23:59:59Z`. > [!NOTE] > > Usage is recorded when a connection closes, so a session that crosses midnight counts toward the day in which it ends. # Allocate traffic for an account Source: https://docs.joinmassive.com/reseller-api-reference/allocate-traffic-for-an-account post /accounts/{id}/allocations # Create new account Source: https://docs.joinmassive.com/reseller-api-reference/create-new-account post /accounts # Disable account Source: https://docs.joinmassive.com/reseller-api-reference/disable-account post /accounts/{id}/disable # Enable account Source: https://docs.joinmassive.com/reseller-api-reference/enable-account post /accounts/{id}/enable # Get account Source: https://docs.joinmassive.com/reseller-api-reference/get-account get /accounts/{id} # Get account usage Source: https://docs.joinmassive.com/reseller-api-reference/get-account-usage get /accounts/{id}/usage Returns traffic used by a single account, optionally restricted to a time range. Use this endpoint only when you need usage for a **specific time window**. If you want each subaccount's cumulative usage against its allowance, read `used_bytes` from `GET /accounts`, which returns it for every subaccount in a single call. # Get daily account usage Source: https://docs.joinmassive.com/reseller-api-reference/get-account-usage-daily get /accounts/{id}/usage/daily Returns one entry per UTC day for a single account, so a multi-day traffic chart costs one request instead of one per day. Both `from` and `to` are required and the range may not exceed **90 days**. Days with no traffic are returned with zeroed counters, so the series is always contiguous and needs no gap handling. Data is sourced from an hourly rollup. Each hour is published a few minutes after it closes, so the series is complete through the end of the previous hour and is not suitable for live enforcement. The rollup begins on 2026-04-10, so days before that date return zeros. For cumulative usage against an account's allowance, read `used_bytes` from `GET /accounts`. # Get list of existing accounts Source: https://docs.joinmassive.com/reseller-api-reference/get-list-of-existing-accounts get /accounts Returns every subaccount belonging to the authenticated reseller, including each one's cumulative `used_bytes`, its `limit` and whether it has hit that limit (`limit_reached`). **This is the recommended way to monitor usage across subaccounts.** A single call returns usage for all of them. Polling `GET /accounts/{id}/usage` once per subaccount instead is significantly slower for you and puts substantially more load on the API. # Get the allocation list Source: https://docs.joinmassive.com/reseller-api-reference/get-the-allocation-list get /accounts/{id}/allocations Get the list of allocations made via the put endpoint for the account. # Authentication Source: https://docs.joinmassive.com/reseller-api-reference/reseller-api-authentication The Proxy Resellers API uses API key authentication. You must include your API key in the header of every request to authenticate. > [!NOTE] > > **Attention:** The API key for the Network API is not automatically enabled for this API. You must specifically request access to the Proxy Resellers API. # Obtaining an API Key To get an API key for the Proxy Resellers API: 1. Contact [Massive support](emailto:support@joinmassive.com) and request access to the Proxy Resellers API 2. Once approved, you will receive your API key # Using Your API Key Include your API key in the `x-api-key` header of all requests: ```http theme={null} x-api-key: {API_KEY} ``` **Example cURL request:** ```bash theme={null} curl --location 'https://api-network.joinmassive.com/resellers/accounts' \ --header 'Content-Type: application/json' \ --header 'x-api-key: {API_KEY}' \ --data '{ "username": "johndoe@example.com", "password": "secretpassword" }' ``` # Security Best Practices * Keep your API key secure and don't share it publicly * Use environment variables to store your API key in applications * Rotate your API key periodically for enhanced security If you believe your API key has been compromised, contact Massive support immediately for a replacement. # Introduction Source: https://docs.joinmassive.com/reseller-api-reference/reseller-api-introduction The Proxy Resellers API allows you to manage proxy reseller accounts. With this API, you can create, update, and manage accounts that are used to authenticate with the Massive Network API. # Key Features * Create and update accounts * Enable or disable accounts * Allocate traffic for accounts * Retrieve account usage information * Get lists of accounts and allocations # Getting Started To start using the Proxy Resellers API, you'll need: 1. An API key (contact Massive support to enable it for this API) 2. Basic understanding of RESTful APIs and HTTP methods Check out our [Quickstart Guide](#quickstart) to begin using the API in minutes. # API Endpoints The base URL for all API requests is: [https://api-network.joinmassive.com/resellers](https://api-network.joinmassive.com/resellers) For detailed information on available endpoints and operations, see our [API Reference](#api-reference). # Authentication All API requests must include your API key in the `x-api-key` header. Learn more in our [Authentication Guide](#authentication). # Need Help? If you have any questions or need assistance, please contact our support team at [support@joinmassive.com](mailto:support@joinmassive.com). # Quickstart Source: https://docs.joinmassive.com/reseller-api-reference/reseller-api-quickstart This guide will help you get started with the Proxy Resellers API in just a few minutes. # Prerequisites * Your API key for the Proxy Resellers API * cURL or any HTTP client (like Postman) # Step 1: Verify Your API Key First, let's check if your API key is working: ```bash theme={null} curl --location 'https://api-network.joinmassive.com/resellers/accounts' \ --header 'x-api-key: {API_KEY}' ``` If successful, you should receive a list of existing accounts or an empty array. # Step 2: Create a New Account Let's create a new reseller account: ```bash theme={null} curl --location 'https://api-network.joinmassive.com/resellers/accounts' \ --header 'Content-Type: application/json' \ --header 'x-api-key: {API_KEY}' \ --data '{ "username": "newreseller@example.com", "password": "securepassword123", "limit": 1000000 }' ``` If successful, you'll receive a response with the new account's ID. # Step 3: Retrieve Account Details Now, let's fetch the details of the account we just created: ```bash theme={null} curl --location 'https://api-network.joinmassive.com/resellers/accounts/{account_id}' \ --header 'x-api-key: {API_KEY}' ``` Replace with the ID received in Step 2. # Step 4: Monitor Usage Across Your Accounts To track how much traffic your sub-accounts have used, list your accounts: ```bash theme={null} curl --location 'https://api-network.joinmassive.com/resellers/accounts' \ --header 'x-api-key: {API_KEY}' ``` Every account in the response includes: * `used_bytes` - cumulative traffic used by that account, in bytes * `limit` - the traffic allocated to it * `limit_reached` - whether it has hit that allocation **Use this endpoint to monitor usage.** One call returns the figures for all of your sub-accounts at once, so you do not need to request each account individually. `GET /accounts/{account_id}/usage` is only needed when you want usage for a **specific time range** (via the `from` and `to` parameters, Unix timestamps in seconds). Calling it once per sub-account in a loop is much slower for you and puts significantly more load on the API than a single call to `/accounts`. # Next Steps You've now successfully created and retrieved an account using the Proxy Resellers API! To learn more about available operations, check out our API Reference section. # Update account Source: https://docs.joinmassive.com/reseller-api-reference/update-account put /accounts/{id} # Update domains blocklist for account Source: https://docs.joinmassive.com/reseller-api-reference/update-domains-blocklist put /accounts/{id}/blocklist Configure which domains are blocked for this account's proxy access. For synchronized sub-accounts, the blocklist is merged with the parent's blocklist. > [!NOTE] > > For more details on how domain blocking works, including wildcard patterns and the common blocklist, see [Domain Blocking](/residential/domain-blocking). # Update per-session limit for account Source: https://docs.joinmassive.com/reseller-api-reference/update-session-limit put /accounts/{id}/session-limit Set the per-session traffic and/or duration ceiling for a sub-account. The proxy disconnects the session once it reaches either ceiling. Send one or both fields; an omitted field is left unchanged, `0` disables that ceiling. > [!NOTE] > > Applies to sub-accounts you own. Each ceiling has three states: omit the field to inherit the parent account's value, send `0` to disable it, or send a positive value to cap it. The proxy disconnects the session once it reaches either ceiling. # Accounting Source: https://docs.joinmassive.com/residential/accounting If you prefer to segregate requests for your customer invoicing or internal accounting, subaccounts can be provided. | Key | Value | Examples | | - | - | - | | subaccount | Any unique identifier of up to 255 characters (regardless of character encoding); Massive will bill requests made from subaccounts separately | [user@mail.com](mailto:user@mail.com), user1 | Example: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-subaccount-customer@example.com:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` # ASN identifier targeting Source: https://docs.joinmassive.com/residential/asn-type-targeting You can target a request by an ASN number, a unique identification number that identifies a network or group of networks under a single routing policy on the internet. | Key | Value | | - | - | | asn | ASN numbers are used by various routing protocols. Value range: 0-65536. | Example using query parameters: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-asn-7018:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` This parameter can be used in combination with all other options. The following request targets by ASN in United States: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-asn-7018:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ## Multiple ASNs `asn` accepts a comma-separated list of up to **5** values. The request is served by a node on any of the listed networks: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-asn-7018,7922:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` Only one parameter may hold a list per request, so a list of ASNs requires the other parameters (such as `country`) to be single-valued. A single `asn` can still be combined with [multiple countries](/residential/geotargeting#targeting-multiple-locations). # Authentication Source: https://docs.joinmassive.com/residential/authentication We support HTTPS, HTTP, and SOCKS5 > [!NOTE] > > **Attention:** Make sure to carefully check that your credentials and port number are correct for your auth type. ## HTTPS How to authenticate using HTTPS. | | | | - | - | | HTTPS Port | 65535 | | Minimum supported TLS version | 1.2 | ```bash theme={null} curl --proxy https://network.joinmassive.com:65535 -U '{PROXY_USERNAME}:{API_KEY}' https://cloudflare.com/cdn-cgi/trace ``` > [!NOTE] > > If you see errors like `curl: (35) SSL connect error`, check that your client supports TLS 1.2 or higher. ## HTTP How to authenticate using HTTP. | | | | - | - | | HTTP Port | 65534 | ```bash theme={null} curl --proxy http://network.joinmassive.com:65534 -U '{PROXY_USERNAME}:{API_KEY}' https://cloudflare.com/cdn-cgi/trace ``` ## SOCKS5 How to authenticate using SOCKS5. | | | | - | - | | SOCKS5 Port | 65533 | ```bash theme={null} curl -x socks5h://network.joinmassive.com:65533 -U '{PROXY_USERNAME}:{API_KEY}' https://www.cloudflare.com/cdn-cgi/trace ``` ## Firewalled Ports If port 65,535 is closed on your network, try port 1,080. | | | | - | - | | Port | 1080 | ```bash theme={null} curl -x https://network.joinmassive.com:1080 -U '{PROXY_USERNAME}:{API_KEY}' https://cloudflare.com/cdn-cgi/trace ``` # Device-type targeting Source: https://docs.joinmassive.com/residential/device-type-targeting You can target different device types to execute the request on. | Key | Value | | - | - | | type | The type of device to target. Possible values: `mobile`, `common`, `tv`. | **Supported Devices** * `mobile` to execute request on mobile devices. * `common` to execute request on any non-mobile device. * `tv` to execute request on tv devices. Example using query parameters: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-type-mobile-country-US:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` This parameter can be used in combination with all other options. The following request targets a mobile IP in New York State and assigns it a persistent session: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-type-mobile-country-US-subdivision-NY-session-1:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ## Multiple device types Provide a comma-separated list to match **any** of several device types. The following request targets a mobile **or** tv node in the US: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-type-mobile,tv-country-US:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` An unrecognized `type` value returns HTTP 400. # Domain Blocklist Source: https://docs.joinmassive.com/residential/domain-blocking Block specific domains directly from the Massive Dashboard with personal blocklist management and CSV upload capabilities. ## Overview The Domain Blocklist feature allows users to block specific domains directly from the Massive Dashboard. This provides greater control over browsing restrictions without requiring API calls or admin intervention. Your blocklist adds to the categories Massive already blocks for every account at the network layer. See [Blocked Destination Categories](https://www.joinmassive.com/blocked-destinations). ## Key Features * Add or remove domains to your personal blocklist * Upload multiple domains at once using CSV * Search, filter, and manage up to 1,000 blocked domains * Remove domains individually or clear the entire blocklist * Applied instantly to your proxy connections ## Getting Started To manage your blocklist: 1. Log in to your **Massive Dashboard** 2. Navigate to **Domain Blocklist** in the left-hand menu 3. The panel will display your current list of blocked domains and available management options ## Adding Domains 1. Enter the domain you want to block in the **Enter domain** field (e.g., `ads.trackerexample.net`) 2. Click **Add** 3. The domain will immediately appear in your blocklist ## Bulk Upload CSV 1. Click **Bulk Upload CSV** to add multiple domains at once 2. Each domain should be listed on a separate line in the file ## Wildcard Support Wildcards can be used to block multiple matching domains. For example, `*.example.com` will match all subdomains under `example.com`. Possible scenarios: | Pattern | Description | Example Matches | | - | - | - | | `*.example.com` | Block all subdomains (excluding `example.com` itself) | `ads.example.com`, `ads.click.example.com` | | `example.*` | Block all top-level domains and public suffixes | `example.com`, `example.co.uk` | | `ads.*.example.com` | Block all domains in-between | `ads.click.foo.example.com` | | `*example*` | Block domain at any level | `ads.example.test.com`, `example.com` | > **Note:** Only one wildcard per domain is supported (`*example*` is a special case). Blocklist entries like `ads.*.test.*.example.com` will be rejected. ## Managing Your Blocklist * **Search domains** – Quickly locate entries in your blocklist * **Pagination** – Adjust the number of rows displayed per page * **Remove a domain** – Use the delete action next to any domain to remove it * **Remove all** – Use the **Remove All** button to clear your blocklist completely ## Example Domains Your blocklist might include: ``` ads.trackerexample.net malicious-domain.test phishing-site.demo untrusted-proxy.biz metrics-data.example.org ads.*.buynow.com *.malware.test ``` ## Best Practices * **Start small** – Block only essential domains first * **Use CSV for efficiency** – Upload larger lists when needed * **Review regularly** – Keep your blocklist updated to match your use case * **Verify restrictions** – Test blocked domains after updating your list ## Limitations * Each user can only manage their own blocklist * Admins may apply global blocklists that override personal settings * The maximum number of blocked domains per account is 1,000 * Paths (e.g., `example.com/path`) will not be blocked. Only domains are supported. ## Need Help? > **Tip:** If you encounter error code `452 (Disallowed Content)` when using proxies, check your Domain Blocklist. The domain you’re trying to access may be blocked. See the [Error Types](https://docs.joinmassive.com/residential/error-types) page for more details. If you encounter issues with your blocklist: 1. Visit **Help** → **Support** in the dashboard 2. Submit a request including the domains you are trying to manage For additional support, contact our team through the [Massive Support Form](https://forms.fillout.com/t/p8dRqBYs58us). # Error Types Source: https://docs.joinmassive.com/residential/error-types Massive may respond with one of several common or custom error messages: Status codes `452`–`454` and `470`–`477` indicate errors that originated within the Massive network. Any other status code — including a plain `500`, `502`, or `503` — was returned by the target site and is passed through unchanged. Every Massive-generated error also includes an `X-Reason` response header with a short machine-readable cause. Codes `400`, `407`, and `429` are unchanged. The **Previously** column shows the code that was returned before this scheme was introduced. | Status code | Reason phrase | Previously | Additional comments | | - | - | - | - | | `400` | Bad Request | – | The request was malformed, most likely because of invalid routing parameters; the response body contains details | | `407` | Proxy Authentication Required | – | The login email address, the Massive API token, or both were incorrect | | `429` | Too Many Requests | – | The request rate limit for the account was exceeded | | `452` | Disallowed Content | `452` | The requested protocol or content conflicts with Massive’s content policy; the Link header lists the entire policy | | `453` | Port Forbidden | `452` | The requested port is not available on the account; ports `80` and `443` are open by default, and support can enable others | | `454` | Target Unresolvable | `502` | The target hostname could not be resolved; retries fail until the hostname is corrected | | `470` | No Nodes Available | `503` | No proxy nodes were available; the condition is usually temporary and a retry is likely to succeed | | `471` | No Route Match | `521`, `503` | No available node matched the geotargeting or routing parameters; retries fail until the targeting is relaxed | | `472` | Node Tunnel Failed | `502` | A tunnel to a proxy node could not be established; the condition is usually temporary | | `473` | Upstream Unavailable | `503` | A Massive server involved in routing the request was unreachable; the condition is usually temporary | | `474` | Proxy Internal Error | `500` | An internal Massive error occurred; persistent occurrences are worth reporting to support | | `475` | Sticky Node Gone | `503` | The node serving the sticky session went offline; a new session is required | | `476` | Target Connect Timeout | `502` | Connections to the target host timed out on every attempt; a longer connect timeout may help | | `477` | Sticky Node At Capacity | `503` | The node serving the sticky session is temporarily at capacity; the same session can be retried after a short delay | ## SOCKS5 errors The SOCKS5 protocol has no response headers, so error information is limited to the reply code in the `CONNECT` response: | Reply code | Meaning | | - | - | | `0x04` | The request was blocked by Massive’s content policy, or the target hostname could not be resolved | | `0x06` | Connections to the target host timed out | | `0x0A` | The requested port is not available on the account (custom code) | | `0x0B` | No available node matched the geotargeting parameters (custom code) | | `0x01` | Any other error within the Massive network | Applications that need more detail can use the HTTP(S) endpoint, which returns the full set of status codes and the `X-Reason` header described above. # Exit Node Headers Source: https://docs.joinmassive.com/residential/exit-node-headers Exit node metadata automatically included in CONNECT response headers for HTTPS traffic. ## Overview Exit node headers are automatically included in the HTTP 200 OK response to CONNECT requests, providing visibility into the exit node properties that will be used for tunneled connections (HTTPS traffic). These headers include the exit IP address, country, timezone, ASN and geohash information. ## HTTP vs HTTPS Proxy Behavior ### Plain HTTP Traffic For plain HTTP requests, the proxy directly forwards your request to the target server and returns the response. No CONNECT request is used, and therefore no `X-Exit-IP` header is available. ### HTTPS Traffic (with CONNECT) For HTTPS traffic, a tunnel must be established first: 1. Your client sends a CONNECT request to the proxy asking to establish a tunnel to the target server 2. The proxy responds with HTTP 200 OK including the `X-Exit-IP` header 3. After receiving the 200 OK, your client sends the actual HTTPS traffic through this tunnel 4. The tunnel ensures your HTTPS traffic remains encrypted end-to-end between your client and the target server ## How It Works When your client sends a CONNECT request to establish an HTTPS tunnel: ```bash theme={null} CONNECT example.com:443 HTTP/1.1 Host: example.com:443 Proxy-Authorization: Basic {credentials} ``` The proxy responds with: ```http theme={null} HTTP/1.1 200 OK X-Exit-IP: 203.0.113.42 X-Exit-Country: US X-Exit-Timezone: America/New_York X-Exit-ASN: 7922 X-Exit-Geohash: dr5r ``` These headers provide information about the exit node before any actual HTTPS data is sent through the tunnel. ## Available Headers ### X-Exit-IP * **Description**: The IP address of the exit node * **Format**: IPv4 or IPv6 address * **Example**: `X-Exit-IP: 203.0.113.42` * **Availability**: Always included in CONNECT responses ### X-Exit-Country * **Description**: Two-letter country code of the exit node location * **Format**: ISO 3166-1 alpha-2 country code * **Example**: `X-Exit-Country: US` * **Availability**: Included when geo data is available ### X-Exit-Timezone * **Description**: IANA timezone identifier of the exit node location * **Format**: IANA timezone string * **Example**: `X-Exit-Timezone: America/New_York` * **Availability**: Included when geo data is available ### X-Exit-ASN * **Description**: Autonomous System Number of the exit node's network * **Format**: Unsigned integer * **Example**: `X-Exit-ASN: 7922` * **Availability**: Included when ASN data is available ### X-Exit-Geohash * **Description**: [Geohash](/residential/geohash-targeting) of the area where the exit node is located, as precise as the node's location is known * **Format**: 1 to 4 characters * **Example**: `X-Exit-Geohash: dr5r` * **Availability**: Included when the node's location is known precisely enough for a geohash, whether or not the request uses `geohash` * **Note**: The value describes the exit node, not the request, so it can be longer than the requested code: a request for `geohash-dr5` can receive `X-Exit-Geohash: dr5r` ## Availability Exit node headers: * Are automatically included in all CONNECT responses (HTTPS traffic only) * Provide information about the exit node before the tunnel is established * Are not available for plain HTTP requests (which don't use CONNECT) ## Example Usage ### With curl ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}:{API_KEY}' \ -v https://example.com ``` In verbose mode, you'll see: ``` * CONNECT tunnel established, response 200 < HTTP/1.1 200 OK < X-Exit-IP: 203.0.113.42 < X-Exit-Country: US < X-Exit-Timezone: America/New_York < X-Exit-ASN: 7922 < X-Exit-Geohash: dr5r ``` ## Use Cases Exit node headers are useful for: * **Logging and Debugging**: Track which exit nodes are being used for each request * **Compliance**: Verify that traffic is exiting from expected geographic locations * **Analytics**: Analyze exit node distribution and performance * **Troubleshooting**: Identify patterns in exit node selection for debugging purposes # Geohash targeting Source: https://docs.joinmassive.com/residential/geohash-targeting A request can be targeted at an area on the map by its geohash. A [geohash](https://en.wikipedia.org/wiki/Geohash) is a short code for a rectangular area on the map. The `geohash` parameter selects nodes inside that area. ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-geohash-dr5r:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` | Characters | Area, approx. | Example | | - | - | - | | 1 | 5000 × 5000 km | `d` | | 2 | 1250 × 625 km | `dr` | | 3 | 156 × 156 km | `dr5` | | 4 | 39 × 20 km | `dr5r` (New York) | Sizes are at the equator; areas get narrower toward the poles. Codes are case insensitive. Node locations are approximate. A node located only roughly matches short codes but not long ones, so a 4-character code can return 471 where its 3-character parent finds nodes. ## Options * `geohashnear` also includes the 8 surrounding areas of the same size: `-geohash-dr5r-geohashnear`. * `geohashfallback` returns the nearest available node instead of 471: `-geohash-dr5r-geohashfallback`. The search moves outward from the area, then to the whole country. Other parameters still apply. Codes longer than 4 characters are shortened to 4. * Both work with a single code and need no value. * Up to 5 codes can be listed: `-geohash-dr5r,dp3w`. * `country` is optional and limits the area to that country, which helps near borders: `-country-US-geohash-dp`. * [`asn`](/residential/asn-type-targeting) and [`type`](/residential/device-type-targeting) can be added: `-geohash-dr5r-asn-7922`. * `subdivision`, `city` and `zipcode` cannot be used with `geohash`. * Only [one parameter may hold a list](/residential/geotargeting#targeting-multiple-locations); `geohashnear` counts as one. > [!WARNING] > > With `geohashfallback` and no `country`, the exit node can be in any country. ## Behavior * A [sticky session](/residential/sticky-sessions) stays inside the area. If its node leaves, the session moves to another node in the area; with `sessionmode-norotate` the request returns 475. With `geohashfallback`, it is limited only by `country`. * An invalid code or combination returns 400. 471 means no available node in the area; with `geohashfallback`, no matching node in the whole country, or anywhere when no country is given. * The [`X-Exit-Geohash`](/residential/exit-node-headers#x-exit-geohash) header of the CONNECT response shows the exit node's area. With `geohashfallback` it can differ from the requested code, and it is absent when the node's location is known only to the country. # Geotargeting Source: https://docs.joinmassive.com/residential/geotargeting You can tune the request by providing geo parameters like an [ISO ZIP code, subdivision, and country code](https://www.iso.org/obp/ui/#search), and by [city](https://www.geonames.org/). You can tune the request by providing geo parameters like an [ISO ZIP code, subdivision, and country code](https://www.iso.org/obp/ui/#search), and by [city](https://www.geonames.org/). ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-zipcode-10001:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ## Country, subdivision, city, zipcode | Key | Value | Examples | | - | - | - | | country | A two-letter country code (these codes are case insensitive) | US, GB | | subdivision | The alphanumeric second part (proceeding the separator) of a first-level subdivision code in the (prerequisite) country (case insensitive) | CA, LND | | city | A commonly spelled city name (temporarily case sensitive and inclusive of URL-encoded spaces and punctuation marks) in the (prerequisite) country. We always use the **English (en)** variant of the **preferred** city name, which can be verified on [GeoNames](https://www.geonames.org/) (as referenced in [MaxMind’s documentation](https://support.maxmind.com/hc/en-us/articles/4414877149467-IP-Geolocation-Data#h_01FRRNFD5Z5EWNCAXM6SZZ5H2C)). | New York, London | | zipcode | A postal code. Please take a look at the limitations below. | 10001, OX2 | ## Geotargeting rules * `country` key must always persist if any of the geo parameters is specified. Otherwise, HTTP 400 is returned. [Geohash targeting](/residential/geohash-targeting) is the exception: there `country` is optional. * If more than one geo key is specified, the server finds an appropriate node strictly matching all the parameters. The only exception is `zipcode`: if specified, `city` key is ignored. * **Details**: * If both subdivision and zipcode are provided, the city is ignored. * If both zipcode and city are provided, the city is ignored. * If subdivision and city are provided, both are strictly matched. * `city` is matched by name only. If the same city name exists in more than one subdivision of the country, the request can be served from any of them. To target a specific one, `subdivision` must be specified together with `city`. *Please, take into account, that due to technical reasons, the more strict geotargeting narrows the range of appropriate nodes.* ## Targeting multiple locations Each of `country`, `subdivision`, `city`, and `zipcode` accepts a comma-separated list of up to **5** values. The request is then served by any node that matches one of the listed values, and traffic is spread across them. ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US,GB,DE:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### Rules for multiple values * **One list per request.** Only one parameter may hold a list. Passing a list in two parameters at once (for example several countries *and* several cities) returns HTTP 400. * **A list of countries can't be narrowed.** When `country` holds more than one value, `subdivision`, `city`, and `zipcode` may not be used, because the same region or city name can exist in more than one country. A single `asn` can still be combined with multiple countries. * **`country` is still required** whenever any geo parameter is set. * **Up to 5 values** per parameter. More than 5 returns HTTP 400. * Duplicate and empty values are ignored — `US,US` counts as a single value. ### Examples Multiple countries: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US,GB,DE:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` A single country, multiple cities: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-city-New%20York,Chicago:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ## Zipcode Notes For the following countries, we accept partial postal codes with the number of characters indicated below: * **United States**: 5 * **Canada**: 3 * **United Kingdom**: 2-4 * **Brazil**: 5 * **Ireland**: 3 * **Japan**: 7 (specified for the first 6. The last digit defaults to 1) * **Netherlands**: 4 * **Portugal**: 7 (accurate for the first 4. The last 3 often default to -001) * **Singapore**: 2 Geotargeting by country and city is always more robust than by ZIP code. ## Examples ### Country ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### Country and city ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-city-New%20York:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` If the city name is not unique within the country, add `subdivision`: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-subdivision-NY-city-New%20York:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### Country and subdivision ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-subdivision-NY:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### Country and zipcode ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-zipcode-10001:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` # Introduction Source: https://docs.joinmassive.com/residential/introduction The Massive Network is a global edge network that’s used by partners to monitor internet performance, gather business intelligence, and detect fraud and malware. ![Hero Light](https://mintcdn.com/massive-c2ad7de9/zy-AdWwcnDauLaqG/images/hero-light.svg?fit=max\&auto=format\&n=zy-AdWwcnDauLaqG\&q=85\&s=8923a3d5fabc605f29bfe762c8936a8f) ## About us The network includes more than 1,000,000 residential computers and devices in more than 195 countries around the world. 100% of these computers and devices have been explicitly opted in by users through the [Massive SDK](https://www.joinmassive.com/getpaid) for app developers, which is designed to maintain user-friendly limits on processing, storage, and bandwidth usage. ## Getting started The first step to using Massive Network is making sure your credentials work with a simple curl request. > [card] [Test Credentials](/residential/quickstart) > > Test your credentials in shell. > [card] [Authentication](/residential/authentication) > > Dive right in to all connect methods: HTTPS, HTTP, & SOCKS5. # Quickstart Source: https://docs.joinmassive.com/residential/quickstart Start crawling the web in under 5 minutes. ## Test your credentials If you already have an account with Massive, get started by using the [proxy request generator](https://partners.joinmassive.com/quickstart) in our developer portal. ![Proxy Request Generator](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/quickstart-guide.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=79a3940165f8e9859cb7b36efcbcb2d6) To generate your requests manually, continue following our documentation. ## Configure your environment Make sure your credentials work and that you use the correct port configuration. | | | | :-: | :-: | | Username | `PROXY_USERNAME` | | API Key | `API_KEY` | | HTTPS Port | 65535 | | HTTP Port | 65534 | | SOCKS5 Port | 65533 | ## Check credentials Make sure your API key works with this simple shell script. > [!NOTE] > > **Attention:** If your credentials do not appear below, they may not be provisioned. Sign up for an account or email [support@joinmassive.com](support@joinmassive.com). ```bash theme={null} curl --proxy https://network.joinmassive.com:65535 --proxy-user 'PROXY_USERNAME:API_KEY' https://cloudflare.com/cdn-cgi/trace ``` # Request routing Source: https://docs.joinmassive.com/residential/routing Our robust proxy services allows for geotargeting, sticky sessions, device type targeting, and advanced accounting and reporting. Massive accepts extended user IDs that let you add targeting specifications to requests. Append a standard URL query string with routing parameters to your proxy username. You can combine routing parameters in any order. ## Syntax Our proxy protocol uses `-` syntax to append routing parameters, which will used throughout our documentation. ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-country-US-zipcode-10001:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` # Choose Your Language or Tool Source: https://docs.joinmassive.com/residential/sample-integrations Pick your language, framework, or tool and start sending traffic through the Massive Network in minutes. > [card] [Puppeteer](/residential/samples/puppeteer) > > Browser automation in Node.js with `--proxy-server` and `page.authenticate`. > [card] [Python](/residential/samples/python) > > Send requests through the network with the `requests` library. > [card] [Scrapy](/residential/samples/scrapy) > > Route Scrapy spiders through the network using the `proxy` meta field. > [card] [Ruby](/residential/samples/ruby) > > Use `Net::HTTP` to proxy Ruby requests through the network. > [card] [.NET (C#)](/residential/samples/.net) > > Configure `HttpClient` with `WebProxy` and `NetworkCredential`. > [card] [SwitchyOmega](/residential/samples/switchyomega) > > Configure the SwitchyOmega browser extension to use Massive proxies. > [card] [FoxyProxy](/residential/samples/foxyproxy) > > Configure the FoxyProxy browser extension to use Massive proxies. # .NET (in C#) Source: https://docs.joinmassive.com/residential/samples/.net .NET integrations should connect to the [Massive Network’s HTTP port](/authentication#HTTP) `65534` because [.NET doesn’t broadly support HTTPS proxies yet](https://github.com/dotnet/runtime/pull/87638): ```csharp theme={null} using System.Net; class Demo { static async Task Main(string[] args) { string username = Uri.EscapeDataString("{PROXY_USERNAME}"); string password = "{API_Key}"; string url = "https://cloudflare.com/cdn-cgi/trace"; // Insert your target URL here string proxy = "http://network.joinmassive.com:65534"; HttpClientHandler handler = new() { Proxy = new WebProxy(proxy), DefaultProxyCredentials = new NetworkCredential( username, password ) }; HttpClient client = new(handler); HttpResponseMessage response = await client.GetAsync(url); Console.WriteLine(await response.Content.ReadAsStringAsync()); } } ``` # FoxyProxy Source: https://docs.joinmassive.com/residential/samples/foxyproxy How to update proxy settings in your browser ### Quick Fix: Proxy Settings Not Updating in Your Browser? When modifying proxy settings in browser-based proxy management tools such as **SwitchyOmega** or **FoxyProxy**, you may encounter an issue where your browser continues to use the old configuration, even after saving the new settings. This often happens when switching locations, adjusting sticky sessions, or updating other proxy options. Fortunately, this is a common issue and can be easily resolved with a simple fix. 💡 Here’s what you need to do: 1. Open **SwitchyOmega** or **FoxyProxy**. 2. Update your proxy settings to your desired configuration. 3. Save the changes to apply them. 4. **Restart your browser** — this step is crucial as it clears the cached settings and ensures the browser uses the updated proxy. 5. Double-check your new settings using any IP lookup site. This process applies to all browser-based proxy managers, not just specific tools. No complex fixes are required; a simple browser restart does the trick. # Puppeteer Source: https://docs.joinmassive.com/residential/samples/puppeteer Integrate the Massive Network into your Puppeteer workflows by setting the `--proxy-server` launch flag then calling a page object’s `authenticate` method: ```javascript theme={null} #!/usr/bin/env node const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ args: ['--proxy-server=https://network.joinmassive.com:65535'] }); const page = (await browser.pages())[0]; await page.authenticate({ username: '{PROXY_USERNAME}, password: '{API_KEY}' }); await page.goto('https://cloudflare.com/cdn-cgi/trace'); // Insert your target URL here console.log(await page.content()); browser.close(); })(); ``` # (Vanilla) Python Source: https://docs.joinmassive.com/residential/samples/python To connect to the Massive Network from Python, include your encoded credentials in the proxy address (this usage doesn’t risk leaking your API token to a shared history file per the caveat for Curl): ```javascript theme={null} #!/usr/bin/env python3 import requests import urllib username = '{PROXY_USERNAME}' password = '{API_KEY}' url = 'https://cloudflare.com/cdn-cgi/trace' # Insert your target URL here host = 'network.joinmassive.com' port = 65535 proxy = f'https://{username}:{password}@{host}:{port}' response = requests.get(url, proxies={'http': proxy, 'https': proxy}) print(response.content) ``` # Ruby Source: https://docs.joinmassive.com/residential/samples/ruby Ruby’s standard HTTP library doesn’t seem to support HTTPS proxy connections, so connect to the [Massive Network’s HTTP port](/authentication#http) with Ruby: ```javascript theme={null} #!/usr/bin/env node const puppeteer = require('puppeteer'); (async () => { const browser = await puppeteer.launch({ args: ['--proxy-server=https://network.joinmassive.com:65535'] }); const page = (await browser.pages())[0]; await page.authenticate({ username: '{PROXY_USERNAME}, password: '{API_KEY}' }); await page.goto('https://cloudflare.com/cdn-cgi/trace'); // Insert your target URL here console.log(await page.content()); browser.close(); })(); ``` # Scrapy (for Python) Source: https://docs.joinmassive.com/residential/samples/scrapy After installing Scrapy (`pip install scrapy`) and creating a project (`scrapy startproject [project name]`), you can connect to the Massive Network by saving code like that below to a file in the new `[project name]/[project name]/spiders` subdirectory then running `scrapy crawl demo` from the top-level `[project name]` directory (Scrapy doesn’t seem to support HTTPS proxy connections, but you can use the [network’s HTTP port](/authentication#http)): ```python theme={null} import scrapy import urllib class Demo(scrapy.Spider): name = 'demo' def parse(self, response): print(response.body) def start_requests(self): username = '{PROXY_USERNAME}' password = '{API_KEY}' url = 'https://cloudflare.com/cdn-cgi/trace' # Insert your target URL here host = 'network.joinmassive.com' port = 65534 proxy = f'http://{username}:{password}@{host}:{port}' yield scrapy.Request(url, callback=self.parse, meta={'proxy': proxy}) ``` # SwitchyOmega Source: https://docs.joinmassive.com/residential/samples/switchyomega How to update proxy settings in your browser ### Quick Fix: Proxy Settings Not Updating in Your Browser? When modifying proxy settings in browser-based proxy management tools such as **SwitchyOmega** or **FoxyProxy**, you may encounter an issue where your browser continues to use the old configuration, even after saving the new settings. This often happens when switching locations, adjusting sticky sessions, or updating other proxy options. Fortunately, this is a common issue and can be easily resolved with a simple fix. 💡 Here’s what you need to do: 1. Open **SwitchyOmega** or **FoxyProxy**. 2. Update your proxy settings to your desired configuration. 3. Save the changes to apply them. 4. **Restart your browser** — this step is crucial as it clears the cached settings and ensures the browser uses the updated proxy. 5. Double-check your new settings using any IP lookup site. This process applies to all browser-based proxy managers, not just specific tools. No complex fixes are required; a simple browser restart does the trick. # Sticky sessions Source: https://docs.joinmassive.com/residential/sticky-sessions We support session persistence (AKA sticky sessions) with a customizable TTL, defaulting to 15 minutes. ## Using sticky sessions | Key | Value | TTL | Examples | | - | - | - | - | | session | Any unique identifier of up to 255 characters (regardless of character encoding); Massive will make best efforts to route requests in the same session to the same egress node | Default: 15 minutes (customizable with `sessionttl`) | session42, 1234 | | sessionttl | Customizable session TTL in minutes, up to 1440 minutes | Default: 15 minutes | 30, 60, 240, 1440 | You can inject a session identifier, like a unique representation of your app or active task, to specify that multiple requests should originate from a single egress node (if available): ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-session-37:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### Session TTL Behavior * Session TTL defaults to 15 minutes but can be customized using the `sessionttl` parameter up to 1440 minutes (24 hours). * **Important**: Sessions use static TTL - they expire at creation time + TTL and are not extended by subsequent requests. * For example, to set the TTL to 30 minutes: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-session-37-sessionttl-30:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### Session Rotation When a session identifier is specified and found, the server will perform a request via the same node unless: * TTL is expired (sessions expire exactly at creation time + TTL) * The request limit per minute for the node is exceeded (only for strict mode) * The node has gone offline (except in norotate mode) * Error limit is reached (in flex mode) If the session identifier is not found or the conditions above are not met, a new session is created with the specified ID and attached to a new node. ## Session Modes | Key | Value | Description | | - | - | - | | sessionmode | `strict`, `flex`, `norotate` | Controls session behavior on errors | ### Strict Mode (Default) By default, sessions operate in **strict mode** where any error immediately invalidates the session and triggers rotation to a new node. This ensures clean IP rotation on failures but may change IPs more frequently. Example of using undefined `sessionmode`, which defaults to `sessionmode-strict`: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-session-123:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` Example with `sessionmode-strict` explicitly defined: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-session-123-sessionmode-strict:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### Flex Mode Sessions can operate in **flex mode** where sessions persist through errors up to a configurable limit. In this mode: * Sessions continue through errors up to the error limit (default: 15) * Error count resets to 0 on successful requests * Provides better IP stability during transient failures * May retry failing nodes multiple times > [!NOTE] > > **Note:** The default error limit is 15. After 15 consecutive errors, a new node is assigned to the sticky session. You can customize this with the `sessionerr` parameter. Example with `sessionmode-flex`: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-session-123-sessionmode-flex:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ### No-Rotate Mode Sessions can operate in **norotate mode** where node errors cause immediate failure instead of rotation. This is useful when IP consistency is critical and you would rather fail than silently switch IPs. Note that TTL expiry still creates a new session (same as other modes). * Returns **472** on tunnel errors (node responds with an error) or **475** when the node has gone offline; see [Error Types](/residential/error-types) * The `sessionerr` parameter is ignored in norotate mode — any error fails immediately > [!WARNING] > > **Consistent auth strings required:** Session parameters (including `sessionmode`) are re-parsed from the auth string on every request. If you omit `sessionmode-norotate` on a subsequent request using the same session ID, the session silently falls back to **strict** mode and may rotate to a new node on failure. Always include `sessionmode-norotate` in every request for the session. Example with `sessionmode-norotate`: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-session-123-sessionmode-norotate:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` ## Additional Parameters | Key | Value | Description | Default | | - | - | - | - | | sessionerr | Number (1-100) | Maximum consecutive errors before rotation in flex mode | 15 | ### Customizing Error Limit In flex mode, you can customize how many errors are allowed before rotation: ```bash theme={null} curl -x https://network.joinmassive.com:65535 \ -U '{PROXY_USERNAME}-session-123-sessionmode-flex-sessionerr-5:{API_KEY}' \ https://cloudflare.com/cdn-cgi/trace ``` This example allows up to 5 consecutive errors before rotating to a new node. ## Best Practices 1. **Plan TTL appropriately**: Since sessions use static TTL (not extended by activity), set an appropriate duration for your use case 2. **Choose the right mode**: Default strict mode ensures immediate rotation on any error; use flex mode if you need IP stability; use norotate mode if you need IP consistency on node errors (TTL expiry still rotates) 3. **Monitor error rates**: Adjust `sessionerr` based on your tolerance for retries (default is 15) 4. **Session ID naming**: Use descriptive session IDs to help with debugging and monitoring > [accordion] Advanced: Parameter Timing and Mutability > > ### Parameters Applied at Session Creation/Rotation Only > > The following parameters are only applied when a session is created or rotated, not on existing sessions: > > * `sessionttl` - TTL duration > * `sessionerr` - Error limit for flex mode > * Geographic parameters (`subdivision`, `zipcode`, etc.) > > This means changing these parameters on subsequent requests with the same session ID will have no effect until the session rotates to a new node. > > ### Parameters Re-parsed on Every Request > > `sessionmode` is evaluated on every request, not just at session creation (see the [norotate warning](#no-rotate-mode) above). > > ### Session-Breaking Parameters > > > [!WARNING] > > > > **Critical**: Changing `country` or `city` parameters creates a NEW session with a different identity, breaking session continuity. These are part of the session token itself. > > Unlike other parameters that are ignored until rotation, `country` and `city` are part of the session's unique identifier. Changing them creates an entirely different session: > > ```bash theme={null} > # First request creates session with US/NewYork > curl -x https://network.joinmassive.com:65535 \ > -U '{PROXY_USERNAME}-session-test-country-US-city-NewYork:{API_KEY}' \ > https://cloudflare.com/cdn-cgi/trace > > # This creates a DIFFERENT session - not the same as above! > curl -x https://network.joinmassive.com:65535 \ > -U '{PROXY_USERNAME}-session-test-country-US-city-LosAngeles:{API_KEY}' \ > https://cloudflare.com/cdn-cgi/trace > ``` > > ### Parameters Always Processed > > Some parameters are processed on every request regardless of session state: > > * `subaccount` - For billing and tracking > * `httpredirect` - For HTTP to HTTPS redirect behavior > > These parameters take effect immediately on each request. # Usage Alerts Source: https://docs.joinmassive.com/residential/usage-alerts How to set up usage alerts on the [partners](https://partners.joinmassive.com) page Usage alerts help you stay informed when your usage reaches a certain threshold. You can set up alerts to receive notifications via email, ensuring you never exceed your desired limits. Follow these simple steps to configure and manage your alerts. **Note**: * Alerts work only with **residential proxies**. * Alerts apply **within a single billing cycle**. For example, if you set an alert for 10GB, use 9GB, and your plan renews, using 1GB more in the new cycle will not trigger the previous alert. * Alerts are processed asynchronously, so they may trigger with a slight delay after requests to Massive Proxy are made * You can create up to **10 alerts per account**. If you need more, please contact our team. ## Create a New Alert 1. Go to the [Alerts](https://partners.joinmassive.com/residential/alerts) tab and click **Create New Alert** ![Create Usage Alert](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/usage-alerts-1.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=bc4a1c3bf39eda06a0dbf2b627ac5697) 2. Fill in the alert details: ![Initial Usage Alert Form](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/usage-alerts-2.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=338debc87bb9a1e085a2ad7c5475efbe) where * **Threshold**: Set the GB value that triggers an alert. * **Emails**: Add recipients for the alert (default is your registration email). * **Enable**: Toggle to activate the alert after creation (default to enabled). Example: ![Filled Usage Alert Form](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/usage-alerts-3.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=0d5d9ce71fc01ea02c712aa3b3c43ab9) 3. Click **Save** to activate the alert. ## Manage Existing Alerts 4. Use the **Actions** column to edit, disable, or remove alerts: ![Manage Usage Alert](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/usage-alerts-4.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=ebdcb5b2ea29a56dd8f813aa043d17de) ## Example Alert Email As a result, you should receive the following email in your inbox: ![Email 1 Usage Alert](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/usage-alerts-5.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=463c32fce2e9782a01a69ded88080c8d) With the following content: ![Email 2 Usage Alert](https://mintcdn.com/massive-c2ad7de9/rREum6oKgb-gMP2H/images/usage-alerts-6.png?fit=max\&auto=format\&n=rREum6oKgb-gMP2H\&q=85\&s=383a1911b4740228e452c52cd755c8b7) # Usage restrictions Source: https://docs.joinmassive.com/residential/usage-restrictions Some restrictions apply to the use of both the HTTP(S) and SOCKS5 endpoints. # General Restrictions * UDP communication isn’t allowed. * Ports other than the standard `80` and `443` are blocked; `http://example.com/` and `https://example.com/` are acceptable targets, for example, but `http://example.com:8080` would be rejected. * The Massive Network is intended to optimize delivery of content that could be reasonably considered “family friendly” to a (currently) worldwide userbase (in the future, regional distinctions are planned), so potentially dangerous or offensive content isn’t allowed. A request that’s blocked due to protocol or content restrictions will fail with a `452` Disallowed Content error; a request to a blocked port fails with `453` Port Forbidden. See [Blocked Destination Categories](https://www.joinmassive.com/blocked-destinations) for the specific categories blocked at the network layer. # Restricted Domains * We restrict access to content that is generally used to evade the law or site TOS policies. If you are getting blocked from accessing certain content that you have a legitimate reason to access, then contact support to complete our KYC process to gain access. > [!NOTE] > > The full set of blocked destination categories, the activity prohibited under our > Acceptable Use Policy, and the exception and waiver process are published at > [Blocked Destination Categories](https://www.joinmassive.com/blocked-destinations). # Port 25 * `Port 25` cannot be opened on our residential proxy network. If you want to use residential proxies to test email sending, you can request access for `Port 587` or `Port 465`. # Request access [Contact support](https://joinmassive.atlassian.net/servicedesk/customer/portal/2/group/2/create/13) if you have questions about our policies or want to complete KYC to gain access to content that is restricted by default. # AI chat Source: https://docs.joinmassive.com/web-render/ai Generate popular LLM completions. > [!NOTE] > > See also the [API reference](reference/ai) for more detail. ## Service usage **Massive's** AI service provides all completion content and grounding sources from frontier AI labs as structured or raw data for use in generative or language engine optimization. The service has a RESTful interface that accepts `GET` requests at **https\://‍render.joinmassive.com/ai**. Conversations can be localized with [geotargeting parameters](geotargeting). They're streamed live by default or optionally queued for [subsequent retrieval](scheduling). Live conversations take an average of several seconds but may require multiple retries, in which case up to **3 minutes** is allocated per API call. [Usage data](usage) is published regularly. ### Authentication You can access the service by including your secret API token in an `Authorization` header: ```http theme={null} Authorization: Bearer [API token here] ``` Here's an example request that uses the [common Curl command](https://curl.se/): ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/ai'\ '?prompt=best+basketball+shoes+for+2026'\ '&country=us'\ '&city=Portland' ``` > [!WARNING] > > This endpoint autoscales; if you receive a `503` response, maintain traffic and > expect errors to resolve within a minute. ### Chat parameters Besides the [geotargeting and scheduling params linked above](#service-usage), required and optional chat params can be added in a [standard query string](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL#parameters). The keys and values **Massive** supports are as follows: | Key | Required | Value | | :- | :- | :- | | `prompt` | ✅ | The question or instruction of up to 2,047 characters to use as a chat prompt; the prompt requires [form or URL encoding](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding) (with any space character being replaced by a `+` character or `%20` sequence) | | `model` | ⬜ | The AI model to chat with, `chatgpt`, `gemini`, `perplexity`, or `aio` (Google AI Overview, experimental); `chatgpt` is the default model | | `device` | ⬜ | The name as returned by the [devices resource](#device-emulation) of the device to emulate chatting on (these names are case insensitive but must include form- or URL-encoded spaces and punctuation marks); device emulation is unused by default | | `language` (planned) | ⬜ | The commonly spelled name or [two-letter ISO code](https://www.loc.gov/standards/iso639-2/php/code_list.php) of the language to chat in (these names and codes are case insensitive but required to include form- or URL-encoded spaces and punctuation marks); the language is unset by default | | `display` (planned) | ⬜ | The commonly spelled name or [two-letter ISO code](https://www.loc.gov/standards/iso639-2/php/code_list.php) of the chat interface's display language (these names and codes are case insensitive but required to include form- or URL-encoded spaces and punctuation marks); the display language is unset by default or set to the language if given | | `format` | ⬜ | The format to output to, `json`, `rendered`, or `raw` (planned) (see the [section below](#response-format)); `json` is the default format | | `expiration` | ⬜ | The age in days of when to consider a cached completion expired, where `0` disables caching; `1` is the default number of days before expiration | | `callback` | ⬜ | The encoded HTTP or HTTPS callback URL or Amazon SQS queue URL or ARN of up to 2,047 characters to notify when the (prerequisite) asynchronous completion has been retrieved; any SQS queue must grant `sqs:SendMessage` permission to the `arn:aws:iam::180363035301:role/api-instance` AWS principal | ### Device emulation The `device` param lets you fetch a device-specific completion, rather than the default desktop completion. For a list of supported smartphone and tablet devices, make a request with your API token and no params to **https\://‍render.joinmassive.com/ai/devices**: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/ai/devices' ``` The API will return JSON that contains an alphabetized array of device names: ```json theme={null} [ "Blackberry PlayBook", "Blackberry PlayBook landscape", "BlackBerry Z30", "[Remaining device names here]" ] ``` Then, pass your device name of choice into your chat request: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/ai'\ '?prompt=What+happened+to+blackberry%3F'\ '&device=Blackberry+PlayBook' ``` ### Response format Completions are returned as structured JSON, rendered HTML, or raw (unrendered) HTML (planned). #### JSON If you set the output to JSON, your completion will be parsed into an object with the [geotargeting keys and values above](#service-usage) and following chat keys and values: | Key | Value | | :- | :- | | `model` | The AI model that generated the completion | | `query` | The user prompt that the completion was generated for | | `html` | The rendered HTML of the entire conversation | | `prompt` | The rendered HTML of just the prompt portion of the conversation | | `completion` | The rendered HTML of just the completion portion of the conversation | | `sources` | The rendered HTML of just the sources portion, if any, of the conversation | | `ads` | The rendered HTML of just the ads portion, if any, of the conversation | | `sse` (ChatGPT only) | The server-sent events JSON that was used to populate the conversation HTML | | `fanouts` (ChatGPT only) | An array of the fanout queries that the model searched to generate the completion; only some models expose these queries | | `device` | The emulated device name that the conversation was had on | | `language` (planned) | The common name or ISO code of the language that the conversation is in | | `display` (planned) | The common name or ISO code of the display language that conversation interface is in | > [accordion] View JSON example > > ```json theme={null} > { > "model": "chatgpt", > "query": "best basketball shoes for 2026", > "html": " "prompt": "

You said: ...", > "completion": "

ChatGPT said: ...", > "sources": "
"ads": "
"sse": "{\"type\": \"conversation_detail_metadata\" ...", > "fanouts": [ > "best basketball shoes 2026", > "top rated basketball shoes 2026 reviews", > "best performance basketball shoes 2026", > "best basketball shoes for guards 2026", > "best basketball shoes for wide feet 2026", > "best outdoor basketball shoes 2026", > "most popular basketball shoes 2026" > ], > "country": "US", > "city": "Portland" > } > ``` #### HTML HTML is available after processing by rendering and JavaScript engines or in the raw form sent by the chatbot (planned). ## Additional examples ### Cachebusting ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/ai'\ '?prompt=Show+the+current+weather.'\ '&expiration=0' ``` # Browsing Source: https://docs.joinmassive.com/web-render/browser Unblock difficult-to-crawl websites. > [!NOTE] > > See also the [API reference](reference/browser) for more detail. ## Service usage **Massive's** browser service navigates intelligently on your behalf, rendering JavaScript, solving [captchas](https://www.ibm.com/topics/captcha), and retrying failed requests. The service has a RESTful interface that accepts `GET` requests at **https\://‍render.joinmassive.com/browser** and a [Chrome DevTools Protocol (CDP) interface](#cdp-interaction) for controlling browser navigation yourself that accepts WebSocket connections at **wss\://render.joinmassive.com/browser**. Webpages can be localized with [geotargeting parameters](geotargeting). Those requested via REST are retrieved in real time by default or optionally queued for [subsequent retrieval](scheduling). Up to **3 minutes** is allotted per real-time API call to accommodate captcha-solving, multiple retries, and other mitigations. [Usage data](usage) is published regularly. > [!TIP] > > If a site you're targeting remains blocked, even with different browsing params, [let us know](mailto:support@joinmassive.com). We can usually help unblock any site within **48 > hours**. ### Authentication You can access the service by including your secret API token in an `Authorization` header: ```http theme={null} Authorization: Bearer [API token here] ``` Here's an example request that uses the [common Curl command](https://curl.se/): ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/browser'\ '?url=https://example.com/' ``` > [!WARNING] > > This endpoint autoscales; if you receive a `503` response, maintain traffic and > expect errors to resolve within a minute. ### REST parameters Besides the [geotargeting and scheduling params linked above](#service-usage), required and optional REST params can be added in a [standard query string](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL#parameters). See [our rate card](pricing) for the prices of premium params. The keys and values **Massive** supports are as follows: | Key | Required | Premium | Value | | :- | :- | :- | :- | | `url` | ✅ | ⬜ | The URL of up to 2,047 characters of the page to browse; any unsafe characters require [URL encoding](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding) | | `difficulty` | ⬜ | ✅ | The difficulty pool to attempt to access the URL from, `low`, `medium`, or `high` (planned); `low` is the default difficulty | | `speed` | ⬜ | ✅ | The speed to attempt to access the URL at, `light`, `ridiculous`, or `ludicrous` (planned), where `ridiculous` is 30 percent faster on average than `light` speed; `light` is the default speed | | `device` | ⬜ | ⬜ | The name as returned by the [devices resource](#device-emulation) of the device to emulate browsing on (these names are case insensitive but must include form- or URL-encoded spaces and punctuation marks); device emulation is unused by default | | `session` | ⬜ | ⬜ | Any unique identifier of up to 255 characters (regardless of character encoding); **Massive** will make best efforts to route calls in the same session to the same egress node for up to 12 minutes | | `captcha` | ⬜ | ⬜ | The intended resolution of any detected captcha, `solved`, `ignored`, or `rejected`, where `rejected` results in a `403` response; `solved` is the default captcha resolution | | `readiness` | ⬜ | ⬜ | The standard ready event to await before snapshotting browsed content, `load` or `domcontentloaded`; `load` is the default ready event | | `delay` | ⬜ | ⬜ | The number of supplemental seconds to delay before snapshotting browsed content, from `.1` to `10` inclusive; no delay is used by default | | `format` | ⬜ | ⬜ | The format to output to, `rendered`, `raw`, or `markdown` (see the [section below](#response-format)); `rendered` is the default format | | `expiration` | ⬜ | ⬜ | The age in days of when to consider cached content expired, where `0` disables caching; `1` is the default number of days before expiration | | `callback` | ⬜ | ⬜ | The encoded HTTP or HTTPS callback URL or Amazon SQS queue URL or ARN of up to 2,047 characters to notify when the (prerequisite) asynchronous content has been retrieved; any SQS queue must grant `sqs:SendMessage` permission to the `arn:aws:iam::180363035301:role/api-instance` AWS principal | ### CDP interaction If your use case involves interacting with not just reading pages, you can connect [Puppeteer](https://pptr.dev/), [Playwright](https://playwright.dev/), or [another CDP-compatible automation framework](https://github.com/ChromeDevTools/awesome-chrome-devtools#libraries-for-driving-the-protocol-or-a-layer-above) to the browser service: ```js theme={null} #!/usr/bin/env node import puppeteer from 'puppeteer'; const browser = await puppeteer.connect({ browserWSEndpoint: 'wss://render.joinmassive.com/browser', headers: { Authorization: `Bearer ${process.env.MASSIVE_TOKEN}` } }); ``` > [accordion] View Playwright sample > > ```py theme={null} > #!/usr/bin/env python3 > import os > from playwright.sync_api import sync_playwright > > with sync_playwright() as playwright: > browser = playwright.chromium.connect_over_cdp( > 'wss://render.joinmassive.com/browser', > headers={ > 'Authorization': > f"Bearer {os.environ['MASSIVE_TOKEN']}" > } > ) > ``` The connection string takes geotargeting params and a subset of the [REST params](#rest-parameters), namely `difficulty`, `device`, and `session`: ```js theme={null} const browser = await puppeteer.connect({ browserWSEndpoint: 'wss://render.joinmassive.com/browser' + '?difficulty=medium', headers: { Authorization: `Bearer ${process.env.MASSIVE_TOKEN}` } }); ``` After connecting, most of your framework's API (see the [Puppeteer reference](https://pptr.dev/api), [Playwright reference](https://playwright.dev/docs/api/class-playwright), et cetera) will be available: ```js theme={null} const [page] = await browser.pages(); await page.goto('https://example.com/'); console.log('URL:', page.url()); console.log('Title:', await page.title()); ``` CDP use is metered by time, so you should disconnect from the service when done by calling `browser.disconnect()` (Puppeteer), `browser.close()` (Playwright), or the equivalent. ### Protocol mixture You can control costs by mixing REST requests and CDP use within a sticky browser session. E.g., you may want to prepare a page for interaction over REST then interact with the page over CDP: > [accordion] View REST-to-CDP sample > > ```js theme={null} > #!/usr/bin/env node > import puppeteer from 'puppeteer'; > > const restEndpoint = 'https://render.joinmassive.com/browser'; > const cdpEndpoint = 'wss://render.joinmassive.com/browser'; > const apiToken = process.env.MASSIVE_TOKEN; > const headers = { Authorization: `Bearer ${apiToken}` }; > const sessionId = Date.now(); > const orderUrl = 'https://httpbin.org/forms/post'; > const sizeSelector = '[name="size"][value="small"]'; > const toppingSelector = '[name="topping"][value="cheese"]'; > const buttonSelector = 'button'; > const requestTimeoutMs = 180_000; > const connectionTimeoutMs = 10_000; > const delayMs = 1_000; > const delay = (ms) => { > return new Promise((resolve) => { > setTimeout(resolve, ms); > }); > }; > const getCookies = (response) => { > const cookies = response.headers.getSetCookie?.() ?? []; > const keyvals = cookies.map((cookie) => { > return cookie.split(';', 1)[0]; > }); > > return keyvals.join('; '); > }; > > console.log( > 'Making REST request with session', > sessionId, > '...' > ); > > const controller = new AbortController(); > let timeoutId = setTimeout(() => { > controller.abort(); > }, requestTimeoutMs); > let response; > > try { > const url = > restEndpoint + > '?url=' + > encodeURIComponent(orderUrl) + > '&session=' + > sessionId + > '&expiration=0'; > response = await fetch( > url, > { headers, signal: controller.signal } > ); > } catch (error) { > const hasTimedOut = error.name == 'AbortError'; > response = new Response( > hasTimedOut > ? 'Request timed out' > : 'Unknown error occurred', > { status: hasTimedOut ? 504 : 500 } > ); > } finally { > clearTimeout(timeoutId); > } > > if (response.ok) { > console.log('Order form read successfully'); > } else { > const text = await response.text(); > > console.error('Order form read failure:', text.trimEnd()); > > process.exit(1); > } > > console.log( > 'Connecting via CDP with session', > sessionId, > '...' > ); > > timeoutId = setTimeout(() => { > console.error('Connection timed out'); > > process.exit(1); > }, connectionTimeoutMs); > const url = `${cdpEndpoint}?session=${sessionId}`; > const browser = await puppeteer.connect({ > browserWSEndpoint: url, > headers: { ...headers, Cookie: getCookies(response) } > }); > > clearTimeout(timeoutId); > > const page = (await browser.pages()).find((page) => { > return page.url().includes(orderUrl); > }); > > if (page) { > console.log('Session handed off successfully'); > } else { > console.error('Session handoff failure'); > > process.exit(1); > } > > await page.waitForSelector(sizeSelector); > await page.click(sizeSelector); > await delay(delayMs); > await page.waitForSelector(toppingSelector); > await page.click(toppingSelector); > await delay(delayMs); > await page.waitForSelector(buttonSelector); > await Promise.all([ > page.waitForNavigation({ waitUntil: 'domcontentloaded' }), > page.click(buttonSelector) > ]); > > try { > const json = await page.evaluate(() => { > return document.body.innerText; > }); > const data = JSON.parse(json); > > if ( > data.form && > typeof data.form.size == 'string' && > typeof data.form.topping == 'string' > ) { > console.log( > 'Ordered', > data.form.size.toLowerCase(), > 'pizza with', > data.form.topping.toLowerCase() > ); > } else { > console.error('Receipt was malformed'); > > process.exit(1); > } > } catch (error) { > console.error('Receipt parse failure:', error.message); > > process.exit(1); > } > > await browser.disconnect(); > ``` To hand off in reverse, from CDP to REST, call your disconnect method first. ### Device emulation The `device` param lets you browse device-specific content, rather than the default desktop content. For a list of supported smartphone and tablet devices, make a request with your API token and no params to **https\://‍render.joinmassive.com/browser/devices**: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/browser/devices' ``` The API will return JSON that contains an alphabetized array of device names: ```json theme={null} [ "Blackberry PlayBook", "Blackberry PlayBook landscape", "BlackBerry Z30", "[Remaining device names here]" ] ``` Then, pass your device name of choice into your browsing request or connection: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/browser'\ '?url=https://crackberry.com/'\ '&device=Blackberry+Playbook' ``` ```js theme={null} const browser = await puppeteer.connect({ browserWSEndpoint: 'wss://render.joinmassive.com/browser' + '?device=Blackberry+Playbook', headers: { Authorization: `Bearer ${process.env.MASSIVE_TOKEN}` } }); ``` ### Response format Read-only pages are returned as rendered HTML, raw (unrendered) HTML, or Markdown optimized for LLM prompts. ## Additional examples ### Cachebusting ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/browser'\ '?url=https://api.weather.gov/alerts'\ '&expiration=0' ``` ### End-to-end Playwright > [accordion] View end-to-end sample > > ```py theme={null} > #!/usr/bin/env python3 > import os > from playwright.sync_api import sync_playwright > > ENDPOINT = 'wss://render.joinmassive.com/browser' > API_TOKEN = os.environ['MASSIVE_TOKEN'] > URL = 'https://example.com/' > > print(f"Connecting to {ENDPOINT} ...") > > with sync_playwright() as playwright: > browser = playwright.chromium.connect_over_cdp( > ENDPOINT, > headers={'Authorization': f"Bearer {API_TOKEN}"} > ) > context = browser.contexts[0] > page = context.pages[0] > > print(f"Going to {URL} ...") > > page.goto(URL) > print(f"URL: {page.url}") > print(f"Title: {page.title()}") > browser.close() > ``` # Geotargeting Source: https://docs.joinmassive.com/web-render/geotargeting Search, chat, and browse from anywhere. ## Local content Every HTTP request can be routed through one of more than 190 countries, by subdivision and city: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?terms=musical+instruments'\ '&country=US' ``` > [accordion] View subdivision example > > ```shell theme={null} > curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ > 'https://render.joinmassive.com/ai'\ > '?prompt=Where+can+I+buy+a+vintage+guitar%3F'\ > '&country=US'\ > '&subdivision=TN' > ``` > [accordion] View city example > > ```shell theme={null} > curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ > 'https://render.joinmassive.com/browser'\ > '?url=https://guitars.com/'\ > '&country=US'\ > '&city=Nashville' > ``` These are the geotargeting request parameters: | Key | Required | Value | | :- | :- | :- | | `country` | ⬜ | The [two-letter ISO code](https://www.iso.org/obp/ui/#search/code) of the country to browse from (these codes are case insensitive); a random country is used by default | | `subdivision` | ⬜ | The alphanumeric second part (proceeding the separator) of a [first-level subdivision code](https://www.iso.org/obp/ui/#search/code) in the (prerequisite) country to browse from (these codes are case insensitive); a random subdivision is used by default | | `city` | ⬜ | The [commonly spelled name](https://www.geonames.org/) of the city in the (prerequisite) country to browse from (these names are temporarily case sensitive and required to include form- or URL-encoded spaces and punctuation marks); a random city is used by default | > [!WARNING] > > City targeting takes precedence over subdivision targeting if both are specified. These are the response parameters: | Key | Value | | :- | :- | | `country` | The ISO code of the country that was browsed from | | `subdivision` | The partial ISO code of the subdivision in the country that was browsed from | | `city` | The common name of the city in the country that was browsed from | # Overview Source: https://docs.joinmassive.com/web-render/overview One API to chat with AI, browse, and search the live web. The **Massive** Web Render API turns hard-to-reach web content into clean, structured data. Every service shares one RESTful interface: authenticate with your API token, send a `GET` request, and get back JSON, rendered HTML, or raw HTML. ## Endpoints > [card] [AI chat](/web-render/ai) > > Generate popular LLM completions. > [card] [Browsing](/web-render/browser) > > Unblock difficult-to-crawl websites. > [card] [Search](/web-render/search) > > Extract top real-time search results. ## Configuration Options that apply across every endpoint. > [card] [Geotargeting](/web-render/geotargeting) > > Make requests from anywhere. > [card] [Scheduling](/web-render/scheduling) > > Defer responses for later retrieval. ## Managing your account > [card] [Pricing](/web-render/pricing) > > Understand API credits and billing. > [card] [Reporting](/web-render/usage) > > Track API usage and performance. ## API reference Prefer to jump straight to the spec? The [API reference](/web-render/reference/ai) documents every parameter, response field, and status code for each endpoint. # Pricing Source: https://docs.joinmassive.com/web-render/pricing Understand API credits and billing. ## Credit system Access to **Massive** services is based on prepaid credits. Your credit balance is decremented only for successful API calls or successful Chrome DevTools Protocol (CDP) sessions. Most calls cost **1 credit** each or are **free**, except for substantially longer-running AI calls: | Service | Base credits | | :- | :- | | [Search](search) | 1 | | [AI](ai) | 5 | | [Browser](browser) | 1 | | [Reporting](usage) | 0 (free) | | Administration | 0 (free) | CDP sessions are billed by time, rounded down to the nearest credit: | Service | Base credits | | :- | :- | | [Browser CDP](browser) | 10 / minute | A few premium parameters multiply the base cost of calls or sessions that use them: | Service | Key | Value | Credit multiplier | | :- | :- | :- | :- | | Browser (CDP) | `difficulty` | `medium` | 2 | | Browser (CDP) | `difficulty` | `high` | 6 | | Browser | `speed` | `ridiculous` | 2 | | Browser | `speed` | `ludicrous` (planned) | 4 | For example, calling the browser service successfully with both `difficulty=medium` and `speed=ridiculous` params would cost **4 credits** in total: 1 base credit x 2 (difficulty multiplier) x 2 (speed multiplier) = 4 total credits > [card] [Your API credits](https://dashboard.joinmassive.com/plans) > > Create or fund an account. # Completion Source: https://docs.joinmassive.com/web-render/reference/ai get /ai Retrieve an LLM completion or queue a conversation for later retrieval. # Async completion Source: https://docs.joinmassive.com/web-render/reference/ai/completions get /ai/completions Retrieve the completion or status of a queued conversation – use `GET /ai?id=...`. # Devices Source: https://docs.joinmassive.com/web-render/reference/ai/devices get /ai/devices Retrieve supported device names. # Content Source: https://docs.joinmassive.com/web-render/reference/browser get /browser Retrieve web content or queue a request for later retrieval; connect to `wss://render.joinmassive.com/browser` for CDP interaction. # Async content Source: https://docs.joinmassive.com/web-render/reference/browser/content get /browser/content Retrieve the content or status of a queued request – use `GET /browser?id=...`. # Devices Source: https://docs.joinmassive.com/web-render/reference/browser/devices get /browser/devices Retrieve supported device names. # Results Source: https://docs.joinmassive.com/web-render/reference/search get /search Retrieve search results or queue a search for later retrieval. # Async results Source: https://docs.joinmassive.com/web-render/reference/search/results get /search/results Retrieve the results or status of a queued search – use `GET /search?id=...`. # Usage data Source: https://docs.joinmassive.com/web-render/reference/usage get /usage Generate an hourly consumption report. # Credit balance Source: https://docs.joinmassive.com/web-render/reference/user get /user Retrieve the settings and remaining credits of an account. # Scheduling Source: https://docs.joinmassive.com/web-render/scheduling Defer responses for later retrieval. ## Asynchronous mode An API call that includes the `mode=async` key-value pair will be satisfied asynchronously: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?terms=prolonged+fasting'\ '&mode=async' ``` > [accordion] View AI example > > ```shell theme={null} > curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ > 'https://render.joinmassive.com/ai'\ > '?prompt=Summarize+the+latest+research+on+prolonged+fasting.'\ > '&mode=async' > ``` > [accordion] View browser example > > ```shell theme={null} > curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ > 'https://render.joinmassive.com/browser'\ > '?url=https://pubmed.ncbi.nlm.nih.gov/?term=prolonged+fasting'\ > '&mode=async' > ``` In response, the API will provide a JSON job identifier: ```json theme={null} { "id": "078fd246-f0f7-44a0-aabb-cadd7b12454f" } ``` The job results, completion, or content or job status can be requested any time thereafter by passing back the ID: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?id=078fd246-f0f7-44a0-aabb-cadd7b12454f' ``` > [accordion] View AI example > > ```shell theme={null} > curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ > 'https://render.joinmassive.com/ai'\ > '?id=1851dab8-4619-409f-893f-47dd3a180bc3' > ``` > [accordion] View browser example > > ```shell theme={null} > curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ > 'https://render.joinmassive.com/browser'\ > '?id=21cb972e-0e0f-47bb-9ce9-65b99e9cee77' > ``` The results, completion, or content, if ready, will be returned in the same format as [synchronous results](search#response-format), a [synchronous completion](ai#response-format), or [synchronous content](browser#response-format); otherwise, a JSON status message will be returned. A `retrieving` status indicates that the search, conversation, or request is in progress: ```json theme={null} { "status": "retrieving" } ``` A `failed` status indicates that the search, conversation, or request was unsuccessful and the call should be retried: ```json theme={null} { "status": "failed" } ``` These are the scheduling request parameters: | Key | Required | Value | | :- | :- | :- | | `mode` | ⬜ | The synchronous or asynchronous mode of content retrieval, `sync` or `async`; `sync` is the default mode | | `id` | ⬜ | The identifier provided by the [search](search), [AI](ai), or [browser endpoints](browser) of an asynchronous job to retrieve | These are the response parameters: | Key | Value | | :- | :- | | `id` | The identifier to retrieve an asynchronous job with | | `status` | The status of an asynchronous job, `retrieving` or `failed` | # Search Source: https://docs.joinmassive.com/web-render/search Extract top real-time search results. > [!NOTE] > > See also the [API reference](reference/search) for more detail. ## Service usage **Massive's** search service delivers all organic and paid result types from popular search engines, reliably, as structured or raw data. The service has a RESTful interface that accepts `GET` requests at **https\://‍render.joinmassive.com/search**. Searches can be localized with [geotargeting parameters](geotargeting). They're performed live by default or optionally queued for [subsequent retrieval](scheduling). Live searches take an average of a few seconds but may require multiple retries, in which case up to **3 minutes** is allocated per API call. [Usage data](usage) is published regularly. ### Authentication You can access the service by including your secret API token in an `Authorization` header: ```http theme={null} Authorization: Bearer [API token here] ``` Here's an example request that uses the [common Curl command](https://curl.se/): ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?terms=foo+bar+baz' ``` > [!WARNING] > > This endpoint autoscales; if you receive a `503` response, maintain traffic and > expect errors to resolve within a minute. ### Search parameters Besides the [geotargeting and scheduling params linked above](#service-usage), required and optional search params can be added in a [standard query string](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL#parameters). The keys and values **Massive** supports are as follows: | Key | Required | Value | | :- | :- | :- | | `terms` | ✅ | The broad or exact word or phrase of up to 255 characters to query (e.g., `foo bar baz` or `"foo bar baz"`); the terms require [form or URL encoding](https://developer.mozilla.org/en-US/docs/Glossary/Percent-encoding) (with any space character being replaced by a `+` character or `%20` sequence) | | `engine` | ⬜ | The search engine to use, `google` or `bing` (coming soon); `google` is the default engine | | `serps` | ⬜ | The number of results pages to retrieve, from `1` to `10` inclusive; `1` is the default count | | `size` | ⬜ | The number of results per page to retrieve, from `0` to `100` inclusive; page size is unset by default | | `offset` | ⬜ | The number of initial results to skip, from `0` to `100` inclusive; results aren't offset by default | | `device` | ⬜ | The name as returned by the [devices resource](#device-emulation) of the device to emulate searching on (these names are case insensitive but must include form- or URL-encoded spaces and punctuation marks); device emulation is unused by default | | `uule` | ⬜ | The [proprietary encoded string](https://moz.com/blog/geolocation-the-ultimate-tip-to-emulate-local-search) for emulating the location to search from; if possible, the actual location is searched from not emulated; location emulation is unused by default | | `language` | ⬜ | The commonly spelled name, [two-letter ISO code](https://www.loc.gov/standards/iso639-2/php/code_list.php), or [Google code](https://www.google.com/advanced_search) of the language to search in (these names and codes are case insensitive but required to include form- or URL-encoded spaces and punctuation marks); the language is unset by default | | `display` | ⬜ | The commonly spelled name, [two-letter ISO code](https://www.loc.gov/standards/iso639-2/php/code_list.php), or [Google code](https://www.google.com/advanced_search) of the search interface's display language (these names and codes are case insensitive but required to include form- or URL-encoded spaces and punctuation marks); the display language is unset by default or set to the language if given | | `url` | ⬜ | The encoded URL of up to 2,047 characters of the results page to retrieve; if given, the URL overrides any of the above params | | `awaiting` | ⬜ | The lazy result features to wait to load, an `ai` overview, "People also ask" `answers`, or sponsored `ads`; any AI overview, which can take significant time to generate, is awaited for a maximum of **1 minute**; multiple features can be provided by repeating the key; lazy results aren't awaited by default | | `expiration` | ⬜ | The age in days of when to consider cached results expired, where `0` disables caching; `1` is the default number of days before expiration | | `callback` | ⬜ | The encoded HTTP or HTTPS callback URL or Amazon SQS queue URL or ARN of up to 2,047 characters to notify when the (prerequisite) asynchronous results have been retrieved; any SQS queue must grant `sqs:SendMessage` permission to the `arn:aws:iam::180363035301:role/api-instance` AWS principal | ### Device emulation The `device` param lets you fetch device-specific results, rather than the default desktop results. For a list of supported smartphone and tablet devices, make a request with your API token and no params to **https\://‍render.joinmassive.com/search/devices**: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search/devices' ``` The API will return JSON that contains an alphabetized array of device names: ```json theme={null} [ "Blackberry PlayBook", "Blackberry PlayBook landscape", "BlackBerry Z30", "[Remaining device names here]" ] ``` Then, pass your device name of choice into your search request: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?terms=blackberry'\ '&device=Blackberry+PlayBook' ``` ### Response format Search results are returned as rendered HTML. If you request multiple results pages that don't feature infinite scrolling, the HTML of each page will be separated from the next by an empty line (`\n\n`). ## Additional examples ### Results omission ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?terms=vpn+comparison'\ '&size=100'\ '&offset=20' ``` ### Alternative URL ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?url=https%3A%2F%2Fwww.google.com%2Fsearch%3Fq%3Dfoo%2Bbar%2Bbaz%26hl%3Dfr%26gl%3Dfr%26ie%3DUTF-8' ``` ### Lazy results ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?terms=how+tall+is+mount+everest%3F'\ '&awaiting=ai'\ '&awaiting=answers' ``` ### Push notification ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/search'\ '?terms=amazon+simple+queue+service'\ '&callback=https://webhook.site/02e249f8-1faf-4fab-bcf5-78ce683e85a8' ``` # Reporting Source: https://docs.joinmassive.com/web-render/usage Track API usage and performance. > [!NOTE] > > See also the [API reference](reference/usage) for more detail. ## Service usage **Massive's** reporting service buckets and updates consumption, success, and latency metrics at intervals of **1 hour**. The service has a RESTful interface that accepts `GET` requests at **https\://‍render.joinmassive.com/usage**. ### Authentication You can access the service by including your secret API token in an `Authorization` header: ```http theme={null} Authorization: Bearer [API token here] ``` Here's an example request that uses the [common Curl command](https://curl.se/): ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/usage'\ '?from=2025-12-24'\ '&to=2025-12-25' ``` > [!WARNING] > > This endpoint is rate limited; if you receive a `429` response, pause for the > backoff time required by the `Retry-After` header before making another request. ### Report parameters You should specify an ISO date or time range to generate a report: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/usage'\ '?from=2025-12-24T18:00:00-06:00'\ '&to=2025-12-25T9:00:00-06:00' ``` The API will return a JSON array: ```json theme={null} [{ "email": "user@example.com", "from": "2025-12-25T00:00:00+00:00", "to": "2025-12-25T15:00:00+00:00", "service": "browser", "result": "success", "calls": 17208, "credits": 17208, "meanSecs": 6.78 }, { "email": "user@example.com", "from": "2025-12-25T01:00:00+00:00", "to": "2025-12-25T15:00:00+00:00", "service": "browser", "result": "failure", "calls": 18, "credits": 0, "meanSecs": 60.22 }] ``` Your report can optionally be filtered by one or more services: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/usage'\ '?from=2025-12-24'\ '&to=2025-12-25'\ '&service=search' ``` > [accordion] View multiple-service example > > ```shell theme={null} > curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ > 'https://render.joinmassive.com/usage'\ > '?from=2025-12-24'\ > '&to=2025-12-25'\ > '&service=search'\ > '&service=ai' > ``` You can also disaggregate the metrics: ```shell theme={null} curl -H "Authorization: Bearer $MASSIVE_TOKEN" \ 'https://render.joinmassive.com/usage'\ '?from=2025-12-24'\ '&to=2025-12-25'\ '&by=hour' ``` These are the request keys and values: | Key | Required | Value | | :- | :- | :- | | `from` | ✅ | The [ISO datetime](https://www.w3.org/TR/NOTE-datetime) to select data starting from, inclusively | | `to` | ✅ | The [ISO datetime](https://www.w3.org/TR/NOTE-datetime) to select data up to, inclusively | | `email` | ⬜ | **\[Whitelabelers only]** The (case-insensitive) email address of the user to select data for; multiple email addresses can be provided by repeating the key; data for all email addresses is included by default | | `service` | ⬜ | The service to select data for, `search`, `ai`, or `browser`; multiple services can be provided by repeating the key; data for all services is included by default | | `by` | ⬜ | The time unit to group the data by, `hour`, `day` (planned), or `total`; `total` is the default unit | These are the response keys and values: | Key | Value | | :- | :- | | `email` | The email address of the user whose data is selected | | `from` | The ISO datetime of the first datapoint | | `to` | The ISO datetime of the last datapoint | | `service` | The service included in the data, `search`, `ai`, or `browser` | | `result` | The type of result included in the data, `success` or `failure` | | `calls` | The number of API calls of the service and result type | | `credits` | The number of credits consumed by the API calls | | `meanSecs` | The average number of elapsed seconds of the API calls |