Public Resource Data Search API

Important

  • By default, results will return a maximum of 250 resource metadata

  • Please utilize offset and limit to page through further results

  • An overall count will always be provided in your results

This endpoint returns a dictionary with 2 fields: count and results. The count field contains the total number of Resources found without the limit or query parameters having an effect. The results field is a list of dictized Resource objects.


Parameter Definitions

Parameter Name

Description

Example

limit

Max amount of results returned by query. By default, max amount of 250 is applied. Your limit cannot exceed 250

'limit': 5

offset

The number of results to skip before returning results by the query

'offset': 10

order_by

Value that all queried results will be ordered by

'order_by': 'created desc'

query

Variable which will be queried in the search

'query': 'name:oil'


Valid Query Fields

Field Name

Description

Example

format

Format of the resource

'format:pdf'

name

Name of the resource

'name:oil'

description

Description of the resource

'description:oil wells'

license_type

License type of the resource

'license_type:bsd3'

*

See “Search Against All Fields”

'*:*'

Important

Spaces will be stripped from query terms if they exist at the beginning or end of the field value
  • User Input Example: 'name: oil'

  • User Input After API Stripping: 'name:oil'


Searching Against All Fields

Attention

  • In order to search against all fields, use '*: <term>'

  • Example: '*:oil' to search against all valid fields for the term “oil”

Attention

In order to return all public resources, you can use '*:*'


EDX License Parameters

These parameters are used when specifying a license type.

Note

You may use either the exact License Value Name when defining license in your data dictionary

License Value Name

Description

bsd3

BSD-3 Clause

cc-by

Creative Commons Attribution

cc-by-sa

Creative Commons Attribution Share-Alike

cc-zero

Creative Commons CCZero

cc-nc

Creative Commons Non-Commercial (Any)

cui

Controlled Unclassified Information

gfdl

GNU Free Documentation License

notspecified

License Not Specified

non-disclosure-agreement

Non-Disclosure Agreement

no-license-restriction

No License Restrictions

ouo

Official Use Only

odc-by

Open Data Commons Attribution License

odc-odbl

Open Data Commons Open Database License (ODbL)

odc-pddl

Open Data Commons Public Domain Dedication and License (PDDL)

other-at

Other (Attribution)

other-nc

Other (Non-Commercial)

other-closed

Other (Not Open)

other-open

Other (Open)

other-pd

Other (Public Domain)

prop-comm

Proprietary (Commercial)

uk-ogl

UK Open Government License (OGL)