Searches for jobs using the provided SearchJobsRequest
.
This API call is intended for the use case of targeting passive job seekers (for example, job seekers who have signed up to receive email alerts about potential job opportunities), and has different algorithmic adjustments that are targeted to passive job seekers.
This call constrains the visibility
of jobs present in the database, and only returns jobs the caller has permission to search against.
HTTP request
POST https://jobs.googleapis.com/v3p1beta1/{parent=projects/*}/jobs:searchForAlert
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The resource name of the project to search within. The format is "projects/{projectId}", for example, "projects/api-test-project". |
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "searchMode": enum ( |
Fields | |
---|---|
searchMode |
Optional. Mode of a search. Defaults to |
requestMetadata |
Required. The meta information collected about the job searcher, used to improve the search quality of the service. The identifiers (such as |
jobQuery |
Optional. Query used to search against jobs, such as keyword, location filters, etc. |
enableBroadening |
Optional. Controls whether to broaden the search when it produces sparse results. Broadened queries append results to the end of the matching results list. Defaults to false. |
requirePreciseResultSize |
This field is deprecated. |
histogramFacets |
Optional. Histogram requests for jobs matching |
histogramQueries[] |
Optional. Expression based histogram requests for jobs matching |
jobView |
Optional. The desired job attributes returned for jobs in the search response. Defaults to [JobView.SMALL][] if no value is specified. |
offset |
Optional. An integer that specifies the current offset (that is, starting result location, amongst the jobs deemed by the API as relevant) in search results. This field is only considered if The maximum allowed value is 5000. Otherwise an error is thrown. For example, 0 means to return results starting from the first matching job, and 10 means to return from the 11th job. This can be used for pagination, (for example, pageSize = 10 and offset = 10 means to return from the second page). |
pageSize |
Optional. A limit on the number of jobs returned in the search results. Increasing this value above the default value of 10 can increase search response time. The value can be between 1 and 100. |
pageToken |
Optional. The token specifying the current offset within search results. See |
orderBy |
Optional. The criteria determining how search results are sorted. Default is "relevance desc". Supported options are:
|
diversificationLevel |
Optional. Controls whether highly similar jobs are returned next to each other in the search results. Jobs are identified as highly similar based on their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results. Defaults to |
customRankingInfo |
Optional. Controls over how job documents get ranked on top of existing relevance score (determined by API algorithm). |
disableKeywordMatch |
Optional. Controls whether to disable exact keyword match on [Job.job_title][], For queries like "cloud" that does not contain title or location specific ontology, jobs with "cloud" keyword matches are returned regardless of this flag's value. Please use [Company.keyword_searchable_custom_fields][] or [Company.keyword_searchable_custom_attributes][] if company specific globally matched custom field/attribute string values is needed. Enabling keyword match improves recall of subsequent search requests. Defaults to false. |
Response body
If successful, the response body contains an instance of SearchJobsResponse
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/jobs
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.