A node.js library for the Indeed job search api.
#Node Indeed API This is a small library for interacting with the Indeed API via node.js.
As the Indeed API only supports 2 endpoints, there are 2 operations you can perform in the library.
An instance of the api can be invoked by calling getInstance() and providing it your publisher id.
var api = require'indeed-api'getInstance"YOUR-PUBLISHER-ID-HERE";
From there, the JobSearch() and GetJobs() endpoints can be accessed.
Each endpoints query builder is accessed through chainable methods.
Searches for a jobs based on the defined query.
// do a job searchapiJobSearchRadius20WhereLocationcity : "Stevens Point"state : "WI"Limit2WhereKeywords"Information Technology"SortBy"date"UserIP"18.104.22.168"UserAgent"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"Search// do something with the success resultsconsole.logresults;// do something with the error resultsconsole.logerror;;
Retrieves specific job results based on their job key. (Available from the search results).
var jobkeys = "6a293ed4c08fe90c" "3c609d8c08b9297e" ;apiGetJobWhereJobKeysjobkeysRetrieve// do something with the success resultsconsole.logresults;// do something with the error resultsconsole.logerror;;
** The object structure in the results will be the same for both a search and retrieval **
Bug fixes and features are welcomed.
Copyright (C) 2012 Veselin Todorov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.