{
  "schemas": {
    "CheckFreeAccessResponse": {
      "id": "CheckFreeAccessResponse",
      "description": "Response message for CheckFreeAccess",
      "type": "object",
      "properties": {
        "isAllowed": {
          "description": "True if free access should be allowed, false otherwise.",
          "type": "boolean"
        }
      }
    }
  },
  "version_module": true,
  "fullyEncodeReservedExpansion": true,
  "title": "Web Content Publisher API",
  "parameters": {
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "alt": {
      "type": "string",
      "description": "Data format for response.",
      "default": "json",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "location": "query"
    },
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "fields": {
      "type": "string",
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query"
    },
    "key": {
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "location": "query"
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "prettyPrint": {
      "type": "boolean",
      "description": "Returns response with indentations and line breaks.",
      "default": "true",
      "location": "query"
    },
    "quotaUser": {
      "type": "string",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
      "location": "query"
    },
    "upload_protocol": {
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query"
    },
    "uploadType": {
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query"
    },
    "$.xgafv": {
      "type": "string",
      "description": "V1 error format.",
      "enum": [
        "1",
        "2"
      ],
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "location": "query"
    }
  },
  "kind": "discovery#restDescription",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "protocol": "rest",
  "revision": "20260528",
  "description": "webcontentpublisher.googleapis.com API, a service for web content publishers.",
  "rootUrl": "https://webcontentpublisher.googleapis.com/",
  "ownerName": "Google",
  "mtlsRootUrl": "https://webcontentpublisher.mtls.googleapis.com/",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.readonly": {
          "description": "See and review your subscription information"
        }
      }
    }
  },
  "ownerDomain": "google.com",
  "basePath": "",
  "name": "webcontentpublisher",
  "baseUrl": "https://webcontentpublisher.googleapis.com/",
  "servicePath": "",
  "id": "webcontentpublisher:v1",
  "version": "v1",
  "discoveryVersion": "v1",
  "canonicalName": "Web Content Publisher",
  "resources": {
    "publications": {
      "methods": {
        "checkFreeAccess": {
          "id": "webcontentpublisher.publications.checkFreeAccess",
          "path": "v1/{+name}:checkFreeAccess",
          "flatPath": "v1/publications/{publicationsId}:checkFreeAccess",
          "httpMethod": "GET",
          "parameters": {
            "name": {
              "description": "Required. The resource name of the publication. Format: publications/{publication_id}",
              "pattern": "^publications/[^/]+$",
              "location": "path",
              "required": true,
              "type": "string"
            },
            "httpReferrer": {
              "description": "Required. The HTTP referrer.",
              "location": "query",
              "type": "string"
            },
            "uri": {
              "description": "Required. The URI of the content.",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "CheckFreeAccessResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.readonly"
          ],
          "description": "Checks if a user is eligible for free article access."
        }
      }
    }
  },
  "documentationLink": "https://developers.google.com/news/subscribe",
  "batchPath": "batch"
}
