{"id":25171812,"url":"https://github.com/basemax/api-sarrafchi","last_synced_at":"2026-02-15T16:04:37.935Z","repository":{"id":151535202,"uuid":"291032371","full_name":"BaseMax/API-Sarrafchi","owner":"BaseMax","description":"Sarrafchi: API and web service to get live currency rates in Free Market.","archived":false,"fork":false,"pushed_at":"2024-09-05T00:00:20.000Z","size":1101,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T11:57:23.946Z","etag":null,"topics":["api","currency-api","currency-conversion","currency-exchange-rates","currency-rates","sarrafchi"],"latest_commit_sha":null,"homepage":"https://basemax.github.io/API-Sarrafchi/example.html","language":"PHP","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/BaseMax.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,"zenodo":null}},"created_at":"2020-08-28T11:43:20.000Z","updated_at":"2024-09-05T00:00:23.000Z","dependencies_parsed_at":"2025-07-23T08:31:10.323Z","dependency_job_id":"5c528240-12b9-439d-9d64-3de725a24e3d","html_url":"https://github.com/BaseMax/API-Sarrafchi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/API-Sarrafchi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FAPI-Sarrafchi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FAPI-Sarrafchi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FAPI-Sarrafchi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FAPI-Sarrafchi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/API-Sarrafchi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FAPI-Sarrafchi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29483336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T15:33:17.885Z","status":"ssl_error","status_checked_at":"2026-02-15T15:32:53.698Z","response_time":118,"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":["api","currency-api","currency-conversion","currency-exchange-rates","currency-rates","sarrafchi"],"created_at":"2025-02-09T09:22:11.084Z","updated_at":"2026-02-15T16:04:37.905Z","avatar_url":"https://github.com/BaseMax.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Sarrafchi\n\nSarrafchi: API and web service to get live currency rates in Free Market.\n\nWatch demo at: https://basemax.github.io/API-Sarrafchi/example.html\n\n## Sarrafchi API\n\n**JSON Format:** API, Web-Service: https://api.sarrafchi.ir/rate/\n\n#### Demo in other sites\n\n[![Sarrafchi API](demo.jpg)](https://basemax.github.io/API-Sarrafchi/example.html)\n\n\n### Example\n\n```\n\u003cstyle\u003e.price-box{font-size: 13px;font-weight: 500;padding: 7px;margin-bottom: 5px;text-align: center;background: #dbd2fd;border-bottom: 1px solid #9d8eca;display: block;color: #48357f;border-radius: 50px;}\u003c/style\u003e\n\u003cdiv class=\"row\"\u003e\n    \u003cdiv class=\"col-md-4\"\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eUS Dollar: \u003c/strong\u003e \u003cspan id=\"price_usd\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eEuro: \u003c/strong\u003e \u003cspan id=\"price_euro\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eBritish Pound: \u003c/strong\u003e \u003cspan id=\"price_pound\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"col-md-4\"\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eSwiss Franc: \u003c/strong\u003e \u003cspan id=\"price_franc\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eCanadian Dollar: \u003c/strong\u003e \u003cspan id=\"price_canad\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eAustralian Dollar: \u003c/strong\u003e \u003cspan id=\"price_austr\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n    \u003c/div\u003e\n    \u003cdiv class=\"col-md-4\"\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eSwedish Krona: \u003c/strong\u003e \u003cspan id=\"price_krona\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eNorwegian Krone: \u003c/strong\u003e \u003cspan id=\"price_norwkrona\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n        \u003cdiv class=\"price-box\"\u003e\u003cstrong\u003eRussian Ruble: \u003c/strong\u003e \u003cspan id=\"price_ruble\"\u003e\u0026#8211;\u003c/span\u003e \u003csmall\u003eتومان\u003c/small\u003e\u003c/div\u003e\n    \u003c/div\u003e\n\u003c/div\u003e\n\u003cscript type=\"text/javascript\"\u003e\nvar xhttp = new XMLHttpRequest();\nxhttp.onreadystatechange = function() {\n    if(this.readyState == 4 \u0026\u0026 this.status == 200) {\n    \tlet obj = JSON.parse(this.responseText);\n    \tdocument.querySelector(\"#price_usd\").innerHTML=obj.currencies[\"US Dollar\"].sell;\n    \tdocument.querySelector(\"#price_euro\").innerHTML=obj.currencies[\"Euro\"].sell;\n    \tdocument.querySelector(\"#price_pound\").innerHTML=obj.currencies[\"British Pound\"].sell;\n    \tdocument.querySelector(\"#price_franc\").innerHTML=obj.currencies[\"Swiss Franc\"].sell;\n    \tdocument.querySelector(\"#price_canad\").innerHTML=obj.currencies[\"Canadian Dollar\"].sell;\n    \tdocument.querySelector(\"#price_austr\").innerHTML=obj.currencies[\"Australian Dollar\"].sell;\n    \tdocument.querySelector(\"#price_krona\").innerHTML=obj.currencies[\"Swedish Krona\"].sell;\n    \tdocument.querySelector(\"#price_norwkrona\").innerHTML=obj.currencies[\"Norwegian Krone\"].sell;\n    \tdocument.querySelector(\"#price_ruble\").innerHTML=obj.currencies[\"Russian Ruble\"].sell;\n    }\n};\nxhttp.open(\"GET\", \"https://api.sarrafchi.ir/rate/\", true);\nxhttp.send();\n\u003c/script\u003e\n```\n\n### Crontab\n\n##### $ crontab -l\n\n```\n*/5 * * * * php /path/to/dir/update.php\n```\n\n---------\n\n# Max Base\n\nMy nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers. ([Max Base](https://maxbase.org/))\n\n## Asrez Team\n\nA team includes some programmer, developer, designer, researcher(s) especially Max Base.\n\n[Asrez Team](https://www.asrez.com/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fapi-sarrafchi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fapi-sarrafchi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fapi-sarrafchi/lists"}