Add search endpoints for projects, sections and labels#210
Merged
goncalossilva merged 3 commits intomainfrom Jan 16, 2026
Merged
Add search endpoints for projects, sections and labels#210goncalossilva merged 3 commits intomainfrom
goncalossilva merged 3 commits intomainfrom
Conversation
32260f3 to
b592274
Compare
89ac7ab to
ca531fb
Compare
There was a problem hiding this comment.
Pull request overview
This pull request adds search functionality for projects, sections, and labels in the Todoist API Python SDK. The changes implement three new search endpoints that allow filtering by name using a query string, complementing the existing list/get operations.
Changes:
- Added three new search methods:
search_projects,search_sections, andsearch_labels - Introduced endpoint path constants for the new search operations
- Fixed incomplete documentation for the
get_labelsmethod's limit parameter
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
todoist_api_python/_core/endpoints.py |
Added search path suffix constants for projects, sections, and labels endpoints |
todoist_api_python/api.py |
Implemented synchronous search methods for projects, sections, and labels; fixed documentation typo in get_labels |
todoist_api_python/api_async.py |
Implemented asynchronous wrappers for the search methods using the existing async pattern |
tests/test_api_projects.py |
Added comprehensive test for search_projects covering both sync and async variants |
tests/test_api_sections.py |
Added tests for search_sections with and without project filtering |
tests/test_api_labels.py |
Added comprehensive test for search_labels covering both sync and async variants |
CHANGELOG.md |
Documented the new search functionality in the Unreleased section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lefcha
reviewed
Jan 15, 2026
lefcha
reviewed
Jan 15, 2026
lefcha
approved these changes
Jan 15, 2026
Collaborator
lefcha
left a comment
There was a problem hiding this comment.
Everything looks good, only had a couple of minor nitpicks.
Add search_projects methods (sync + async) using the new /projects/search endpoint.
Add search_sections methods (sync + async) using the new /sections/search endpoint.
Add search_labels methods (sync + async) using the new /labels/search endpoint.
ca531fb to
4a3e0e3
Compare
|
I'll do the same for the TypeScript API wrapper library. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for searching projects, sections, and labels.
API PRs: