{"id":20670890,"url":"https://github.com/orsifrancesco/500px-json-rss-feed-api","last_synced_at":"2026-01-24T17:32:34.772Z","repository":{"id":38025242,"uuid":"506394963","full_name":"orsifrancesco/500px-json-rss-feed-api","owner":"orsifrancesco","description":"Snippet of code to get your images from 500px.","archived":false,"fork":false,"pushed_at":"2022-06-22T21:01:03.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T20:19:53.676Z","etag":null,"topics":["500px","500px-api","api","feed","json","no-api","rss"],"latest_commit_sha":null,"homepage":"","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/orsifrancesco.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":"2022-06-22T20:24:05.000Z","updated_at":"2022-08-09T19:26:47.000Z","dependencies_parsed_at":"2022-09-16T18:40:32.446Z","dependency_job_id":null,"html_url":"https://github.com/orsifrancesco/500px-json-rss-feed-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/orsifrancesco/500px-json-rss-feed-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2F500px-json-rss-feed-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2F500px-json-rss-feed-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2F500px-json-rss-feed-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2F500px-json-rss-feed-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orsifrancesco","download_url":"https://codeload.github.com/orsifrancesco/500px-json-rss-feed-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orsifrancesco%2F500px-json-rss-feed-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28732609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["500px","500px-api","api","feed","json","no-api","rss"],"created_at":"2024-11-16T20:23:58.306Z","updated_at":"2026-01-24T17:32:34.750Z","avatar_url":"https://github.com/orsifrancesco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 500px-json-rss-feed-api\n\n## Code and example\n\nSnippet of code to get your images from 500px. [Click here for a demo](https://orsifrancesco.github.io/500px-json-rss-feed-api/).\n\nYou can try with your images from 500px [#addingYour500pxUsername](https://orsifrancesco.github.io/500px-json-rss-feed-api/#orsifrancesco) at the end of the url.\n\n```js\n\nasync function fetchData(username = '') {\n    if (!username) return []\n    const response = await fetch(`https://500px.com/${username}/rss`);\n    let data = await response.text();\n    data = data.replace(/\\t/g, '');\n    const items = data.split('\u003citem\u003e');\n    let json = [];\n    items.forEach(item =\u003e {\n        const title = item.match(/\u003ctitle\u003e(.*?)\u003c\\/title\u003e/g)?.map((val) =\u003e val?.replace(/\u003c\\/?title\u003e/g, ''))?.[0]\n        const link = item.match(/\u003clink\u003e(.*?)\u003c\\/link\u003e/g)?.map((val) =\u003e val?.replace(/\u003c\\/?link\u003e/g, ''))?.[0]\n        const pubDate = item.match(/\u003cpubDate\u003e(.*?)\u003c\\/pubDate\u003e/g)?.map((val) =\u003e val?.replace(/\u003c\\/?pubDate\u003e/g, ''))?.[0]\n        const img = item.match(/\u003cimg src=\"(.*?)\"\u003e/g)?.map((val) =\u003e val.replace(/\u003cimg src=\"/g, '')?.replace(/\"\u003e/g, ''))?.[0]\n        if (pubDate) json.push({ title, link, pubDate, img, epoch: parseInt(new Date(pubDate).getTime() / 1000) })\n    })\n    return json;\n}\n\nfetchData('orsifrancesco'); // \u003c!-- your username here!!!!\n\n```\n\n## XML response from 500px converted in JSON\n\n```json\n\n[\n  {\n    \"title\": \"Ponte Vecchio, Florence\",\n    \"link\": \"https://500px.com/photo/201381977/Ponte-Vecchio-Florence-by-Francesco-Orsi\",\n    \"pubDate\": \"Sat, 4 Mar 2017 23:06:48 +0000\",\n    \"img\": \"https://drscdn.500px.org/photo/201381977/q%3D50_h%3D450/v2?sig=3a43a3510603a53aa810cdeeb2fa159d06e2aa6c95778f822fe5b1139c147ea5\",\n    \"epoch\": 1488668808\n  },\n  {\n    \"title\": \"Isabella\",\n    \"link\": \"https://500px.com/photo/201380519/Isabella-by-Francesco-Orsi\",\n    \"pubDate\": \"Sat, 4 Mar 2017 22:54:15 +0000\",\n    \"img\": \"https://drscdn.500px.org/photo/201380519/q%3D50_h%3D450/v2?sig=beaec82f2dc9859ba649aafcd9d67a9a21e61fff3e42c6211d15d885f1052d4b\",\n    \"epoch\": 1488668055\n  }\n]\n\n```\n\nIf you need additional code for your UI rendering, everything is included in `index.html` file.\n\n## Bonus file PHP\n\n..if you are looking for the same JSON result in PHP you can get the same code in `bonus.php` file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsifrancesco%2F500px-json-rss-feed-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forsifrancesco%2F500px-json-rss-feed-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forsifrancesco%2F500px-json-rss-feed-api/lists"}