API - Search a PID

This API uses JSON as the primary exchange format. All implementations MUST be able to produce and consume JSON.

Search a PID - Description

You can search for a PID by using a term.

TypeDescription
DescriptionSearch a PID
URLThe ePIC API Url+?PARAMETER=*term*
HTTP MethodGET
SecurityYou must authenticate before actually getting this information.

The parameters you may use for a search request are described in the following table:

ParameterValueDescriptionExample value
INSTstring: name of the INSTSearch and get the list of PIDs registered by an institutehttps://epic.grnet.gr/api/v2/handles/11239/?INST=GRNET
URLstring: the url you are searching forSearch and get the PID of an object with the selected urlhttps://epic.grnet.gr/api/v2/handles/11239/?URL=http://www.grnet.gr
limitint: the limit of resultsLimit your resultshttps://epic.grnet.gr/api/v2/handles/11239/?URL=http://www.grnet.gr&limit=10

You may also:

Example

In this example we are going to use the term to retrieve the list of PIDs with the following URL https://epic.grnet.gr/api/v2/handles/11239/?URL=\*GRNET\*

The request in curl

curl -D- -u "YOURUSERNAME:YOURPASSWORD" -X GET -H "Content-Type: application/json" https://epic.grnet.gr/api/v2/handles/11239/?URL=*grnet*

The response:

  • HTTP/1.1 200 OK: (Success)
  • HTTP/1.1 401 Unauthorized: Your username or your password is wrong
  • HTTP/1.1 404 NOT found: The url doesn't exist

After a successful request, the response consists of a list of PIDs containing this term.

GRNET
66742AB2-5685-11E3-A413-1C6F65A666B5
305F66A9-3994-42D6-A9F6-8E629126DE14
B4CF7AEA-55BB-4DB5-9D85-EB2DAD821B07
0CEEA495-71FA-460B-97A4-81E7E597B636