{"id":13719196,"url":"https://github.com/buren/arbetsformedlingen","last_synced_at":"2025-08-19T01:12:39.639Z","repository":{"id":21668122,"uuid":"87742760","full_name":"buren/arbetsformedlingen","owner":"buren","description":"API Client \u0026 Post job ads to the Swedish employment agency (Arbetsförmedlingen)","archived":false,"fork":false,"pushed_at":"2023-07-01T04:08:07.000Z","size":3531,"stargazers_count":9,"open_issues_count":7,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-25T10:58:44.451Z","etag":null,"topics":["api-client","arbetsformedlingen","platsbanken","ruby","rubygem","swedish-employment-agency"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/buren.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-09T22:13:52.000Z","updated_at":"2024-09-09T19:50:36.000Z","dependencies_parsed_at":"2024-10-28T11:29:04.717Z","dependency_job_id":"6267defa-6f76-4685-b8c2-e93877b699e0","html_url":"https://github.com/buren/arbetsformedlingen","commit_stats":{"total_commits":250,"total_committers":4,"mean_commits":62.5,"dds":0.04400000000000004,"last_synced_commit":"765613b06950cc9fb2f240322eea89c03f4e221b"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/buren/arbetsformedlingen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Farbetsformedlingen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Farbetsformedlingen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Farbetsformedlingen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Farbetsformedlingen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buren","download_url":"https://codeload.github.com/buren/arbetsformedlingen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buren%2Farbetsformedlingen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271084314,"owners_count":24696481,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-client","arbetsformedlingen","platsbanken","ruby","rubygem","swedish-employment-agency"],"created_at":"2024-08-03T01:00:44.130Z","updated_at":"2025-08-19T01:12:39.614Z","avatar_url":"https://github.com/buren.png","language":"Ruby","funding_links":[],"categories":["Job market"],"sub_categories":[],"readme":"# Arbetsförmedlingen [![Build Status](https://travis-ci.org/buren/arbetsformedlingen.svg?branch=master)](https://travis-ci.org/buren/arbetsformedlingen) [![Gem Version](https://badge.fury.io/rb/arbetsformedlingen.svg)](https://badge.fury.io/rb/arbetsformedlingen)\n\nArbetsförmedlingen API client (Swedish Public Employment Service).\n\n__Index__\n* [Installation](#installation)\n* [Post job ad](#post-job-ad) (a.k.a Direktöverförda annonser)\n* [API clients for](#api-clients)\n  + [Platsannonser/Platsbanken](#api-clients)\n  * [Ontology](#ontology-api-client)\n  * [Taxonomy (SOAP)](#taxonomy-api-client)\n  * [WSOccupation (SOAP)](#wsoccupation-api-client)\n* [RDoc](http://www.rubydoc.info/gems/arbetsformedlingen/).\n\n## API Clients\n\n__Create a client:__\n\n```ruby\nclient = Arbetsformedlingen::API::Client.new(locale: 'en')\n```\n\n__Fetch all ads containing specified keyword:__\n```ruby\nads = client.ads(keywords: 'ruby')\nads.map(\u0026:title)\n```\n\n__Fetch one ad:__\n```ruby\nad = client.ad(id: 7408089)\nad.title\nad.occupation\nad.application.last_application_at\n```\n\n__Fetch countries in area:__\n```ruby\ncountries = client.countries(area_id: 2)\ncountries.map do |country|\n  \"#{country.name} has #{country.total_vacancies} total vacancies.\"\nend\n```\n\n## Post job ad\n\n:warning: In order to post live job ads to Arbetsförmedlingen you need to contact them and go through a test procedure. You can find their own documentation and some additional notes [here](https://goo.gl/c5jtBv).\n\nYou can find Arbetsförmedlingens own documentation and some additional notes [here](https://goo.gl/c5jtBv). Note that the documentation provided by Arbetsförmedlingen can be pretty hard to follow.\n\n__Validation support__\nAll models used to create a job ad include validations. _A lot_ of work was put into finding all the quirks in the API and adding each validation to its corresponding model. I can't recommend using it enough.\n\n__Complete example creating a packet__\n\nThere's a lot of data you can/must send to the API when creating an ad. See files in `lib/arbetsformedlingen/models` for details.\n\n[See full example](examples/post_job_ad.rb).\n\n## WSOccupation API Client\n\n```ruby\nclient = Arbetsformedlingen::API::WSOccupationClient.new\nresponse = client.occupations\nresponse.xml.css('Name').first.text\n# =\u003e \"Landskapsarkitekter och landskapsingenjörer\"\n```\n\n[`WSOccupationClient` documentation](http://www.rubydoc.info/gems/arbetsformedlingen/Arbetsformedlingen/API/WSOccupationClient).\n\n:link: [Arbetsformedlingen WsOccupation API documentation](https://api.arbetsformedlingen.se/af/v0/Occupation/wsoccupation.asmx)\n\n## Ontology API Client\n\n```ruby\nclient = Arbetsformedlingen::API::OntologyClient.new\nresponse = client.concepts(filter: 'ruby', type: 'skill')\nresponse.json\n# =\u003e [{\"uuid\"=\u003e\"035fc466-605e-5684-a106-a458929f27c6\", \"name\"=\u003e\"Ruby\", \"type\"=\u003e\"skill\"}, ...]\n```\n\n[`OntologyClient` documentation](http://www.rubydoc.info/gems/arbetsformedlingen/Arbetsformedlingen/API/WSOccupationClient).\n\n:link: [Arbetsformedlingen Ontology API documentation](http://ontologi.arbetsformedlingen.se/ontology/v1/?url=swagger.json#/Ontology)\n\n## Taxonomy API Client\n\n```ruby\nclient = Arbetsformedlingen::API::TaxonomyClient.new\nresponse = client.occupation_names(language_id: 502) # sv language id\nresponse.xml.css('OccupationName Term').first.text\n# =\u003e \"1:e Fartygsingenjör/1:e Maskinist\"\n```\n\n[`TaxonomyClient` documentation](http://www.rubydoc.info/gems/arbetsformedlingen/Arbetsformedlingen/API/WSOccupationClient).\n\n:link: [Arbetsformedlingen TaxonomiService API documentation](http://api.arbetsformedlingen.se/taxonomi/v0/TaxonomiService.asmx)\n\n## Notes\n\n__Arbetsförmedlingen TaxonomyService__\n\nSome requests had to be made to Arbetsförmedlingens TaxonomyService in order to fetch the data for the occupation codes. You can find that (plus some more) here :point_down: Postman.\n\n[![Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/9a27ec2518c1005f8aea)\n\n## Terms translation table\n\nThis gem has translated the attribute names in Arbetsförmedlingens (AF) API from Swedish to English. You can find the translations below.\n\n| Arbetsförmedlingen Term | Gem term           |\n|------------------------ |--------------------|\n| landområde/värdsdel | areas |\n| kommun | municipality |\n| län | counties |\n| län2 | counties2 |\n| yrkesområde | occupational_fields |\n| yrkesgrupp | occupational_group |\n| yrkesgrupp | occupational_group |\n| yrkesnamn | occupation |\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'arbetsformedlingen'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install arbetsformedlingen\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/buren/arbetsformedlingen.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Farbetsformedlingen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburen%2Farbetsformedlingen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburen%2Farbetsformedlingen/lists"}