{"id":22200386,"url":"https://github.com/jayam04/simplegraphs","last_synced_at":"2026-05-14T13:31:12.112Z","repository":{"id":247616937,"uuid":"826357204","full_name":"jayam04/simplegraphs","owner":"jayam04","description":"Generates Simple Graph from CSV file or request data.","archived":false,"fork":false,"pushed_at":"2024-07-09T15:29:59.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T23:49:09.078Z","etag":null,"topics":["api","chart","csv","flask","graph"],"latest_commit_sha":null,"homepage":"https://simplegraphs.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jayam04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-07-09T14:52:09.000Z","updated_at":"2024-07-09T15:33:35.000Z","dependencies_parsed_at":"2024-07-09T19:28:53.103Z","dependency_job_id":null,"html_url":"https://github.com/jayam04/simplegraphs","commit_stats":null,"previous_names":["jayam04/simplegraphs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jayam04/simplegraphs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayam04%2Fsimplegraphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayam04%2Fsimplegraphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayam04%2Fsimplegraphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayam04%2Fsimplegraphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jayam04","download_url":"https://codeload.github.com/jayam04/simplegraphs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jayam04%2Fsimplegraphs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33026771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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","chart","csv","flask","graph"],"created_at":"2024-12-02T15:26:29.585Z","updated_at":"2026-05-14T13:31:11.184Z","avatar_url":"https://github.com/jayam04.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleGraphs API\n\nSimpleGraphs is a user-friendly API that allows you to generate graphs from CSV files or JSON data without the need to set up your own server. Simply send your data to our endpoint, and receive a beautifully rendered graph in return.\n\n## Features\n\n- Generate graphs from CSV files or JSON data\n- Support for multiple data series in a single graph\n- API key authentication for secure access\n- Returns graphs as PNG images\n\n## API Endpoint\n\nThe base URL for all API requests is:\n\n```text\nhttps://api.simplegraphs.crimsontwilight.in\n```\n\nAPI endpoints can be found in [API Reference](docs/endpoints.md).\n\n## Authentication\n\nAll requests to the SimpleGraphs API require an API key. Currently, `TESTAPI` is the only valid API key and can be used for freely.\n\n## Usage\n\n### Generating a Graph\n\nTo generate a graph, send a POST request to the `/plot` endpoint.\n\n#### Endpoint\n\n```text\nPOST https://api.simplegraphs.crimsontwilight.in/plot\n```\n\n#### Request\n\nYou can send data in two formats:\n\n1. CSV File Upload:\n   - Content-Type: `multipart/form-data`\n   - Body:\n     - `file`: Your CSV file\n     - `api_key`: Your API key\n\n2. JSON Payload:\n   - Content-Type: `application/json`\n   - Body:\n\n     ```json\n     {\n       \"api_key\": \"Your API key\",\n       \"data\": [\n         [\"x_axis\", \"series1\", \"series2\", ...],\n         [x1, y1_1, y1_2, ...],\n         [x2, y2_1, y2_2, ...],\n         ...\n       ]\n     }\n     ```\n\n#### Response\n\n- Content-Type: `image/png`\n- Body: PNG image of the generated graph\n\n### Examples\n\n1. Using cURL with a CSV file:\n\n```bash\ncurl -X POST -H \"Content-Type: multipart/form-data\" -F \"file=@path/to/your/file.csv\" -F \"api_key=YOUR_API_KEY\" https://api.simplegraphs.crimsontwilight.in/plot --output graph.png\n```\n\n1. Using cURL with JSON data:\n\n```bash\ncurl -X POST -H \"Content-Type: application/json\" -d '{\"api_key\": \"YOUR_API_KEY\", \"data\": [[\"Date\", \"Value1\", \"Value2\"], [\"2023-01-01\", 10, 20], [\"2023-01-02\", 15, 25], [\"2023-01-03\", 12, 22]]}' https://api.simplegraphs.crimsontwilight.in/plot --output graph.png\n```\n\n1. Using Python with `requests` library:\n\n```python\nimport requests\n\n# For CSV file upload\nfiles = {'file': open('path/to/your/file.csv', 'rb')}\ndata = {'api_key': 'YOUR_API_KEY'}\nresponse = requests.post('https://api.simplegraphs.crimsontwilight.in/plot', files=files, data=data)\n\n# For JSON payload\njson_data = {\n    'api_key': 'YOUR_API_KEY',\n    'data': [\n        ['Date', 'Value1', 'Value2'],\n        ['2023-01-01', 10, 20],\n        ['2023-01-02', 15, 25],\n        ['2023-01-03', 12, 22]\n    ]\n}\nresponse = requests.post('https://api.simplegraphs.crimsontwilight.in/plot', json=json_data)\n\n# Save the graph\nif response.status_code == 200:\n    with open('graph.png', 'wb') as f:\n        f.write(response.content)\nelse:\n    print(f\"Error: {response.status_code}, {response.text}\")\n```\n\n## Error Handling\n\nThe API uses standard HTTP response codes to indicate the success or failure of requests. In case of an error, the response will include a JSON object with more details about the error.\n\n## Rate Limiting\n\nTo ensure fair usage, API requests are subject to rate limiting.\n\n## License\n\nSimpleGraphs API is licensed under [GNU General Public License v3.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayam04%2Fsimplegraphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjayam04%2Fsimplegraphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjayam04%2Fsimplegraphs/lists"}