{"id":22486433,"url":"https://github.com/gnuns/allOrigins","last_synced_at":"2025-08-02T19:31:51.360Z","repository":{"id":38630806,"uuid":"51700399","full_name":"gnuns/allOrigins","owner":"gnuns","description":":alien: Pull content from any page as JSON via API","archived":false,"fork":false,"pushed_at":"2023-02-26T13:40:32.000Z","size":2735,"stargazers_count":747,"open_issues_count":36,"forks_count":146,"subscribers_count":16,"default_branch":"main","last_synced_at":"2024-12-03T19:02:01.267Z","etag":null,"topics":["api","cors","gzip","javascript","js","json","node-js","nodejs","request"],"latest_commit_sha":null,"homepage":"https://allorigins.win/","language":"JavaScript","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/gnuns.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"gnuns","patreon":"gnuns","liberapay":"gnuns","ko_fi":"gnuns","custom":["https://www.paypal.com/donate?hosted_button_id=7S3KJ8CA43DX6"]}},"created_at":"2016-02-14T15:38:55.000Z","updated_at":"2024-12-03T04:05:50.000Z","dependencies_parsed_at":"2023-02-18T02:31:08.013Z","dependency_job_id":"cd226513-27e3-49d0-adb7-f5f0822de824","html_url":"https://github.com/gnuns/allOrigins","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/gnuns%2FallOrigins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuns%2FallOrigins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuns%2FallOrigins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnuns%2FallOrigins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnuns","download_url":"https://codeload.github.com/gnuns/allOrigins/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228500109,"owners_count":17930001,"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":["api","cors","gzip","javascript","js","json","node-js","nodejs","request"],"created_at":"2024-12-06T17:14:34.525Z","updated_at":"2024-12-06T17:15:49.485Z","avatar_url":"https://github.com/gnuns.png","language":"JavaScript","readme":"All Origins\n=======\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgnuns%2FAllOrigins.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgnuns%2FAllOrigins?ref=badge_shield)\n[![Build Status](https://travis-ci.com/gnuns/allOrigins.svg?branch=main)](https://app.travis-ci.com/github/gnuns/allOrigins)\n[![Donate!](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/donate?hosted_button_id=7S3KJ8CA43DX6)\n\nPull contents from any page via API (as JSON/P or raw) and avoid [Same-origin policy](https://en.wikipedia.org/wiki/Same-origin_policy) problems.\n\n\n----\n\nA free and open source javascript clone of [AnyOrigin](https://web.archive.org/web/20180807170914/http://anyorigin.com/), inspired by [Whatever Origin](http://WhateverOrigin.org), but with support to gzipped pages.\n\n### Examples\n\nTo `fetch` data from http://wikipedia.org:\n\n```js\nfetch(`https://api.allorigins.win/get?url=${encodeURIComponent('https://wikipedia.org')}`)\n  .then(response =\u003e {\n    if (response.ok) return response.json()\n    throw new Error('Network response was not ok.')\n  })\n  .then(data =\u003e console.log(data.contents));\n```\n\nOr with jQuery\n\n```js\n$.getJSON('https://api.allorigins.win/get?url=' + encodeURIComponent('https://wikipedia.org'), function (data) {\n    alert(data.contents);\n});\n```\n### Options\n\n###### charset\n**Description:** Set the response character encoding (charset)  \\\n**Example:** `https://api.allorigins.win/get?charset=ISO-8859-1\u0026url=https://pt.wikipedia.org/`\n\n\n###### raw\n**Description:** Get the raw contents ([CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS))  \\\n**Example:** `https://api.allorigins.win/raw?url=https://example.org/`\n\n###### callback\n**Description:** Get a [JSONP](https://www.w3schools.com/js/js_json_jsonp.asp) response  \\\n**Example:** `https://api.allorigins.win/get?callback=myFunc\u0026url=https://example.org/`\n\n\n### On your own server\n```sh\n\n# Clone the repo\ngit clone https://github.com/gnuns/AllOrigins\n\n# Install dependencies\ncd AllOrigins\nnpm install\n\n# Fire it up!\nnpm start # the default port is 1458\n```\n\n\n## License\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fgnuns%2FAllOrigins.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fgnuns%2FAllOrigins?ref=badge_large)\n","funding_links":["https://github.com/sponsors/gnuns","https://patreon.com/gnuns","https://liberapay.com/gnuns","https://ko-fi.com/gnuns","https://www.paypal.com/donate?hosted_button_id=7S3KJ8CA43DX6"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnuns%2FallOrigins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnuns%2FallOrigins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnuns%2FallOrigins/lists"}