diff --git a/examples/tools/related-companies/data.json b/examples/tools/related-companies/data.json
new file mode 100644
index 00000000..2b63ea05
--- /dev/null
+++ b/examples/tools/related-companies/data.json
@@ -0,0 +1 @@
+{"nodes": [{"id": 1, "label": "MSFT"}, {"id": 2, "label": "GOOGL"}, {"id": 3, "label": "NVDA"}, {"id": 4, "label": "AMZN"}, {"id": 5, "label": "GOOG"}, {"id": 6, "label": "META"}, {"id": 7, "label": "TSLA"}, {"id": 8, "label": "AAPL"}, {"id": 9, "label": "CRM"}, {"id": 10, "label": "ORCL"}, {"id": 11, "label": "AMD"}, {"id": 12, "label": "NFLX"}, {"id": 13, "label": "WMT"}, {"id": 14, "label": "DIS"}, {"id": 15, "label": "SNAP"}, {"id": 16, "label": "SHOP"}, {"id": 17, "label": "INTC"}, {"id": 18, "label": "ANET"}, {"id": 19, "label": "RIVN"}, {"id": 20, "label": "GM"}, {"id": 21, "label": "F"}, {"id": 22, "label": "LCID"}, {"id": 23, "label": "WBD"}, {"id": 24, "label": "CMCSA"}, {"id": 25, "label": "PARA"}, {"id": 26, "label": "T"}, {"id": 27, "label": "ROKU"}], "edges": [{"from": 1, "to": 2}, {"from": 1, "to": 3}, {"from": 1, "to": 4}, {"from": 1, "to": 5}, {"from": 1, "to": 6}, {"from": 1, "to": 7}, {"from": 1, "to": 8}, {"from": 1, "to": 9}, {"from": 1, "to": 10}, {"from": 1, "to": 11}, {"from": 4, "to": 1}, {"from": 4, "to": 2}, {"from": 4, "to": 5}, {"from": 4, "to": 8}, {"from": 4, "to": 7}, {"from": 4, "to": 3}, {"from": 4, "to": 6}, {"from": 4, "to": 12}, {"from": 4, "to": 13}, {"from": 4, "to": 14}, {"from": 6, "to": 5}, {"from": 6, "to": 2}, {"from": 6, "to": 1}, {"from": 6, "to": 4}, {"from": 6, "to": 8}, {"from": 6, "to": 7}, {"from": 6, "to": 3}, {"from": 6, "to": 15}, {"from": 6, "to": 12}, {"from": 6, "to": 11}, {"from": 8, "to": 1}, {"from": 8, "to": 2}, {"from": 8, "to": 4}, {"from": 8, "to": 5}, {"from": 8, "to": 7}, {"from": 8, "to": 3}, {"from": 8, "to": 6}, {"from": 8, "to": 12}, {"from": 8, "to": 14}, {"from": 8, "to": 11}, {"from": 5, "to": 2}, {"from": 5, "to": 1}, {"from": 5, "to": 6}, {"from": 5, "to": 4}, {"from": 5, "to": 8}, {"from": 5, "to": 7}, {"from": 5, "to": 3}, {"from": 5, "to": 15}, {"from": 5, "to": 12}, {"from": 5, "to": 16}, {"from": 3, "to": 11}, {"from": 3, "to": 6}, {"from": 3, "to": 2}, {"from": 3, "to": 7}, {"from": 3, "to": 5}, {"from": 3, "to": 1}, {"from": 3, "to": 8}, {"from": 3, "to": 4}, {"from": 3, "to": 17}, {"from": 3, "to": 18}, {"from": 7, "to": 19}, {"from": 7, "to": 2}, {"from": 7, "to": 4}, {"from": 7, "to": 20}, {"from": 7, "to": 21}, {"from": 7, "to": 22}, {"from": 7, "to": 5}, {"from": 7, "to": 6}, {"from": 7, "to": 8}, {"from": 7, "to": 3}, {"from": 14, "to": 12}, {"from": 14, "to": 23}, {"from": 14, "to": 4}, {"from": 14, "to": 24}, {"from": 14, "to": 25}, {"from": 14, "to": 8}, {"from": 14, "to": 2}, {"from": 14, "to": 26}, {"from": 14, "to": 5}, {"from": 14, "to": 27}]}
\ No newline at end of file
diff --git a/examples/tools/related-companies/index.html b/examples/tools/related-companies/index.html
new file mode 100644
index 00000000..1b5ae182
--- /dev/null
+++ b/examples/tools/related-companies/index.html
@@ -0,0 +1,30 @@
+
+
+
+ Vis Network | Related Companies
+
+
+
+
+
+
+
+
diff --git a/examples/tools/related-companies/readme.md b/examples/tools/related-companies/readme.md
new file mode 100644
index 00000000..9f107550
--- /dev/null
+++ b/examples/tools/related-companies/readme.md
@@ -0,0 +1,36 @@
+# See Connections with the Related Companies API
+
+This repository contains the Python script and HTML file used in our tutorial to demonstrate how to identify and visualize relationships between companies using Polygon.io's Related Companies API. The tutorial showcases how to fetch related company data and create a dynamic network graph using Python and vis.js, providing insights into the interconnected corporate landscape.
+
+
+
+Please see the [tutorial](https://polygon.io/blog/related-companies-api) for more details.
+
+### Prerequisites
+
+- Python 3.8+
+- Have Polygon.io's [python client](https://github.com/polygon-io/client-python) installed
+- An active Polygon.io account with an API key
+
+### Repository Contents
+
+- `related-companies-demo.py`: Python script to fetch and process data from the Related Companies API.
+- `index.html`: HTML file for visualizing the data as a network graph using vis.js.
+
+### Running the Example
+
+To run the Python script, ensure you have Python installed and your API key ready. Execute the following command:
+
+```
+python related-companies-demo.py
+```
+
+The script will generate a `data.json` file, which contains the nodes and edges for the network graph.
+
+To visualize the relationships:
+
+1. Take the `nodes` and `edges` from the `data.json` file and replace them in the `index.html` file
+2. Open `index.html` in your web browser.
+3. The web page should display the network graph.
+
+For a complete step-by-step guide on setting up and exploring the capabilities of the Related Companies API, refer to our detailed [tutorial](https://polygon.io/blog/related-companies-api).
\ No newline at end of file
diff --git a/examples/tools/related-companies/related-companies-demo.py b/examples/tools/related-companies/related-companies-demo.py
new file mode 100644
index 00000000..221d5f0f
--- /dev/null
+++ b/examples/tools/related-companies/related-companies-demo.py
@@ -0,0 +1,40 @@
+from polygon import RESTClient
+import json
+
+
+def get_related_tickers():
+ client = RESTClient(trace=True)
+
+ # Fetch a limited list of tickers to keep the example manageable
+ main_tickers = ["MSFT", "AMZN", "META", "AAPL", "GOOG", "NVDA", "TSLA", "DIS"]
+
+ # Prepare data structures for nodes and edges
+ nodes = []
+ edges = []
+ id_map = {}
+ current_id = 1
+
+ # Iterate over each main ticker and find related tickers
+ for ticker in main_tickers:
+ if ticker not in id_map:
+ id_map[ticker] = current_id
+ nodes.append({"id": current_id, "label": ticker})
+ current_id += 1
+
+ related_companies = client.get_related_companies(ticker)
+ for company in related_companies:
+ related_ticker = company.ticker
+ if related_ticker not in id_map:
+ id_map[related_ticker] = current_id
+ nodes.append({"id": current_id, "label": related_ticker})
+ current_id += 1
+
+ edges.append({"from": id_map[ticker], "to": id_map[related_ticker]})
+
+ # Save the nodes and edges to a JSON file for web visualization
+ with open("data.json", "w") as f:
+ json.dump({"nodes": nodes, "edges": edges}, f)
+
+
+if __name__ == "__main__":
+ get_related_tickers()
diff --git a/examples/tools/related-companies/related-companies.png b/examples/tools/related-companies/related-companies.png
new file mode 100644
index 00000000..ac9b14c7
Binary files /dev/null and b/examples/tools/related-companies/related-companies.png differ