Freelancer

Freelancer

  • Category: Jobs

Getting Started with Freelancer.com API

If you're looking to integrate your application or website with Freelancer.com, the first step is to use their public API. In this guide, we'll walk you through getting started with Freelancer.com API and provide some examples in JavaScript.

Registering for Freelancer.com API

To use Freelancer.com API, you'll need to create an account with Freelancer.com first and obtain an API key. Here's how you can do it:

  1. Go to https://www.freelancer.com
  2. Click on the "Sign Up" button at the top right corner
  3. Follow the registration process and create an account
  4. Once you have an account, go to https://www.freelancer.com/developers and click on "Get API Key"
  5. Fill out the required information and accept the terms and conditions
  6. Your API key will be displayed on the screen. Make sure to keep it secure.

API Examples in JavaScript

Now that you have an API key, you can start making requests to Freelancer.com's API. Freelancer.com API documentation provides sample code in various languages. Below are some examples in JavaScript:

Retrieve User Information

Get user information using their user ID.

const fetch = require("node-fetch");

const userID = "123456"; // the user ID of the user you want to retrieve info for
const apiKey = "MY_API_KEY"; // replace with your own API key

fetch(`https://www.freelancer.com/api/users/0.1/users/${userID}?compact=true`, {
    headers: {
        "Freelancer-Developer-OAuth-Client-Id": apiKey
    }
})
.then(response => response.json())
.then(json => console.log(json));

Retrieve Projects

Get all the projects you have access to.

const fetch = require("node-fetch");

const apiKey = "MY_API_KEY"; // replace with your own API key

fetch(`https://www.freelancer.com/api/projects/0.1/projects?compact=true`, {
    headers: {
        "Freelancer-Developer-OAuth-Client-Id": apiKey
    }
})
.then(response => response.json())
.then(json => console.log(json));

Create a Project

Create a new project.

const fetch = require("node-fetch");

const apiKey = "MY_API_KEY"; // replace with your own API key

const payload = JSON.stringify({
    "title": "New Project Title",
    "description": "New Project Description",
    "currency": "USD",
    "budget": {
        "minimum": "10",
        "maximum": "100"
    },
    "location": "Los Angeles",
    "jobs": [
        {
            "id": "5",
            "expertise_id": "111",
            "description": "Job description",
            "budget": {
                "minimum": "10",
                "maximum": "100"
            },
            "priority": "10"
        }
    ]
});

fetch(`https://www.freelancer.com/api/projects/0.1/projects`, {
    method: "POST",
    headers: {
        "Content-Type": "application/json",
        "Freelancer-Developer-OAuth-Client-Id": apiKey
    },
    body: payload
})
.then(response => response.json())
.then(json => console.log(json));

These JavaScript examples should give you a good starting point for integrating your application or website with Freelancer.com API.

Conclusion

Freelancer.com API offers a powerful and flexible way to access data and create new projects. By using their public API, you can easily integrate with Freelancer.com and take advantage of all they have to offer. We hope this guide has helped you get started with Freelancer.com API and provided some useful JavaScript examples for your application or website. Happy coding!

Visit to Freelancer website

Similar APIs of Jobs

Remotive Job API

Remotive Job API

Jobs

Returns the list of all active remote job listings on Remotive job board. Filtering is available using optional querystring parameters. Remote job listings are sorted by publication date on Remotive job board.

remotejobsremotive

GraphQL Jobs

GraphQL Jobs

Jobs

Jobs with GraphQL. This API lets you retrieve information in GraphQL query format related for jobs offered by GraphQL. You can sort the data, find remote jobs and update existing data.

JobsGraphQLlocations

Reed

Reed

Jobs

Job board aggregator. API lets you create you own job search with reed.co.uk's job search and details API. Or lets you post jobs to reed.co.uk and search our database of candidates. It also provides with Courses API that takes leads and imports them into their CRM.

SeekingRecruitCourses

Jooble

Jooble

Jobs

Job search engine. The REST API allows developers to access and integrate Jooble's search results within your web products, or to build an entirely new web product of your own.

JobsVacanciesHigh

Jobs2Careers

Jobs2Careers

Jobs

Job aggregator. The API allows for a constant stream of up-todate job postings and provides the best matching based on any job seeker's search query. With the API, you use the Jobs2Careers enhanced search engine which has years of optimizations already built in. The API takes the guess work out of everything.

querysearchaccounting

The Muse

The Muse

Jobs

Job board and company profiles. This API gets a list of jobs, intelligently sorted by a number of factors such as trendiness, uniqueness, newness, etc. It also gives you description of individual job. Lets you list all the companies on your app or website in descending or ascending order. Through this API you can also access website's content.

JobsListsSorting

Juju

Juju

Jobs

Job search engine. Speed up your job search and find better jobs! Juju searches millions of jobs from thousands of sites and was one of the first job search engines online in 1998. It lets you sort data related to accounting, administrative, banking, mortgage, biotech, pharma, construction, customer, design, education, entry level, facilities, government, health care, human resources, installer, technician, insurance, legal, logistics, management, marketing, media, non profits, nursing, real estate, restaurant, retail, sales, sciences, software it, warehouse. API returns in XML.

OldestJobSearch

Careerjet

Careerjet

Jobs

Job search engine. If you are a webmaster and would like to embed Careerjet search results into your website, please feel free to use our public search API. In order to avoid misuse of our API, the frequency of calls you can make is limited. If you use our API intensively and wish to see this limit lifted for your server, please contact us and we'll arrange it after reviewing your site.

SearchWebJobs

USA JOBS

USA JOBS

Jobs

Tap into a list of current jobs openings with the United States government. This API provides you with the functionality that you can take advantage of on your own website or app which includes dynamic search, RSS feeds, job exports and rich REST services.

dynamicrssjob

Github Jobs

Github Jobs

Jobs

Jobs for software developers. GitHub Jobs is a great place attract the best technical talent for your company's open software development positions. The GitHub Jobs API allows you to search, and view jobs with JSON over HTTP. To get the JSON representation of any search result or job listing, append .json to the URL you'd use on the HTML GitHub Jobs site.

EmployerSoftwareRole