GithubHelp home page GithubHelp logo

shimspedy / google-search-console-export-all Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swalker-888/google-search-console-export-all

0.0 0.0 0.0 19 KB

Use this script to export all your SEO data from Google Search Console including URLs, queries, clicks, impressions and rankings.

JavaScript 100.00%

google-search-console-export-all's Introduction

GSC Export All Data

Use this script to export all your SEO data from Google Search Console including URLs, queries, clicks, impressions and rankings.

The Google Search Console interface is limited to exports of 1000 rows, the sample Google Search Console API script is limited to 25,000 rows - this script exports ALL available data for the date range.

Prerequisites

  • This script uses Node.js

  • You can only collect data from sites where you are a 'verified owner' see GSC permissions

Set Up

  • Using Terminal or command line, navigate to the script folder and run 'npm install'

  • Create a project in Google's Developer Console

  • Ensure you have enabled the Google Search Console API for your project found in the API library

  • You will need OAuth credentials to access your GSC data

    • Head to Google's Developer Console clicking your project --> APIs & auth --> credentials

    • Navigate to the Cloud Console and Create a new OAuth2 Client Id

    • Select Web Application for the application type

    • Add an authorized redirect URI with the value http://localhost:3000/oauth2callback (or applicable value for your scenario)

    • Click the Download icon next to your newly created OAuth2 Client Id

    • Save the credentials file in the scripts folder as 'oauth2.keys.json'

  • Update the index.js file with your siteUrl, startDate, endDate variables (line 8-10)

  • To start the script, navigate to the script folder using Terminal or command line and run 'node index.js'

  • When running the script you will be directed to a Google login screen, access whichever account has the permissions to the GSC profile you want to collect data from

  • Once the script is complete a gsc-export.csv file will be created containing all of your data for the given date range

google-search-console-export-all's People

Contributors

swalker-888 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.