{% extends "_page.html" %} {% block body %}

{% block section_title_plural %}{% endblock %} Query

GET {% block section_get_url %}{% endblock %}
POST {% block section_post_url %}{% endblock %}

{% block section_introduction %}{% endblock %}

The HTTP GET request method is the preferred access mechanism; however when the query parameters exceed a reasonable size (around 2,000 characters), then the POST method can be used. When using the POST method, the query parameters should be embedded within a JSON string within the request body.

Name Description Details
q JSON formatted object containing the query parameters. See below for details on formatting this object. string, required
example: {% block section_query_example %}{% endblock %}
f JSON formatted array of fields to include in the results. If not provided, defaults to {% block section_field_defaults %}{% endblock %}. string, optional
example: {% block section_field_example %}{% endblock %}
s JSON formatted array of objects to sort the results. If not provided, defaults to {% block section_sort_default %}{% endblock %}. string, optional
example: {% block section_sort_example %}{% endblock %}
o

JSON formatted object of options to modify the query or results. Available options are:

matched_subentities_only — Only subentity data that matches the subentity specific criteria is included in results. Defaults to true.

include_subentity_total_counts — Total counts of unique subentities included in results. Defaults to false.

page — return only the Nth page of results. Defaults to 1.

per_page — Size of each page of results. Defaults to 25.

string, optional
example: o={"matched_subentities_only": "true", "page": 2, "per_page": 50, "include_subentity_total_counts": "false"}
format

Specifies the response data format. If not provided, defaults to JSON. Available options are:

json

xml

string, optional
example: format=xml

An example of a complete API call using the GET verb is:

{{ base_url }}{% block section_get_url_example %}{% endblock %}

An example of the equivalent API call using the POST verb is:

{{ base_url }}{% block section_post_url_example %}{% endblock %}

with the body containing:

{% block section_post_body_example %}{% endblock %}

Examples

{% block section_examples %}{% endblock %}

{{ self.section_title() }} Field List

{% for name in field_list_column_names %} {% endfor %} {% for field in field_list %} {% for name in field_list_column_names %} {% endfor %} {% endfor %}
{{name}}
{{ field[name] }}
{% endblock %}