Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@datafire/google_searchconsole
Advanced tools
Readme
Client library for Google Search Console API
npm install --save @datafire/google_searchconsole
let google_searchconsole = require('@datafire/google_searchconsole').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
The Search Console API provides access to both Search Console data (verified users only) and to public information on an URL basis (anyone)
Exchange the code passed to your redirect URI for an access_token
google_searchconsole.oauthCallback({
"code": ""
}, context)
object
string
object
string
string
string
string
string
Exchange a refresh_token for an access_token
google_searchconsole.oauthRefresh(null, context)
This action has no parameters
object
string
string
string
string
string
Runs Mobile-Friendly Test for a given URL.
google_searchconsole.searchconsole.urlTestingTools.mobileFriendlyTest.run({}, context)
object
string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Lists the user's Search Console sites.
google_searchconsole.webmasters.sites.list({}, context)
object
string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Removes a site from the set of the user's Search Console sites.
google_searchconsole.webmasters.sites.delete({
"siteUrl": ""
}, context)
object
string
: The URI of the property as defined in Search Console. Examples: http://www.example.com/
or sc-domain:example.com
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Output schema unknown
Retrieves information about specific site.
google_searchconsole.webmasters.sites.get({
"siteUrl": ""
}, context)
object
string
: The URI of the property as defined in Search Console. Examples: http://www.example.com/
or sc-domain:example.com
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Adds a site to the set of the user's sites in Search Console.
google_searchconsole.webmasters.sites.add({
"siteUrl": ""
}, context)
object
string
: The URL of the site to add.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Output schema unknown
Query your data with filters and parameters that you define. Returns zero or more rows grouped by the row keys that you define. You must define a date range of one or more days. When date is one of the group by values, any days without data are omitted from the result list. If you need to know which days have data, issue a broad date range query grouped by date for any metric, and see which day rows are returned.
google_searchconsole.webmasters.searchanalytics.query({
"siteUrl": ""
}, context)
object
string
: The site's URL, including protocol. For example: http://www.example.com/
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex
is specified in the request).
google_searchconsole.webmasters.sitemaps.list({
"siteUrl": ""
}, context)
object
string
: The site's URL, including protocol. For example: http://www.example.com/
.string
: A URL of a site's sitemap index. For example: http://www.example.com/sitemapindex.xml
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Deletes a sitemap from this site.
google_searchconsole.webmasters.sitemaps.delete({
"siteUrl": "",
"feedpath": ""
}, context)
object
string
: The site's URL, including protocol. For example: http://www.example.com/
.string
: The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Output schema unknown
Retrieves information about a specific sitemap.
google_searchconsole.webmasters.sitemaps.get({
"siteUrl": "",
"feedpath": ""
}, context)
object
string
: The site's URL, including protocol. For example: http://www.example.com/
.string
: The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Submits a sitemap for a site.
google_searchconsole.webmasters.sitemaps.submit({
"siteUrl": "",
"feedpath": ""
}, context)
object
string
: The site's URL, including protocol. For example: http://www.example.com/
.string
: The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
.string
(values: 1, 2): V1 error format.string
: OAuth access token.string
(values: json, media, proto): Data format for response.string
: JSONPstring
: Selector specifying which fields to include in a partial response.string
: 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.string
: OAuth 2.0 token for the current user.boolean
: Returns response with indentations and line breaks.string
: 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.string
: Upload protocol for media (e.g. "raw", "multipart").string
: Legacy upload protocol for media (e.g. "media", "multipart").Output schema unknown
object
number
number
number
array
string
number
object
: A filter test to be applied to each row in the data set, where a match can return the row. Filters are string comparisons, and values and dimension names are not case-sensitive. Individual filters are either AND'ed or OR'ed within their parent filter group, according to the group's group type. You do not need to group by a specified dimension to filter against it.
string
(values: QUERY, PAGE, COUNTRY, DEVICE, SEARCH_APPEARANCE)string
string
(values: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS)object
: A set of dimension value filters to test against each row. Only rows that pass all filter groups will be returned. All results within a filter group are either AND'ed or OR'ed together, depending on the group type selected. All filter groups are AND'ed together.
array
string
(values: AND)object
: Blocked resource.
string
: URL of the blocked resource.object
: Describe image data.
string
: Image data in format determined by the mime type. Currently, the format will always be "image/png", but this might change in the future.string
: The mime-type of the image data.object
: Mobile-friendly issue.
string
(values: MOBILE_FRIENDLY_RULE_UNSPECIFIED, USES_INCOMPATIBLE_PLUGINS, CONFIGURE_VIEWPORT, FIXED_WIDTH_VIEWPORT, SIZE_CONTENT_TO_VIEWPORT, USE_LEGIBLE_FONT_SIZES, TAP_TARGETS_TOO_CLOSE): Rule violated.object
: Information about a resource with issue.
object
: Mobile-friendly test request.
boolean
: Whether or not screenshot is requested. Default is false.string
: URL for inspection.object
: Mobile-friendly test response, including mobile-friendly issues and resource issues.
string
(values: MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED, MOBILE_FRIENDLY, NOT_MOBILE_FRIENDLY): Test verdict, whether the page is mobile friendly or not.array
: List of mobile-usability issues.
array
: Information about embedded resources issues.
object
string
(values: AUTO, BY_PROPERTY, BY_PAGE): [Optional; Default is "auto"] How data is aggregated. If aggregated by property, all data for the same property is aggregated; if aggregated by page, all data is aggregated by canonical URI. If you filter or group by page, choose AUTO; otherwise you can aggregate either by property or by page, depending on how you want your data calculated; see the help documentation to learn how data is calculated differently by site versus by page. Note: If you group or filter by page, you cannot aggregate by property. If you specify any value other than AUTO, the aggregation type in the result will match the requested type, or if you request an invalid type, you will get an error. The API will never change your aggregation type if the requested type is invalid.string
(values: DATA_STATE_UNSPECIFIED, FINAL, ALL): The data state to be fetched, can be full or all, the latter including full and partial data.array
: [Optional] Zero or more filters to apply to the dimension grouping values; for example, 'query contains "buy"' to see only data where the query string contains the substring "buy" (not case-sensitive). You can filter by a dimension without grouping by it.
array
: [Optional] Zero or more dimensions to group results by. Dimensions are the group-by values in the Search Analytics page. Dimensions are combined to create a unique row key for each row. Results are grouped in the order that you supply these dimensions.
string
(values: DATE, QUERY, PAGE, COUNTRY, DEVICE, SEARCH_APPEARANCE)string
: [Required] End date of the requested date range, in YYYY-MM-DD format, in PST (UTC - 8:00). Must be greater than or equal to the start date. This value is included in the range.integer
: [Optional; Default is 1000] The maximum number of rows to return. Must be a number from 1 to 25,000 (inclusive).string
(values: WEB, IMAGE, VIDEO, NEWS): [Optional; Default is "web"] The search type to filter for.string
: [Required] Start date of the requested date range, in YYYY-MM-DD format, in PST time (UTC - 8:00). Must be less than or equal to the end date. This value is included in the range.integer
: [Optional; Default is 0] Zero-based index of the first row in the response. Must be a non-negative number.object
: A list of rows, one per result, grouped by key. Metrics in each row are aggregated for all data grouped by that key either by page or property, as specified by the aggregation type parameter.
string
(values: AUTO, BY_PROPERTY, BY_PAGE): How the results were aggregated.array
: A list of rows grouped by the key values in the order given in the query.
object
: List of sitemaps.
array
: Contains detailed information about a specific URL submitted as a sitemap.
object
: List of sites with access level information.
array
: Contains permission level information about a Search Console site. For more information, see Permissions in Search Console.
object
: Final state of the test, including error details if necessary.
string
: Error details if applicable.string
(values: TEST_STATUS_UNSPECIFIED, COMPLETE, INTERNAL_ERROR, PAGE_UNREACHABLE): Status of the test.object
: Contains permission level information about a Search Console site. For more information, see Permissions in Search Console.
string
(values: SITE_PERMISSION_LEVEL_UNSPECIFIED, SITE_OWNER, SITE_FULL_USER, SITE_RESTRICTED_USER, SITE_UNVERIFIED_USER): The user's permission level for the site.string
: The URL of the site.object
: Contains detailed information about a specific URL submitted as a sitemap.
array
: The various content types in the sitemap.
string
: Number of errors in the sitemap. These are issues with the sitemap itself that need to be fixed before it can be processed correctly.boolean
: If true, the sitemap has not been processed.boolean
: If true, the sitemap is a collection of sitemaps.string
: Date & time in which this sitemap was last downloaded. Date format is in RFC 3339 format (yyyy-mm-dd).string
: Date & time in which this sitemap was submitted. Date format is in RFC 3339 format (yyyy-mm-dd).string
: The url of the sitemap.string
(values: NOT_SITEMAP, URL_LIST, SITEMAP, RSS_FEED, ATOM_FEED, PATTERN_SITEMAP, OCEANFRONT): The type of the sitemap. For example: rssFeed
.string
: Number of warnings for the sitemap. These are generally non-critical issues with URLs in the sitemaps.object
: Information about the various content types in the sitemap.
string
: The number of URLs from the sitemap that were indexed (of the content type).string
: The number of URLs in the sitemap (of the content type).string
(values: WEB, IMAGE, VIDEO, NEWS, MOBILE, ANDROID_APP, PATTERN, IOS_APP, DATA_FEED_ELEMENT): The specific type of content in this sitemap. For example: web
.FAQs
DataFire integration for Google Search Console API
The npm package @datafire/google_searchconsole receives a total of 0 weekly downloads. As such, @datafire/google_searchconsole popularity was classified as not popular.
We found that @datafire/google_searchconsole demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.