{"id":34017350,"url":"https://github.com/bryand1/python-pinterest-api","last_synced_at":"2025-12-13T14:31:58.043Z","repository":{"id":57452850,"uuid":"148952981","full_name":"bryand1/python-pinterest-api","owner":"bryand1","description":"Python Pinterest API","archived":false,"fork":false,"pushed_at":"2022-03-10T03:35:46.000Z","size":22,"stargazers_count":29,"open_issues_count":3,"forks_count":11,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-25T10:58:28.668Z","etag":null,"topics":["pinterest","pinterest-api","pinterest-client","python","python3"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bryand1.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":"2018-09-16T01:21:25.000Z","updated_at":"2024-11-10T06:24:32.000Z","dependencies_parsed_at":"2022-08-28T16:11:05.455Z","dependency_job_id":null,"html_url":"https://github.com/bryand1/python-pinterest-api","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bryand1/python-pinterest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryand1%2Fpython-pinterest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryand1%2Fpython-pinterest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryand1%2Fpython-pinterest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryand1%2Fpython-pinterest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bryand1","download_url":"https://codeload.github.com/bryand1/python-pinterest-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bryand1%2Fpython-pinterest-api/sbom","scorecard":{"id":255683,"data":{"date":"2025-08-11","repo":{"name":"github.com/bryand1/python-pinterest-api","commit":"6e7da75fc758875a964f26e56a1081a3f0842e91"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}}]},"last_synced_at":"2025-08-17T09:39:50.224Z","repository_id":57452850,"created_at":"2025-08-17T09:39:50.224Z","updated_at":"2025-08-17T09:39:50.224Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27707116,"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-12-13T02:00:09.769Z","response_time":147,"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":["pinterest","pinterest-api","pinterest-client","python","python3"],"created_at":"2025-12-13T14:31:57.382Z","updated_at":"2025-12-13T14:31:58.035Z","avatar_url":"https://github.com/bryand1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Pinterest API\n\n![license MIT](https://s3-us-west-1.amazonaws.com/bryand1/images/badges/license-MIT-blue.svg)\n![python 3.6 | 3.7](https://s3-us-west-1.amazonaws.com/bryand1/images/badges/python-3.6-3.7.svg)\n\n\n## Getting Started\n\n```bash\npip install pinterest-api\n```\n\n\n## Usage\n\n```python\nimport pinterest\n\n# Generate OAuth2 authorization link\nlink = pinterest.oauth2.authorization_url(app_id, redirect_uri)\n\n# Initialize API by passing OAuth2 token\napi = pinterest.Pinterest(token=\"ApFF9WBrjug_xhJPsETri2jp9pxgFVQfZNayykxFOjJQhWAw\")\n\n# Fetch authenticated user's data\napi.me()\n\n# Fetch authenticated user's boards\napi.boards()\n\n# Create board\napi.board().create(\"Halloween\", description=\"Fun Costumes\")\n\n# Fetch board\napi.board(\"695665542379607495\").fetch()\napi.board(\"username/halloween\").fetch()\n\n# Fetch pins on board\napi.board(\"username/halloween\").pins()\n\n# Edit board\napi.board(\"username/halloween\").edit(new_name=\"Costumes\", new_description=\"Halloween Costume Ideas\")\n\n# Delete board\napi.board(\"username/halloween\").delete()\n\n# Fetch board suggestions\napi.suggest_boards(pin=162129655315312286)\n\n# Fetch authenticated user's pins\napi.pins()\n\n# Create a pin\napi.pin().create(board, note, link, image_url=image_url)\n\n# Fetch a pin\napi.pin(162129655315312286).fetch()\n\n# Edit a pin\napi.pin(162129655315312286).edit(board, note, link)\n\n# Delete a pin\napi.pin(162129655315312286).delete()\n\n# Search boards (Optional cursor)\napi.search_boards(query, cursor=None)\n\n# Search pins (Optional cursor)\napi.search_pins(query, cursor=None)\n\n# Follow a board\napi.follow_board(board)\n\n# Follow a user\napi.follow_user(username)\n\n# Return the users who follow the authenticated user\napi.followers(cursor=None)\n\n# Return the boards that the authenticated user follows\napi.following_boards(cursor=None)\n\n# Return the topics the authenticated user follows\napi.following_interests(cursor=None)\n\n# Return the users the authenticated user follows\napi.following_users(cursor=None)\n\n# Unfollow board\napi.unfollow_board(board)\n\n# Make authenticated user unfollow user\napi.unfollow_user(username)\n\n# Fetch another user's info\napi.user(username)\n\n# Fetch board sections\napi.board(\"695665542379586148\").sections()\n\n# Create board section\napi.board(\"695665542379586148\").section(\"Section Title\").create()\n\n# Delete board section\napi.board(\"695665542379586148\").section(\"4989415010584246390\").delete()\n\n# Fetch pins in board section\napi.board(\"695665542379586148\").section(\"4989343507360527350\").pins()\n```\n\n\n## Responses\n\nThe Pinterest API responses are in JSON format.\n\n```python\napi.me()  # By default, retry http request up to 3 times\n```\n\n```javascript\n{\n  \"data\": {\n    \"first_name\": \"Bryan\",\n    \"id\": \"695665611098925391\",\n    \"last_name\": \"Andrade\",\n    \"url': \"https://www.pinterest.com/bandrade1815/\"\n  },\n  \"ratelimit\": {\n      \"limit\": 10,\n      \"remaining\": 9\n  }\n}\n```\n\n\n## Resources\n\n[Pinterest Developer API](https://developers.pinterest.com/docs/getting-started/introduction/)  \n[Pinterest API Explorer](https://developers.pinterest.com/tools/api-explorer/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryand1%2Fpython-pinterest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbryand1%2Fpython-pinterest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbryand1%2Fpython-pinterest-api/lists"}