infojobs
A simple library that allows you to access the biggest database of job offers in Spain through the Infojobs RESTful API.
Install
$ npm install infojobs
In order to be able to use this library you must first go to the Infojobs developer site and create an account.
Usage
Basic usage:
const infojobs = const search = // => these credentials are obtained on https://developer.infojobs.net/
You can narrow the search by passing a literal object containing a query:
Some properties accept multiple options, in that case you can pass a property array like so:
You can retrieve a specific job offer by specifying its id using the id method:
id'jobOfferId234234234414'
Unless specified, the Infojobs API will return 20 results per query. If you want to loop through all the results you can use the pages() function like so:
const search =const javaJobsInMadrid =for await const page of javaJobsInMadridconsole //
API
[object infojobs]
infojobs(credentials[object required], config[object]) Initializes the library and performs the authentication.
[object infojobs]
offer(query[object optional]) You can find the list of available query fields here.
[object infojobs]
id(id[string optional]) Specifies a job id.
[object Promise]
run() | start() | go() Executes the query against the Infojobs RESTful API.
[asyncIterator]
pages(from[number optional], until[number optional]) Returns an Async Iterator that allows you to iterate through the pages.
Requirements
Node.js version >=10.0.0.
Contributing
All contributions are welcome.
License
MIT © Alvaro Bernal