{"id":24302821,"url":"https://github.com/narhen/python-api-search","last_synced_at":"2026-06-05T10:31:53.656Z","repository":{"id":50211524,"uuid":"95134757","full_name":"narhen/python-api-search","owner":"narhen","description":"An experimental search API for NDLA","archived":false,"fork":false,"pushed_at":"2022-12-07T23:58:07.000Z","size":12,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T00:19:44.899Z","etag":null,"topics":["dockerfile","falcon","ndla","pypy","python","requests","search"],"latest_commit_sha":null,"homepage":"","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/narhen.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":"2017-06-22T16:21:46.000Z","updated_at":"2017-06-27T21:56:20.000Z","dependencies_parsed_at":"2023-01-24T01:00:41.723Z","dependency_job_id":null,"html_url":"https://github.com/narhen/python-api-search","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/narhen%2Fpython-api-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narhen%2Fpython-api-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narhen%2Fpython-api-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narhen%2Fpython-api-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narhen","download_url":"https://codeload.github.com/narhen/python-api-search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242225876,"owners_count":20092665,"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":["dockerfile","falcon","ndla","pypy","python","requests","search"],"created_at":"2025-01-17T00:19:30.729Z","updated_at":"2025-03-06T14:26:45.821Z","avatar_url":"https://github.com/narhen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# python-api-search\n\n\n\n## How to run\n\nRun API server\n```bash\n$ pip install virtualenv\n$ virtualenv apisrc\n$ source apisrc/bin/activate\n$ pip install -r requirements.txt\n$ ARTICLE_API_URL=http://0:30002 gunicorn --chdir api-search/ --reload -b :1234 main:app\n```\n\nIn another terminal\n```bash\n$ curl 0:1234\n```\n\n## Examples\n\n`GET /?query=norge\u0026page-size=2`\n```json\n[\n  {\n    \"type\": \"articles\",\n    \"results\": [\n      {\n        \"introduction\": \"Innovasjon Norge har ansvar for gjennomføringen...\",\n        \"id\": \"14074\",\n        \"title\": \"Innovasjon Norge\"\n      },\n      {\n        \"introduction\": \"Trykk på lenkene under her for å lese om ...\",\n        \"id\": \"15617\",\n        \"title\": \"Filmutdanning i Norge\"\n      }\n    ]\n  },\n  {\n    \"type\": \"learningpaths\",\n    \"results\": [\n      {\n        \"introduction\": \"\u003cp\u003eEtter at du har fullført denne læringsstien, ...\",\n        \"id\": 56,\n        \"title\": \"Samfunnsforhold og statsutvikling, 700-1500\"\n      },\n      {\n        \"introduction\": \"\u003cp\u003eNår du har gjennomført ...\",\n        \"id\": 2,\n        \"title\": \"Historia og fortellingene om Norge\"\n      }\n    ]\n  }\n]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarhen%2Fpython-api-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarhen%2Fpython-api-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarhen%2Fpython-api-search/lists"}