Skip to content

Instantly share code, notes, and snippets.

@liketaurus
Last active June 26, 2020 19:31
Show Gist options
  • Save liketaurus/ddf10e8ff8b8354eeebe996262f076a7 to your computer and use it in GitHub Desktop.
Save liketaurus/ddf10e8ff8b8354eeebe996262f076a7 to your computer and use it in GitHub Desktop.
rabota.ua API demo

rabota.ua API demo

Just a simple demo for getting JSON data from one of the biggest Ukrainian job searching sites.

Company ID was selected randomly - just for demonstration purposes.

You can play with this code in live environment at CodePen

License.

//API Documentation portal: https://api.rabota.ua/swagger/ui/index#!/Company/Company_GetList
$.getJSON( "https://api.rabota.ua/company/720/vacancies", function( data ) {
var items = [];
$("<div/>",{html: "<h1>"+data.documents[0].companyName+"</h1>"}).appendTo("body");
$("<hr/>").appendTo("body");
$.each( data.documents, function( key, val ) {
items.push( "<li id='" + key + "'><strong>" + val.name + "</strong><br>"+val.description+"</li>" );
});
$( "<ul/>", {
html: items.join( "" )
}).appendTo( "body" );
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment