{"id":22314433,"url":"https://github.com/alvarobernalg/infojobs","last_synced_at":"2026-04-27T21:32:13.573Z","repository":{"id":22280647,"uuid":"95797398","full_name":"AlvaroBernalG/infojobs","owner":"AlvaroBernalG","description":"Unofficial Node.js wrapper for the Infojobs RESTful API ","archived":false,"fork":false,"pushed_at":"2023-01-03T15:15:32.000Z","size":819,"stargazers_count":0,"open_issues_count":10,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-24T19:20:21.505Z","etag":null,"topics":["api","infojobs","job-offer","jobs","nodejs","offer","offers","portal","query","spain"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlvaroBernalG.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-29T16:29:55.000Z","updated_at":"2021-12-28T09:48:15.000Z","dependencies_parsed_at":"2023-01-13T21:56:18.229Z","dependency_job_id":null,"html_url":"https://github.com/AlvaroBernalG/infojobs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlvaroBernalG%2Finfojobs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlvaroBernalG%2Finfojobs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlvaroBernalG%2Finfojobs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlvaroBernalG%2Finfojobs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlvaroBernalG","download_url":"https://codeload.github.com/AlvaroBernalG/infojobs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245418014,"owners_count":20612045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","infojobs","job-offer","jobs","nodejs","offer","offers","portal","query","spain"],"created_at":"2024-12-03T22:10:01.323Z","updated_at":"2026-04-27T21:32:13.545Z","avatar_url":"https://github.com/AlvaroBernalG.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# infojobs\n\n\u003e A simple library that allows you to access the biggest database of job offers in Spain through the [Infojobs](https://www.infojobs.net/) RESTful API.\n\n[![Build Status](https://travis-ci.org/AlvaroBernalG/infojobs.svg?branch=master)](https://travis-ci.org/AlvaroBernalG/infojobs) [![npm version](https://badge.fury.io/js/infojobs.svg)](https://badge.fury.io/js/infojobs) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n```\n$ npm install infojobs\n```\n\nIn order to be able to use this library you must first go to the [Infojobs developer site](https://developer.infojobs.net/) and create an account.  \n\n## Usage\n\nBasic usage:\n```js\nconst infojobs = require('infojobs')\n\nconst search = infojobs({\n  id: 'api_id',\n  secret: 'api_secret'  \n}) // =\u003e these credentials are obtained on https://developer.infojobs.net/\n\nsearch()\n  .offer()\n  .run()\n  .then( response =\u003e {\n      console.log(response) // =\u003e by default you will receive 20 results.  \n  }).catch(console.log)\n```\n\nYou can narrow the search by passing a literal object containing a [query](https://developer.infojobs.net/documentation/operation/offer-list-1.xhtml):\n```js\n\nsearch()\n  .offer({\n    q: 'Java developer',\n    province: 'Madrid',\n    companyName: 'Santander Group'\n  })\n  .run()\n  .then( response =\u003e {\n      console.log(response) // =\u003e by default you receive 20 results.\n  }).catch(console.log)\n```\n\nSome properties accept multiple options, in that case you can pass a property array like so:\n```js\n\nsearch()\n  .offer({\n    q: ['Java developer', 'Analista'],\n    province: ['Madrid', 'Barcelona'],\n    companyName: 'Santander Group'\n  })\n  .run()\n  .then( response =\u003e {\n      console.log(response) // \n  }).catch(console.log)\n```\n\nYou can retrieve a specific job offer by specifying its id using the id method:\n```js\nsearch()\n  .offer()\n    .id('jobOfferId234234234414')\n  .run()\n  .then( reponse =\u003e {\n      console.log(response)\n  }).catch(console.log)\n```\n\nUnless specified, the Infojobs API will return 20 results per query. If you want to loop through all the results\nyou can use the pages() function like so:\n\n``` js\n  const search = infojobs(credentials)\n  const javaJobsInMadrid = search().offer({q: 'java', province: \"Madrid\"})\n\n  for await (const page of javaJobsInMadrid.pages()) {\n    console.log(\"Page =\u003e \", page) //\n  }\n```\n\n\n## API\n\n#### infojobs(credentials[object required], config[object]) `[object infojobs]`\nInitializes the library and performs the authentication.\n\n#### offer(query[object optional]) `[object infojobs]`  \nYou can find the list of available query fields [here](https://developer.infojobs.net/documentation/operation/offer-list-1.xhtml).\n\n#### id(id[string optional]) `[object infojobs]`  \nSpecifies a job id.\n\n#### run() | start() | go() `[object Promise]`\nExecutes the query against the Infojobs RESTful API.\n\n#### pages(from[number optional], until[number optional]) `[asyncIterator]`\nReturns an Async Iterator that allows you to iterate through the pages.\n\n## Requirements \n\nNode.js version \u003e=10.0.0.\n\n## Contributing\n\nAll contributions are welcome.\n\n## License\nMIT © [Alvaro Bernal](https://github.com/AlvaroBernalG/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarobernalg%2Finfojobs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falvarobernalg%2Finfojobs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falvarobernalg%2Finfojobs/lists"}