Contify API Documentation

Contify is a platform that provides curated market intelligence for businesses in various industries. With its API, you can integrate the data into your own application or system. This documentation provides an overview of the available APIs and how to use them.

Getting Started

To use the Contify API, you will first need an API key. You can obtain this by signing up for an account on their website. Once you have your API key, you can authenticate your requests by passing it as a bearer token in the header.

const axios = require('axios');

const apiKey = 'YOUR_API_KEY';
const headers = { Authorization: `Bearer ${apiKey}` };

axios.get('https://api.contify.com/v1/data/sources', { headers })
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.log(error);
  });

API Endpoints

Contify provides a comprehensive list of APIs in various categories, such as sources, articles, keywords, companies, and more. Here are some examples of how to use each category of API in JavaScript:

Sources

Sources API returns a list of sources that Contify curates.

axios.get('https://api.contify.com/v1/data/sources', { headers })
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.log(error);
  });

Articles

Articles API returns a list of articles based on the search criteria that you specify.

axios.get('https://api.contify.com/v1/data/articles?search=apple', { headers })
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.log(error);
  });

Keywords

Keywords API returns a list of keywords that Contify tracks.

axios.get('https://api.contify.com/v1/data/keywords', { headers })
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.log(error);
  });

Companies

Companies API returns a list of companies, their details, and the articles related to them.

axios.get('https://api.contify.com/v1/data/companies?search=apple', { headers })
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.log(error);
  });

Statistics

Statistics API returns the summary statistics for a given source or keyword.

axios.get('https://api.contify.com/v1/data/statistics/sources/21', { headers })
  .then((response) => {
    console.log(response.data);
  })
  .catch((error) => {
    console.log(error);
  });

Conclusion

Contify API allows you to access curated market intelligence data to a wide range of industries. With this documentation and API examples in JavaScript, you can get started and integrate them into your application and systems. Have fun experimenting and creating!

Related APIs in News