{"id":31225248,"url":"https://github.com/meetsohail/pexels-api-py","last_synced_at":"2025-10-23T20:34:11.991Z","repository":{"id":57452026,"uuid":"398289306","full_name":"meetsohail/pexels-api-py","owner":"meetsohail","description":"A simple python library for Pexels.com. This package covers, search photos, curated photos, and get an individual photo as well as search videos, popular videos, and individual videos.","archived":false,"fork":false,"pushed_at":"2022-02-07T10:41:48.000Z","size":22,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-11T11:16:45.512Z","etag":null,"topics":["pexels","pexels-api","photos","python","python-library","videos"],"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/meetsohail.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":"2021-08-20T13:41:26.000Z","updated_at":"2024-07-18T02:32:14.000Z","dependencies_parsed_at":"2022-09-02T06:44:03.625Z","dependency_job_id":null,"html_url":"https://github.com/meetsohail/pexels-api-py","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/meetsohail/pexels-api-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetsohail%2Fpexels-api-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetsohail%2Fpexels-api-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetsohail%2Fpexels-api-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetsohail%2Fpexels-api-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meetsohail","download_url":"https://codeload.github.com/meetsohail/pexels-api-py/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetsohail%2Fpexels-api-py/sbom","scorecard":{"id":634827,"data":{"date":"2025-08-11","repo":{"name":"github.com/meetsohail/pexels-api-py","commit":"938ca23dca41228c482242c6f4e8e9d27a5586a2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T08:50:59.871Z","repository_id":57452026,"created_at":"2025-08-21T08:50:59.871Z","updated_at":"2025-08-21T08:50:59.871Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276329465,"owners_count":25623326,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["pexels","pexels-api","photos","python","python-library","videos"],"created_at":"2025-09-22T00:59:02.515Z","updated_at":"2025-09-22T00:59:05.090Z","avatar_url":"https://github.com/meetsohail.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Pexels.com API Python Library!\n\nAn easy library to use pexels api.\n\nOfficial Documenation: https://www.pexels.com/api/documentation/\nAPI Key: API Key can be generated from official website of Pexels.com (https://www.pexels.com/api/)\n## Installation\n\n```pip install pexels-api-py```\n\n## Usage\n\n### ***Photos***\n\n#### Photos \u0026 Videos Parameters\n\u003e - ***query***\n\u003e   (*string - required*)  \n\u003e\n\u003e   The search query. `Ocean`, `Tigers`, `Pears`, etc.\n\u003e \n\u003e - ***orientation***\n\u003e   (*string - optional*)  \n\u003e\n\u003e   Desired photo orientation. The current supported orientations are: `landscape`, `portrait` or `square`.\n\u003e \n\u003e - ***size***\n\u003e   (*string - optional*) \n\u003e\n\u003e   Minimum photo size. The current supported sizes are: `large`(24MP), `medium`(12MP) or `small`(4MP).\n\u003e \n\u003e - ***color***\n\u003e     (*string - optional*)\n\u003e\n\u003e     Desired photo color. Supported colors:  `red`,  `orange`,  `yellow`,  `green`,  `turquoise`,  `blue`,  `violet`,  `pink`, \n\u003e `brown`,  `black`,  `gray`,  `white`  or any hexidecimal color code\n\u003e (eg.  `#ffffff`).\n\u003e \n\u003e - ***locale***\n\u003e     (*string - optional*)\n\u003e\n\u003e     The locale of the search you are performing. The current supported locales are:  `'en-US'`  `'pt-BR'`  `'es-ES'`  `'ca-ES'`  `'de-DE'` \n\u003e `'it-IT'`  `'fr-FR'`  `'sv-SE'`  `'id-ID'`  `'pl-PL'`  `'ja-JP'` \n\u003e `'zh-TW'`  `'zh-CN'`  `'ko-KR'`  `'th-TH'`  `'nl-NL'`  `'hu-HU'` \n\u003e `'vi-VN'`  `'cs-CZ'`  `'da-DK'`  `'fi-FI'`  `'uk-UA'`  `'el-GR'` \n\u003e `'ro-RO'`  `'nb-NO'`  `'sk-SK'`  `'tr-TR'`  `'ru-RU'`.\n\u003e \n\u003e - ***page***\n\u003e     (*integer - optional*) \t\n\u003e  \n\u003e     The page number you are requesting.  `Default: 1`\n\u003e \t\n\u003e - ***per_page***\n\u003e     (*integer - optional*)\n\u003e\n\u003e     The number of results you are requesting per page.  `Default: 15`  `Max: 80`\n\n#### Search Photos\n\n```python\nfrom pexelsapi.pexels import Pexels\npexel = Pexels('API_KEY')\nsearch_photos = pexel.search_photos(query='ocean', orientation='', size='', color='', locale='', page=1, per_page=15)\nprint(search_photos)\n```\n#### Curated Photos\n```python\nfrom pexelsapi.pexels import Pexels\npexel = Pexels('API_KEY')\ncurated_photos = pexel.curated_photos(page=1, per_page=15)\nprint(curated_photos)\n```\n#### Get Photo\n```python\nfrom pexelsapi.pexels import Pexels\npexel = Pexels('API_KEY')\nget_photo = pexel.get_photo(photo_id=10)\nprint(get_photo)\n```\n### ***Videos***\n\n#### Search Videos\n```python\nfrom pexelsapi.pexels import Pexels\npexel = Pexels('API_KEY')\nsearch_videos = pexel.search_videos(query='ocean', orientation='', size='', color='', locale='', page=1, per_page=15)\nprint(search_videos)\n```\n#### Popular Videos\n##### Parameters\n\n\u003e - ***min_width*** *(integer | optional)*\n\u003e\n\u003e   The minimum width in pixels of the returned videos.\n\u003e \n\u003e - ***min_height*** *(integer | optional)*\n\u003e \n\u003e   The minimum height in pixels of the returned videos.\n\u003e \n\u003e - ***min_duration*** *(integer | optional)*\n\u003e\n\u003e   The minimum duration in seconds of the returned videos.\n\u003e \n\u003e - ***max_duration*** *(integer | optional)*\n\u003e  \n\u003e   The maximum duration in seconds of the returned videos.\n\u003e  \n\u003e - ***page*** *(integer | optional)*\n\u003e\n\u003e   The page number you are requesting.  `Default: 1`\n\u003e \n\u003e - ***per_page*** *(integer | optional)*\n\u003e\n\u003e   The number of results you are requesting per page.  `Default: 15`  `Max: 80`\n\n```python\nfrom pexelsapi.pexels import Pexels\npexel = Pexels('API_KEY')\npopular_videos = pexel.popular_videos(min_width='', min_height='', min_duration='', max_duration='', page=1, per_page=15)\nprint(popular_videos)\n```\n#### Get Video\n```python\nfrom pexelsapi.pexels import Pexels\npexel = Pexels('API_KEY')\nget_video = pexel.get_video(video_id=10)\nprint(get_video)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeetsohail%2Fpexels-api-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeetsohail%2Fpexels-api-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeetsohail%2Fpexels-api-py/lists"}