> ## Documentation Index
> Fetch the complete documentation index at: https://docs.oculusproxies.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Integrate Oculus Proxies With Diffbot

> Diffbot is an AI-powered web extraction platform that automatically turns any webpage into clean, structured JSON. Articles, products, people, organizations, and more, without writing custom scrapers.

<img src="https://mintcdn.com/oculus/1d67TBF2G4SVZ2ie/integration-guides/img/oculus_integrations/Diffbot.png?fit=max&auto=format&n=1d67TBF2G4SVZ2ie&q=85&s=12d801133d2e9b49333af2cad36da268" alt="title" width="720" height="200" data-path="integration-guides/img/oculus_integrations/Diffbot.png" />

## What is Diffbot?

**Diffbot** uses computer vision and machine learning to analyze and extract data from web pages at scale. With APIs like Article, Product, Organization, and Knowledge Graph, it delivers ready-to-use structured data in seconds. When paired with **Oculus Proxies**, you can rotate IPs, bypass geo-blocks, avoid rate limits, and ensure high success rates—even on protected or region-locked sites.

<Tip>
  If you're using **Oculus** to access search engines like **Google, Bing, or Yandex** and facing connection issues, your proxy type may need adjustment. **ISP Premium Proxies** provide stable and unrestricted access, preventing blocks that standard proxies might encounter. Switching to **ISP Premium Proxies** can improve performance.
</Tip>

## How to Integrate Oculus Proxies With Diffbot

<Steps>
  <Step title="Register and get an API Token">
    Visit [Diffbot](https://diffbot.com/) and register for a free account. Then, retrieve your **API key** from the top-right corner of the dashboard.

    <Frame>
      <img src="https://mintcdn.com/oculus/oyIkgJOxQBg_-s3v/integration-guides/img/diffbot1.png?fit=max&auto=format&n=oyIkgJOxQBg_-s3v&q=85&s=81ee97ecbf56131a071075456ec11667" alt="" width="1067" height="472" data-path="integration-guides/img/diffbot1.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/oculus/oyIkgJOxQBg_-s3v/integration-guides/img/diffbot2.png?fit=max&auto=format&n=oyIkgJOxQBg_-s3v&q=85&s=0750a824605aed611405e5a8edf303d8" alt="" width="1912" height="536" data-path="integration-guides/img/diffbot2.png" />
    </Frame>
  </Step>

  <Step title="Prepare your proxy">
    Use any HTTP/SOCKS5 proxy, residential, ISP or datacenter in the following format: `http://username:password@host:port`.
  </Step>

  <Step title="How to use Oculus Proxies with Diffbot">
    Example cURL to make an API call via proxy (replace placeholders with your credentials):

    * **Host:** `proxy.oculus-proxy.com`
    * **Port:** Enter the port number from your [Oculus Dashboard](https://oculusproxies.com/dashboard).
    * **Username:** Input your Oculus Proxy **username**.
    * **Password:** Input your Oculus Proxy **password**.
    * **Token:** Enter your Diffbot **API key**.

    ```bash theme={null}
    curl "https://api.diffbot.com/v3/article?token=YOUR_TOKEN&url=https://example.com/article" --proxy http://[username]:[password]@[host]:[port]
    ```
  </Step>

  <Step title="How to use it in code">
    Example using requests to query a target URL (replace proxy credentials as needed):

    <CodeGroup>
      ```javascript javascript theme={null}
      const options = { method: 'GET', headers: { accept: 'application/json' } };

      const apiUrl =
      "https://api.diffbot.com/v3/article?" +
      "url=https%3A%2F%2Fwww.amazon.com%2Fs%3Fk%3Dgaming%26_encoding%3DUTF8%26content-id%3Damzn1.sym.edf433e2-b6d4-408e-986d-75239a5ced10%26pd_rd_r%3Dd782a9fe-5930-442a-b9ff-b43594099714%26pd_rd_w%3DuZEDx%26pd_rd_wg%3DMzL55%26pf_rd_p%3Dedf433e2-b6d4-408e-986d-75239a5ced10%26pf_rd_r%3D0MCKXWVTYPQPSJS79SB7%26ref%3Dpd_hp_d_atf_unk" +
      "&token=your_token" +
      "&proxy=[host]:[port]" +
      "&proxyAuth=[username]:[password]";

      fetch(apiUrl, options)
      .then(res => res.json())
      .then(res => console.log(res))
      .catch(err => console.error(err));
      ```

      ```python python theme={null}
      import requests

      url = (
      "https://api.diffbot.com/v3/article?"
      "url=https%3A%2F%2Fwww.amazon.com%2Fs%3Fk%3Dgaming%26_encoding%3DUTF8%26content-id%3Damzn1.sym.edf433e2-b6d4-408e-986d-75239a5ced10%26pd_rd_r%3Dd782a9fe-5930-442a-b9ff-b43594099714%26pd_rd_w%3DuZEDx%26pd_rd_wg%3DMzL55%26pf_rd_p%3Dedf433e2-b6d4-408e-986d-75239a5ced10%26pf_rd_r%3D0MCKXWVTYPQPSJS79SB7%26ref%3Dpd_hp_d_atf_unk"
      "&token=your_token"
      "&proxy=[host]:[port]"
      "&proxyAuth=[username]:[password]"
      )

      headers = {"accept": "application/json"}

      response = requests.get(url, headers=headers)

      print(response.text)
      ```
    </CodeGroup>
  </Step>

  <Step title="Learn more">
    That's it, your set! You can always learn more from the [official documentation](https://docs.diffbot.com/reference/introduction-to-diffbot-apis) of Diffbot.
  </Step>
</Steps>
