{"id":24685214,"url":"https://github.com/guillim/sentiment_analysis_api","last_synced_at":"2026-05-16T22:38:38.895Z","repository":{"id":128463165,"uuid":"187013155","full_name":"guillim/sentiment_analysis_api","owner":"guillim","description":"A small api for sentiment analysis of small english and french texts, and more languages, to be used as a microservice","archived":false,"fork":false,"pushed_at":"2019-05-16T12:12:48.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T20:46:47.288Z","etag":null,"topics":["api","english","french","microservice","python","sentiment-analysis","textblob"],"latest_commit_sha":null,"homepage":"http://guillim-sentiment-analysis-api.herokuapp.com/documentation/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guillim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-05-16T11:21:16.000Z","updated_at":"2020-03-28T13:40:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"44d52530-0c62-4384-911d-07ae162ea315","html_url":"https://github.com/guillim/sentiment_analysis_api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guillim/sentiment_analysis_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillim%2Fsentiment_analysis_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillim%2Fsentiment_analysis_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillim%2Fsentiment_analysis_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillim%2Fsentiment_analysis_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guillim","download_url":"https://codeload.github.com/guillim/sentiment_analysis_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillim%2Fsentiment_analysis_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33121425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","english","french","microservice","python","sentiment-analysis","textblob"],"created_at":"2025-01-26T15:18:18.477Z","updated_at":"2026-05-16T22:38:38.890Z","avatar_url":"https://github.com/guillim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentiment analysis API\n\nA small api for sentiment analysis (TextBlob in the background) encapsulated in docker.\n\n## Live demo\n\nCheck this [demo](http://guillim-sentiment-analysis-api.herokuapp.com/documentation/) to see this tool in action !\n(Thanks Heroku for hosting it)\n\n\n\n## Install\n\n\n```sh\ngit clone https://github.com/guillim/sentiment_analysis_api.git api\n```\n\n\n## Launch\n\n**You must have docker installed to make this work**\n\n```\ncd api\nmake up\n```\n\nIn your browser, go to [localhost:5000/status](http://localhost:5000/status) and it should print\n\n```\n{\n    \"status\":\"connected\"\n}\n```\n\n\n## Use\n\nThen you can use the API to send some text and receive the sentiment analysis. We present two ways: Curl and Swagger. Feel free to use postman or anything else to make your calls.\n\n#### Curl\n\n```bash\ncurl -X POST \\\n  http://guillim-sentiment-analysis-api.herokuapp.com/sentiment \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\ \n  -d '{ \n        \"analyzer\": \"PatternAnalyzer\", \n\t\"text\": \"Paris is a nice city to live in. I like New york as well, but Paris has a charm you cannot find elsewhere\"\n  }'  \n```\n\n\nReturns:\n\n\n```\n{\n  \"sentiment\": \"positive\",\n  \"sentiment_score\": [\n    0.2909090909090909,\n    0.6515151515151515\n  ],\n  \"detected_language\": \"en\",\n  \"message\": \"\"\n}\n```\n\n#### Swagger\n\nGo to [localhost:5000/documentation](http://localhost:5000/documentation) and you will have an interactive tool for testing\n\n## Documentation\n\nGo to [localhost:5000/documentation](http://localhost:5000/documentation) for any question about paramters availables, options etc...\n\n## Deploy on Heroku\n\nGo to the ``` Heroku Container Registry ``` option for the available commands to trigger from your local folder. Can't use Git integration since it is a docker-compose based app\n\n```bash\nheroku container:login  \nheroku container:push web  \nheroku container:release web\n```\n\n## License\n\nCopyright © 2019 Guillaume Lancrenon\nDistributed under MIT licence.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillim%2Fsentiment_analysis_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguillim%2Fsentiment_analysis_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillim%2Fsentiment_analysis_api/lists"}