polymarket
Live prediction markets: prices per outcome, volume and liquidity.
GET /v1/polymarket/markets
1 credit
cached 5m
curl "http://datatrend.nl/v1/polymarket/markets" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/polymarket/markets");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/polymarket/markets",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/polymarket/markets",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/polymarket/market
1 credit
cached 5m
Parameters
| slug | required | e.g. presidential-election-winner-2028 |
curl "http://datatrend.nl/v1/polymarket/market?slug=presidential-election-winner-2028" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/polymarket/market?slug=presidential-election-winner-2028");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/polymarket/market?slug=presidential-election-winner-2028",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/polymarket/market?slug=presidential-election-winner-2028",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);
GET /v1/polymarket/search
1 credit
cached 5m
Parameters
| query | required | e.g. open source |
curl "http://datatrend.nl/v1/polymarket/search?query=open+source" \ -H "x-api-key: YOUR_KEY"
<?php
$ch = curl_init("http://datatrend.nl/v1/polymarket/search?query=open+source");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: YOUR_KEY'],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data['data']);
import requests
r = requests.get(
"http://datatrend.nl/v1/polymarket/search?query=open+source",
headers={"x-api-key": "YOUR_KEY"},
)
print(r.json()["data"])
const r = await fetch(
"http://datatrend.nl/v1/polymarket/search?query=open+source",
{ headers: { "x-api-key": "YOUR_KEY" } }
);
const { data } = await r.json();
console.log(data);