ToolSura Blog
ArticlesAboutContact
Search

Stay in the loop

Join thousands of developers getting weekly insights into modern web development, AI tools, and productivity.

© 2026 ToolSura Blog
AboutContactPrivacy PolicyTerms of ServiceRSS

    Table of Contents

    403. "You do not own this site, or the inspected URL is not part of this property"401. when using `-apikey`HTTP 429 / 5xx. throttlingSitemap fetch fails (404 / timeout)"no URLs given"Empty / zero resultsUnexpected argument "-something"wrong: ./gsc-indexer -creds sa.json "url" -color alwaysright: ./gsc-indexer -creds sa.json -color always "url"Permissions / scope5-point diagnostic checklistSources
    HomeToolsura BlogArticle

    Troubleshooting gsc-indexer: 403, 401, and other errors

    A

    Abhay khant

    Jan 1, 1970 • 3 min read

    A lookup table of every error you can actually hit, and the fix for each.

    403. "You do not own this site, or the inspected URL is not part of this property"

    The most common error. Three causes, in order of likelihood:

    1. The service account isn't added to the property. Go to GSC → Settings → Users and permissions, and add the SA's client_email as a Full user. See service-account setup.
    2. Added as Restricted, not Full. Restricted users can't inspect URLs. Remove and re-add as Full.
    3. URL host doesn't match the property. https://toolsura.com/ and https://www.toolsura.com/ are different properties. Inspect the URL exactly as it appears in the property prefix.

    401. when using -apikey

    The GSC URL Inspection API requires OAuth, not an API key. API keys return 401. Use -creds with your sa.json instead. (An API key is accepted by the flag parser but will always 401 at the API.)

    HTTP 429 / 5xx. throttling

    Google is rate-limiting you. The tool already retries with backoff, but if it persists, raise -delay (e.g. -delay 10s). See throttling guide.

    Sitemap fetch fails (404 / timeout)

    • 404. the sitemap URL is wrong; open it in a browser to confirm.
    • timeout. the host is slow or down; the fetch has a 30s limit.

    "no URLs given"

    You started the tool without any URL, batch file, or piped input. Provide one:

    ./gsc-indexer -creds sa.json "https://www.toolsura.com/"
    

    Empty / zero results

    • Piping but forgot the pipe? cat urls.txt | ./gsc-indexer …. without the pipe, stdin is your keyboard and the run finds nothing.
    • Batch file path wrong or empty.

    Unexpected argument "-something"

    A flag placed after a URL gets treated as a URL (Go stops parsing flags at the first non-flag). Put all flags before URLs:

    ## wrong:  ./gsc-indexer -creds sa.json "url" -color always
    ## right:  ./gsc-indexer -creds sa.json -color always "url"
    

    Permissions / scope

    The tool requests the webmasters.readonly OAuth scope. Even so, the service account still needs Full property access in GSC. scope alone isn't enough to inspect.

    5-point diagnostic checklist

    • Cloud project exists and Search Console API is enabled
    • sa.json present and readable
    • SA email added to the property as Full
    • Property prefix exactly matches the inspected URL (www, https)
    • Using -creds, not -apikey

    If all five check out and it still fails, re-run with -dry-run to isolate whether the problem is URL expansion or the API call.

    Sources

    • Google Search Console
    • URL Inspection API documentation
    • Google Search APIs overview
    • Service account OAuth (Google Identity)
    • About service accounts (Google Cloud IAM)
    • Verify site ownership
    • Property types: URL-prefix vs Domain
    • URL Inspection tool help
    • Indexing API (JobPosting/BroadcastEvent only)
    • Request indexing / inspect a URL

    Frequently Asked Questions

    developer-tools
    cli-tools
    search
    website-analysis
    A

    About Abhay khant

    A passionate tech enthusiast and professional developer specializing in AI, automation, and modern web development. Sharing insights and guides to help others build better software faster.

    View full profile →

    Join the Newsletter

    Get articles like this delivered to your inbox every Thursday.

    What to read next

    Jan 1, 19709 min read

    What Is OpenCode? The 2026 Open-Source AI Coding Agent

    OpenCode topped LogRocket's July 2026 ranking with 160K+ GitHub stars and 7.5M+ monthly devs. A MIT-licensed, model-agnostic AI coding agent.

    AAbhay khant
    Jan 1, 19709 min read

    What Is the Model Context Protocol? A Plain-English Guide

    Model Context Protocol (MCP) is the open standard connecting AI to your tools and data. Learn how it works, how it differs from APIs, and why it matters.

    AAbhay khant
    Jan 1, 197010 min read

    What Are Passkeys? The Passwordless Login Standard Explained

    Passkeys are the passwordless, phishing-resistant login standard replacing passwords. Learn how they work and how they compare to 2FA.

    AAbhay khant