File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ The following features of OpenAlex are currently supported by PyAlex:
19
19
- [x] Search entities
20
20
- [x] Group entities
21
21
- [x] Search filters
22
+ - [x] Select fields
23
+ - [x] Sample
22
24
- [x] Pagination
23
25
- [ ] [ Autocomplete endpoint] ( https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/autocomplete-entities )
24
26
- [x] N-grams
@@ -193,6 +195,22 @@ OpenAlex reference: [Sort entity lists](https://docs.openalex.org/api-entities/w
193
195
Works().sort(cited_by_count = " desc" ).get()
194
196
```
195
197
198
+ #### Select
199
+
200
+ OpenAlex reference: [ Select fields] ( https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/select-fields ) .
201
+
202
+ ``` python
203
+ Works().filter(publication_year = 2020 , is_oa = True ).select([" id" , " doi" ]).get()
204
+ ```
205
+
206
+ #### Sample
207
+
208
+ OpenAlex reference: [ Sample entity lists] ( https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/sample-entity-lists ) .
209
+
210
+ ``` python
211
+ Works().sample(100 , seed = 535 ).get()
212
+ ```
213
+
196
214
#### Logical expressions
197
215
198
216
OpenAlex reference: [ Logical expressions] ( https://docs.openalex.org/how-to-use-the-api/get-lists-of-entities/filter-entity-lists#logical-expressions )
You can’t perform that action at this time.
0 commit comments