In-depth chapter

Connecting the Blogger API: step by step for beginners

Some Nabd tools work on your posts directly through Blogger’s official API (the Blogger API), and that needs your own “sign-in key” from Google, called an OAuth Client ID. Setting it up is free and takes about ten minutes, just once. Follow the steps in order.

When do you need it?

Needs the Blogger APIDoesn’t need it
The whole Tools page: analyzing and improving older posts, bulk labels, publishing and reverting to draftApplying the theme and all panel settings
In the editor: opening a published post, and saving a draft / publishing / scheduling directly without opening Blogger“Send to Blogger” from the editor, and uploading images
The AI writer (it only needs your AI provider’s key)

Is it safe? Yes. The project lives in your own Google account, and signing in happens directly between your browser and Google. Nabd’s servers never see the key and can’t reach your posts. The permission lasts an hour and is renewed by signing in, and you can revoke it at any time from your account permissions page.

Before you start: copy the “redirect URI” from Nabd

Google needs to know where to send you back after you sign in. This link belongs to the Nabd extension on your computer, and you’ll find it in the panel:

  1. Open the “Developer” tab

    In the Nabd panel, open the Developer tab. You’ll find the OAuth Client ID field, with a line under it that starts with Redirect URI:.

    The OAuth Client ID field and the redirect URI in the Developer tab
    The redirect URI under the Client ID field
  2. Copy the link exactly as it is

    It looks like this: https://abcdefghijklmnopabcdefghijklmnop.chromiumapp.org/ (the letters of your extension ID will be different). Copy all of it, including the / at the end, and keep it for the step where you create the Client ID.

Important: the extension ID (and the link with it) changes if you move the extension folder somewhere else or install it from a new folder. So install the extension in a permanent folder and don’t move it. If the link does change, add the new link to the same Client ID (step 5); you don’t need a new project.

Step 1: Create a project in Google Cloud

  1. Open Google Cloud Console

    Go to console.cloud.google.com with the Google account that owns the blog. The first time, accept the terms of service. (You won’t be asked for any payment card for this setup.)

  2. New project

    Click the project picker at the top of the page (next to the Google Cloud logo), then New project.

  3. Name it and click Create

    Type a name such as Nabd, leave everything else as it is, then click Create. After a few seconds, choose the new project from the same picker and make sure its name shows at the top of the page.

Step 2: Enable the Blogger API

  1. Open the API Library

    From the ☰ side menu: APIs & Services → Library. Or type Blogger API in the search box at the top of the page.

  2. Choose “Blogger API v3”

    Open the Blogger API v3 result and click Enable. When the button changes to “Manage”, you’re done.

Step 4: Add yourself as a “test user”

  1. Open “Audience”

    In Google Auth Platform, open Audience. You’ll see the app’s status is Testing. Leave it as it is and don’t click “Publish app”; you don’t need a review from Google for your personal use.

  2. Add your email

    In the Test users section, click Add users, type the Google email you manage the blog with, then click Save. If someone helps you with the blog from their own account, add their email too.

Step 5: Create the OAuth Client ID

  1. Open “Clients”

    In Google Auth Platform, open Clients, then click Create client. (Or go to APIs & Services → Credentials → Create credentials → OAuth client ID.)

  2. Application type

    Under Application type, choose Web application. Yes, a web application and not “Chrome extension”: that’s what Nabd’s sign-in method needs. Name it Nabd.

  3. Redirect URI

    Leave Authorized JavaScript origins empty. Under Authorized redirect URIs, click Add URI and paste the link you copied from Nabd (https://….chromiumapp.org/) exactly, with the slash at the end.

  4. Create and copy

    Click Create. A window appears with a Client ID ending in .apps.googleusercontent.com: copy it. (You don’t need the “Client secret”, and don’t put it anywhere.)

Changing the redirect URI or adding a new one can take a few minutes to take effect at Google. If you get an error right after creating it, wait five minutes and try again.

Step 6: Paste the Client ID into Nabd

In any one of these three places (they all save it to the same spot):

  • The panel: the Developer tab → the OAuth Client ID field.
  • The Tools page: click Sign in with Google and the “Blogger API setup” window appears for you to paste it in.
  • The editor: the Publish tab → “Advanced: publish directly with the Blogger API” → “Set up / sign in”.
The Blogger API setup window on the Tools page
The setup window on the Tools page
The direct publishing with the Blogger API window in the editor
The setup window in the editor

Step 7: Your first sign-in

  1. Sign in

    On the Tools page, click Sign in with Google, and choose the account that owns the blog.

  2. The “Google hasn’t verified this app” warning

    This is completely normal, because the app is your own and in testing mode. Click Continue. (Sometimes an “Advanced” link appears instead, then “Go to Nabd”.)

  3. Grant permission

    Agree to “Manage your Blogger account”. This permission lets Nabd’s tools read and edit your posts on your behalf.

  4. All set

    Click Load posts. From now on, you only need to sign in when needed; the setup doesn’t have to be repeated.

    The Tools page after signing in
    The Tools page, ready after signing in

Common errors and how to fix them

Error 400: redirect_uri_mismatch
The redirect URI in the Client ID doesn’t match Nabd’s link. Copy the link from the Developer tab again and compare it character by character (https, the slash at the end). If you moved the extension folder, the link has changed: add the new one.
Error 403: access_denied“has not completed the Google verification process”
Your email isn’t in the Test users list. Add it from Audience (step 4), or sign in with the account you added.
Error 401: invalid_client
The Client ID is incomplete or wrong. Copy it again from Clients and paste all of it.
“Blogger API has not been used in project… or it is disabled”
You haven’t enabled the Blogger API in the same project that holds the Client ID. Go back to step 2 and check the project name at the top of the page.
“Session expired — sign in again”
For your security, the permission lasts about an hour. Sign in again.
Signing in worked but the blog doesn’t show up
You signed in with an account that doesn’t own the blog or isn’t a member of it. Sign out and choose the right account.