{"id":31919513,"url":"https://github.com/techwithty/crime_data","last_synced_at":"2025-10-23T20:38:51.108Z","repository":{"id":312547528,"uuid":"1047858456","full_name":"TechWithTy/crime_data","owner":"TechWithTy","description":"Crime data API integration for real estate risk analysis.","archived":false,"fork":false,"pushed_at":"2025-08-31T11:56:13.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-31T13:24:45.763Z","etag":null,"topics":["api","crime","fastapi","geospatial","python","real-estate"],"latest_commit_sha":null,"homepage":"https://www.cybershoptech.com","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/TechWithTy.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T11:54:16.000Z","updated_at":"2025-08-31T11:56:16.000Z","dependencies_parsed_at":"2025-08-31T13:24:50.085Z","dependency_job_id":"a9d51fdd-eb6e-44e8-94e6-5c7e6ec3097a","html_url":"https://github.com/TechWithTy/crime_data","commit_stats":null,"previous_names":["techwithty/crime_data"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TechWithTy/crime_data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fcrime_data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fcrime_data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fcrime_data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fcrime_data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechWithTy","download_url":"https://codeload.github.com/TechWithTy/crime_data/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechWithTy%2Fcrime_data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017053,"owners_count":26085951,"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-13T02:00:06.723Z","response_time":61,"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":["api","crime","fastapi","geospatial","python","real-estate"],"created_at":"2025-10-13T21:45:01.315Z","updated_at":"2025-10-13T21:45:08.141Z","avatar_url":"https://github.com/TechWithTy.png","language":"Python","readme":"# Crime Data Integration (Provider-agnostic)\n\nProxies a provider-agnostic crime data API (e.g., SpotCrime-like) through our backend.\n\n## Environment Variables\n\n- CRIME_DATA_BASE_URL (required)\n- CRIME_DATA_API_KEY (optional; used as Bearer in Authorization header)\n- CRIME_DATA_TIMEOUT (default: 15)\n\nExample .env:\nCRIME_DATA_BASE_URL=https://api.your-crime-provider.com\n# Optional\nCRIME_DATA_API_KEY=your_key_here\nCRIME_DATA_TIMEOUT=15\n\n## Endpoints\n\n- GET /crime-data/health\n  - Returns: { healthy, base_url, has_api_key }\n\n- GET /crime-data/{path}\n  - Proxies GET to: {CRIME_DATA_BASE_URL}/{path}\n  - Forwards query params verbatim.\n\nExamples:\ncurl \"http://localhost:8000/crime-data/health\"\n\ncurl \"http://localhost:8000/crime-data/incidents?lat=47.60\u0026lon=-122.33\u0026radius=0.05\"\n\n## Internal Structure\n\n- client.py: [CrimeDataClient](cci:2://file:///c:/Users/tyriq.DESKTOP-U7P592K/OneDrive/Documents/Github-New/deal-scale-backend-autoscaling/backend/app/core/third_party_integrations/crime_data/client.py:7:0-34:34) composes URL from base+path, adds optional `Authorization: Bearer \u003ckey\u003e`.\n- api/proxy.py: Router (`/crime-data/health`, `/{path}`), minimal utility wrapper.\n- api/routes.py: Aggregates proxy sub-router without double prefix.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwithty%2Fcrime_data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechwithty%2Fcrime_data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechwithty%2Fcrime_data/lists"}