{"id":36496879,"url":"https://github.com/shitpostingio/analysis-api","last_synced_at":"2026-01-12T02:04:43.719Z","repository":{"id":40280867,"uuid":"302936187","full_name":"shitpostingio/analysis-api","owner":"shitpostingio","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-16T23:59:25.000Z","size":67,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-07-27T22:37:13.427Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/shitpostingio.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}},"created_at":"2020-10-10T15:50:52.000Z","updated_at":"2021-01-06T18:31:03.000Z","dependencies_parsed_at":"2022-08-09T15:53:33.189Z","dependency_job_id":null,"html_url":"https://github.com/shitpostingio/analysis-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/shitpostingio/analysis-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shitpostingio%2Fanalysis-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shitpostingio%2Fanalysis-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shitpostingio%2Fanalysis-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shitpostingio%2Fanalysis-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shitpostingio","download_url":"https://codeload.github.com/shitpostingio/analysis-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shitpostingio%2Fanalysis-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"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":"2026-01-12T02:02:52.824Z","updated_at":"2026-01-12T02:04:43.701Z","avatar_url":"https://github.com/shitpostingio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Analysis API\n\nREST-powered API for analyzing media and text.\n\n## Endpoints\n\n- Media analysis `\u003cbind-address\u003e/analysis/{reqType}/{type}/{id}`\n- Text analysis `\u003cbind-address\u003e/analysis/{reqType}`\n- Health check `\u003cbind-address\u003e/healthy`\n\n## Request types\n\n- Complete media analysis: `complete`\n- Media fingerprinting: `fingerprinting`\n- Media NSFW recognition: `nsfw`\n- Gibberish text analysis: `gibberish`\n\n## Returned data\n\nThe data returned by the server when analyzing media is in the form:\n\n```go\ntype Analysis struct {\n    Fingerprint            FingerprintResponse\n    NSFW                   NSFWResponse\n    FingerprintErrorString string\n    NSFWErrorString        string\n}\n\n```\n\nThe data returned by the server when analyzing text is in the form:\n\n```go\ntype GibberishResponse struct {\n\tIsGibberish bool\n}\n```\n\n## Environment options\n\n- API bind address and port: `API_BIND_ADDRESS` (defaults to `localhost:9999`).\n- Path to configuration file: `API_CFG_PATH` (defaults to `config.toml`).\n\n## Configuration file structure\n\n```toml\nfingerprintendpoint = \"http://localhost:10000/fingerprinting\"\nnsfwendpoint = \"http://localhost:10001/nsfw\"\ngibberishendpoint   = \"http://localhost:10002/gibberish\"\ntesting = \u003ctesting-status\u003e\n\n[database]\n  authsource = \"authsource\"\n  collectionname = \"collectionname\"\n  databasename = \"databasename\"\n  hosts = [\"localhost:27017\"]\n  password = \"password\"\n  replicasetname = \"replicasetname\"\n  username = \"username\"\n\n[redis]\n    Address = \"localhost:6379\"\n    NSFWDatabase = 2\n    FingerprintDatabase = 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshitpostingio%2Fanalysis-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshitpostingio%2Fanalysis-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshitpostingio%2Fanalysis-api/lists"}