Google Business Data Extractor (v12.0)
Description
This userscript enhances your Google Business Profile viewing experience by extracting and displaying key business information in a convenient slide-out panel. It's perfect for marketers, SEO professionals, or anyone who needs quick access to business data on Google. This UserScript automatically extracts and displays the business name, data-pid, and data-cid values from a Google Business profile page. It is designed to help users quickly retrieve essential business data from Google Business profiles.
Features:
- Extracts and displays business name, Place ID, and CID
- Provides direct links to Google Maps, Local Google, and Write a Review pages
- Slide-out panel for easy access to all extracted information
- Copy buttons for quick data transfer
- Console logging within the panel for troubleshooting
- Popup notifications for user actions and script status

Installation
- Ensure you have a UserScript manager installed in your browser, such as Tampermonkey or Greasemonkey.
- Click on the "Raw" button on the script's GitHub page to view the script file.
- Your UserScript manager should automatically recognize the script and offer to install it. Follow the on-screen instructions to complete the installation.
How to Use:
- Install the script using Tampermonkey or Greasemonkey
- Navigate to any Google Business Profile page
- The script will automatically run when the page loads.
- The script will attempt to find and display the following information on the page:
- Business Name: Displayed in green text in the browser console.
- data-pid: Displayed in green text in the browser console and red text on the page, below the business name.
- data-cid: Displayed in green text in the browser console and blue text on the page, below the business name.
- Click the orange tab on the right side of the page to open the slide-out panel
- View extracted data and use the copy buttons as needed
Troubleshooting
- Business name not found: Ensure that the business profile page has fully loaded and that the
h2[data-attrid="title"]
element is present in the page's HTML.
- data-pid not found: Ensure that the "Write a Review" button is present on the page and that the
#wrkpb
element is present in the page's HTML.
- data-cid not found: Ensure that the search r###lt link is present on the page and that the
a[jscontroller="wuU7pb"]
element is present in the page's HTML.
TODO:
Implement Support for this OSINT Tool:
https://pleper.com/index.php?do=tools&sdo=cid_converter
Support
For support, please reach out in the comments.
License
This script is released under the MIT License.
Changelog
Version 12.0 (Current)
- Updated match URL to only run on /search pages on Google
Version 11.0
- Added a "Rescan Page" button to manually trigger data extraction
- Implemented MutationObserver to detect dynamically loaded content
- Improved error handling and user feedback
- Enhanced the script's ability to find business information in various page layouts
- Updated the UI for better visibility and user interaction
Version 10.0
- Added support for multi-location business pages
- Implemented new methods to extract CID (Customer ID) from various page elements
- Added extraction and logging of all data attributes from the CID element
- Improved business name extraction for different page layouts
- Enhanced error handling and user notifications for missing information
- Optimized the slide-out panel layout for better readability
- Added copy buttons for each piece of extracted information
- Implemented a popup notification system for user feedback
Version 9.0
- Introduced slide-out panel for displaying extracted information
- Added console logging within the panel for easier debugging
- Improved formatting of displayed information
- Renamed variables to more user-friendly names (e.g., "Place ID URL" instead of "pidLink")
- Added "Write A Review URL" to the extracted information
- Improved console log readability with line breaks between entries
Version 8.0
- Added copy buttons for each piece of extracted data
- Implemented popup notification system for user feedback
- Added credits to the bottom of the slide-out panel
Version 7.0 and earlier
- Initial script development
- Basic data extraction and display on the Google Business Profile page
- Extraction of Business Name, Place ID, and CID
- Generation of various Google URLs (Maps, Local, etc.) based on extracted data
Version 6.0 and earlier
- Initial script development
- Basic data extraction and display on the Google Business Profile page
Version 4.0
- New Feature: Added a "Write Review" button linking to the Google review page using the placeid.
- Improvements: Enhanced error handling and improved the clarity of console messages.
- Bug Fixes: Fixed issues with elements not being found on certain pages.
OLD SCREENSHOT:
