{"id":28564916,"url":"https://github.com/basemax/okala-store-ids","last_synced_at":"2025-06-10T14:03:02.650Z","repository":{"id":296472143,"uuid":"993266479","full_name":"BaseMax/okala-store-ids","owner":"BaseMax","description":"A PHP script designed to systematically query the Okala API and extract a comprehensive list of valid store IDs. By automating the retrieval of store details, it enables users to efficiently compile and maintain an up-to-date dataset of active Okala stores for analysis, integration, or further processing.","archived":false,"fork":false,"pushed_at":"2025-05-30T23:35:01.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-09T22:47:05.402Z","etag":null,"topics":["crawler","curl","id","ids","ir","iran","okala","okala-store","okala-store-id","php","store","store-okala"],"latest_commit_sha":null,"homepage":"","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":"2025-05-30T13:50:55.000Z","updated_at":"2025-05-30T23:35:04.000Z","dependencies_parsed_at":"2025-05-31T10:15:07.685Z","dependency_job_id":"a4b5409c-8ee7-453d-b8f3-b65118a3fbbd","html_url":"https://github.com/BaseMax/okala-store-ids","commit_stats":null,"previous_names":["basemax/okala-store-ids"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-store-ids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-store-ids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-store-ids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-store-ids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/okala-store-ids/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2Fokala-store-ids/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259088481,"owners_count":22803642,"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":["crawler","curl","id","ids","ir","iran","okala","okala-store","okala-store-id","php","store","store-okala"],"created_at":"2025-06-10T14:01:08.298Z","updated_at":"2025-06-10T14:03:02.644Z","avatar_url":"https://github.com/BaseMax.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Okala Store IDs Collector\n\nA PHP script designed to systematically query the Okala API and extract a comprehensive list of valid store IDs. By automating the retrieval of store details, it enables users to efficiently compile and maintain an up-to-date dataset of active Okala stores for analysis, integration, or further processing.\n\n\u003e This repository contains a PHP script to fetch and collect valid store IDs from the Okala API.\n\n---\n\n## About\n\nThe script `okala-get-store-details.php` iterates through a range of store IDs and queries the Okala API to retrieve store details. Valid store IDs are saved to a file named `store-ids.txt`. This can be useful for anyone who wants to gather a list of active store IDs from Okala's legacy store endpoint.\n\n---\n\n## Features\n\n- Automatically loops through store IDs from 2000 up to 10399.\n- Makes authenticated API requests with a Bearer token.\n- Checks for valid store responses and saves valid store IDs to a file.\n- Handles HTTP errors and JSON decoding errors gracefully.\n- Includes delay between requests to avoid API rate limiting.\n\n---\n\n## What is Okala?\n\n[Okala](https://www.okala.com/) is a popular online grocery shopping platform in Iran. It provides users with a convenient way to browse, order, and have groceries delivered directly to their doorstep. Okala connects customers with a wide network of local stores and supermarkets, offering a variety of products ranging from fresh produce to household essentials.\n\nThe platform emphasizes speed, reliability, and a user-friendly experience, making it one of the leading players in the Iranian e-commerce grocery market.\n\n---\n\n## Requirements\n\n- PHP 7.0 or higher (with cURL extension enabled).\n- Valid API Bearer token from Okala (replace the placeholder token in the script).\n\n---\n\n## Usage\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/BaseMax/okala-store-ids.git\n   cd okala-store-ids\n   ```\n\n2. Edit `okala-get-store-details.php` to update the `$token` variable with your valid API token.\n\n3. Run the script from the command line or via your web server:\n\n   ```php\n   php okala-get-store-details.php\n   ```\n\n4. Valid store IDs will be appended to the file store-ids.txt.\n\n## Notes\n\nThe script uses a hardcoded latitude and longitude in the API URL; modify if necessary.\n\nAdjust the range `$storeId = 2000` to `$storeId \u003c 10400` as needed.\n\nConsider adding error handling or logging enhancements based on your needs.\n\n## Contact\n\nFor any questions or issues, please open an issue in this repository.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\nHappy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fokala-store-ids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fokala-store-ids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fokala-store-ids/lists"}