{"id":16419642,"url":"https://github.com/foo290/flat-webpage-api","last_synced_at":"2025-02-24T13:41:17.138Z","repository":{"id":47620766,"uuid":"387541414","full_name":"foo290/flat-webpage-api","owner":"foo290","description":"given an url, will return json ","archived":false,"fork":false,"pushed_at":"2021-08-21T10:20:35.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T21:47:40.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/foo290.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}},"created_at":"2021-07-19T17:16:48.000Z","updated_at":"2021-08-21T10:20:38.000Z","dependencies_parsed_at":"2022-09-12T02:00:17.761Z","dependency_job_id":null,"html_url":"https://github.com/foo290/flat-webpage-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo290%2Fflat-webpage-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo290%2Fflat-webpage-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo290%2Fflat-webpage-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo290%2Fflat-webpage-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foo290","download_url":"https://codeload.github.com/foo290/flat-webpage-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240491570,"owners_count":19809977,"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","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-10-11T07:25:25.514Z","updated_at":"2025-02-24T13:41:17.114Z","avatar_url":"https://github.com/foo290.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flat-webpage-api\ngive a url, get a json \n\n## API Request\n\n**Endpoint:**\n```\nhttp://127.0.0.1:8000/api\n```\n\n**Request format**\n\n```\n{\n  \"url\": \"any url here\"\n}\n```\n\n**Response format**\n\n```\n{\n  \"title\": \"...\",\n  \"h1\": [\n    ...\n  ],\n  \"h2\": [\n    ...  \n  ]\n  \n  ...\n}\n```\n\n\n### Example:\n\n**Request**\n\n```\n{\n  \"url\": \"https://en.wikipedia.org/wiki/Machine_learning\"\n}\n```\n\n\n**Response:**\n```\nHTTP 200 OK\nAllow: POST, OPTIONS\nContent-Type: application/json\nVary: Accept\n\n{\n    \"title\": \"Machine learning - Wikipedia\",\n    \"h1\": [\n        \"Machine learning\"\n    ],\n    \"h2\": [\n        \"Contents\",\n        \"Overview[edit]\",\n        \"History and relationships to other fields[edit]\",\n        ...\n    ],\n    \"h3\": [\n        \"Artificial intelligence[edit]\",\n        \"Data mining[edit]\",\n        \"Optimization[edit]\",\n        ...\n        \n    ],\n    \"h4\": [\n        \"Self learning[edit]\",\n        \"Feature learning[edit]\",\n        \"Sparse dictionary learning[edit]\",\n        ...\n    ],\n    \"h5\": [],\n    \"p\": [\n        \"Machine learning (ML) is the study of computer algorithms that improve \n        automatically through experience and by the use of data.[1]...\n        ...\n        ]\n     \"a\": [\n        {\n            \"Jump to navigation\": \"#mw-head\"\n        },\n        {\n            \"Jump to search\": \"#searchInput\"\n        },\n        {\n            \"Machine Learning (journal)\": \"/wiki/Machine_Learning_(journal)\"\n        },\n        ...\n        ]\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo290%2Fflat-webpage-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoo290%2Fflat-webpage-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo290%2Fflat-webpage-api/lists"}