Open Data API


REST API

Our REST APIs provide access to data resources via URI paths. To use a REST API, your application sould make an HTTP GET request using basic HTML authentication and parse the response. The response format is JSON.

Authentication

Authentication is required to access the API's services. Currently, only curators have access to an API key, but eventually the API will be more broadly available to anyone.

To authenticate to the web service, basic HTTP authentication sould be used with each request and it's value must be set with your unique API token and key.

Endpoints

  • /v1/startups
  • /v1/startup/{id}
  • /v1/investments
  • /v1/investment/{id}
  • /v1/persons
  • /v1/person/{id}

PHP Simple Example

<?php

// Parameters
$token = "[your-auth-token-here]";
$key = "[your-auth-key-here]";
$url = "http://$token:$key@api.startups.hu/v1/startups";

// Get contents from URL
$response = file_get_contents($url);

// Output response
print_r(json_decode($response,1));
exit;

?>

PHP Example with CURL

<?php

// Parameters
$token = "[your-auth-token-here]";
$key = "[your-auth-key-here]";
$url = "http://api.startups.hu/v1/startups";

// Initialise cURL
$curl = curl_init();

// Set options
curl_setopt($curl,CURLOPT_HTTPAUTH,CURLAUTH_BASIC);
curl_setopt($curl,CURLOPT_USERPWD,"$token:$key");
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl,CURLOPT_URL,$url);

// Send request
$response = curl_exec($curl);

// Close cURL
curl_close($curl);

// Output response
print_r(json_decode($response,1));
exit;

?>

License

All Startup Genome Data is licensed for use under and subject to the terms of the Creative Commons Attribution-NonCommercial License CC-BY-NC. Before using the API in conjunction with your application, you should carefully read and understand the CC-BY-NC license.