Endpoint | Description | Argument |
---|---|---|
/pig/ | Get the list of PIG folders available for querying along with the halo numbers and redshifts |
|
/pig/{id} | Get snapshot info in PIG_{id} |
|
/pig/{id}/{ptype} | Get the list of {ptype} particle features available for querying in PIG_{id} |
|
/pig/{id}/fofgroup | Get the list of FoFgroup features available for querying in PIG_{id} |
|
/pig/{id}/lengthbytype/n={num} | Get the length info of the first {num} halos in PIG_{id} |
|
/pig/{id}/lengthbytype/{halo_id}/{type_id} | Get the number of {type_id} particles in the {halo_id}th halo in PIG_{id} |
|
/pig/{id}/{ptype}/{feature}/{group_id} | Get the {feature} data of {ptype} particle in {group_id} group and PIG_{id} folder |
|
/pig/{id}/lengthbytype/?{group_query} | Execute {group_query} and get the length info of the a list of halos in PIG_{id} |
|
POST/pig/{id}/{ptype}/{feature}/, data = {ID_list} | Get all {feature} data of {ptype} particle in the group {ID_list} and PIG_{id} folder |
|
/pig/{id}/search/{ptype}/{feature}/{criterion}/?{range_query} | Get a dictionary of {groupid:data} for data of {feature} {ptype} particle within the searching {criterion}. |
|
/pig/{id}/fofgroup/{fof_feature}/{group_id} | Get the {feature} data of FOFGroup in {group_id} group and PIG_{id} folder |
|
/pig/{id}/search_id/{ptype}/{fof_feature}?{range_query} | Get all halo IDs of {ptype} particles for {feature} matching some searching {range_query} criterion in a PIG_{id} folder |
|
The web-based API interface can respond to a variety of user requests and queries. To access the it, please click "http://bluetides-api.psc.edu/docs".
Several API functions accept additional, optional query parameters, descriptions are as belows:
{group_query}
is a list of group IDs. For example:
For bulk queries of halo data, the data of several halos can be extracted by inputing an ID list as query parameters. Example usage:
{range_query}
is the min_range and max_range of a certain criterion. For example:
For searching criterion by field query, an halo ID list can be returned when the particular pariticle feature matches some searching criterion, and the min_range and max_range are passed as optional query parameters. Example usage:
Some API functions accept post method to pass necessary data in request body, descriptions are as belows:
{ID_list}
is a list of group IDs. For example:
Again, for bulk queries of halo data, data of several halos can be extracted by pass an ID list as request body. Example usage:
In comparison with the previous get method, this way enables passing a larger ID list, since it wouldn't cause the URL to be too long.
The Cosmo API will return a subset of standard HTTP response codes, in particular:
The followings are absolute URLs for the cosmo API.