{"id":22546605,"url":"https://github.com/prx/open_calais","last_synced_at":"2025-10-03T15:41:18.838Z","repository":{"id":7917535,"uuid":"9302691","full_name":"PRX/open_calais","owner":"PRX","description":"Ruby gem to access and parse OpenCalais API","archived":false,"fork":false,"pushed_at":"2020-12-02T17:07:33.000Z","size":51,"stargazers_count":32,"open_issues_count":1,"forks_count":21,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-14T21:44:09.168Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/PRX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-08T17:42:18.000Z","updated_at":"2022-04-14T14:12:21.000Z","dependencies_parsed_at":"2022-09-08T06:10:37.708Z","dependency_job_id":null,"html_url":"https://github.com/PRX/open_calais","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/PRX/open_calais","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fopen_calais","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fopen_calais/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fopen_calais/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fopen_calais/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PRX","download_url":"https://codeload.github.com/PRX/open_calais/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PRX%2Fopen_calais/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278186580,"owners_count":25944812,"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-10-03T02:00:06.070Z","response_time":53,"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":[],"created_at":"2024-12-07T15:08:20.058Z","updated_at":"2025-10-03T15:41:18.808Z","avatar_url":"https://github.com/PRX.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenCalais\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://opensource.org/licenses/MIT)\n[![Build Status](https://travis-ci.org/PRX/open_calais.svg?branch=master)](https://travis-ci.org/PRX/open_calais)\n[![Code Climate](https://codeclimate.com/github/PRX/open_calais/badges/gpa.svg)](https://codeclimate.com/github/PRX/open_calais)\n[![Coverage Status](https://coveralls.io/repos/PRX/open_calais/badge.svg?branch=master)](https://coveralls.io/r/PRX/open_calais?branch=master)\n\n_Gem Version 0.1.* supports the original OpenCalais API_\n\n_Gem Version 0.2.* now uses the upgraded API http://www.opencalais.com/_\n\n_Gem Version 0.4.* supports refinitiv API_\n\nOpen Calais is now found at: https://developers.refinitiv.com/open-permid/intelligent-tagging-restful-api\n\nIt has a new default endpoint: https://api-eit.refinitiv.com/permid/calais\n\nThis is a ruby gem to access the (formerly OpenCalais) [Refinitiv Intelligent Tagging API](https://developers.refinitiv.com/open-permid/intelligent-tagging-restful-api), using the REST API, and JSON responses.\n\nIt uses [Faraday](https://github.com/lostisland/faraday) to abstract HTTP library (defaults to use excon because it is excellent), and multi_json to abstract JSON parsing.\n\nIt returns a parsed version of the response, but the response also contains the raw response (converted from json to hashes/arrays/string/etc).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'open_calais'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install open_calais\n\n## Usage\n\nIntelligent Tagging (OpenCalais) has one main method, `enrich`, and so does the gem:\n\n```ruby\nrequire 'open_calais'\n\n# you can configure for all calls\nOpenCalais.configure do |c|\n  c.api_key = \"this is a test key\"\nend\n\n# or you can configure for a single call\nopen_calais = OpenCalais::Client.new(:api_key =\u003e 'an api key')\n\n# it returns a OpenCalais::Response instance\nresponse = open_calais.enrich('Ruby on Rails is a fantastic web framework. It uses MVC, and the Ruby programming language invented by Matz in Japan.')\n\n# which has the 'raw' response\nresponse.raw\n\n# and has been parsed a bit to get :language, :topics, :tags, :entities, :relations, :locations\n# as lists of hashes\nresponse.tags.each { |t| puts t[:name] }\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprx%2Fopen_calais","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprx%2Fopen_calais","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprx%2Fopen_calais/lists"}