curl --request POST \
--url https://api.aisa.one/apis/v1/substack-com/newsletters/post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.astralcodexten.com/p/metaculus-monday-2821"
}
'import requests
url = "https://api.aisa.one/apis/v1/substack-com/newsletters/post"
payload = { "url": "https://www.astralcodexten.com/p/metaculus-monday-2821" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://www.astralcodexten.com/p/metaculus-monday-2821'})
};
fetch('https://api.aisa.one/apis/v1/substack-com/newsletters/post', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/substack-com/newsletters/post",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://www.astralcodexten.com/p/metaculus-monday-2821'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/substack-com/newsletters/post"
payload := strings.NewReader("{\n \"url\": \"https://www.astralcodexten.com/p/metaculus-monday-2821\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/substack-com/newsletters/post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.astralcodexten.com/p/metaculus-monday-2821\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/substack-com/newsletters/post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://www.astralcodexten.com/p/metaculus-monday-2821\"\n}"
response = http.request(request)
puts response.read_body{
"access_note": "Free post: body_text is the complete public article.",
"audience": "everyone",
"authors": [
{
"bio": null,
"handle": "astralcodexten",
"id": "12009663",
"name": "Scott Alexander",
"photo_url": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7b500d22-1176-42ad-afaa-5d72bc36a809_44x44.png"
}
],
"body_html": "<p>Thanks to everyone who commented last week with prediction markets I missed. Two of them seemed to be especially interesting.</p><p><strong><a href=\"https://polymarket.com/\">Polymarket</a></strong> is another cryptocurrency-based prediction market. It's got about two dozen contracts open, and some of them are pretty big - $5 million plus! With that kind of money, we ought to be seeing some really good predicting! We're...not. Either there's a 6% chance that Donald Trump will be president again by March 31, or something's gone wrong. </p><p>Probably it's the second one. I tried to bet against Trump, but getting money into the market was pretty hard. You need USDCoins, a stablecoin related to Ethereum. Polymarket tries to let you buy them directly, but their app wanted me to give them a security code which never showed up, so I gave up on this. Instead I bought some USDC at Coinbase and tried to send them over. But along with the usual Ethereum gas fees, they have something called a relayer, which is supposed to collect my money and put it in my account. And it's apparently heavily backed up, and after two days my money is nowhere to be seen (though I believe them <a href=\"https://polymarket.medium.com/polymarket-relayer-community-announcement-31ac3b64c09d\">when they say</a> that they're trying their hardest and it will probably percolate through the Ethereum network someday). Maybe everyone's having these kinds of issues and this is why the Trump contract hasn't adjusted? I'm not sure. I will keep you updated if my money ever materializes.</p><p><strong><a href=\"https://kalshi.com/\">Kalshi </a></strong>is \"the first regulated futures exchange dedicated to trading on event outcomes\". As far as I can tell they actually did it. They got the government to agree to let them run a prediction market, regulated as investing rather than gambling. There will be a $25,000 max on contracts, so it might not be enough for the real whales, but that's still thirty times higher than existing prediction markets and enough to probably be a sea change. I talked to a representative who said they'll be \"focused on creating markets in a few key categories such as climate, economics, geopolitics, energy, education, government, space, COVID, and technology\", but that they remain open to potentially expanding to all sorts of other areas (<a href=\"https://en.wikipedia.org/wiki/Onion_Futures_Act\">except onions,</a> which apparently have a very specific carve-out as something which it is illegal to have futures markets about, somebody please write a cyberpunk novel revolving around this). So far they're still setting things up, but they describe themselves as \"ramping quickly towards launch\". I am super psyched about this and will keep you all updated.</p><p>Getting back to <strong><a href=\"https://www.metaculus.com/questions/\">Metaculus</a></strong>, let’s look at what they’ve got on AI:</p><div class=\"captioned-image-container\"><figure><a class=\"image-link image2\" target=\"_blank\" href=\"https://substackcdn.com/image/fetch/$s_!ZlWn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png\" data-component-name=\"Image2ToDOM\"><div class=\"image2-inset\"><picture><source type=\"image/webp\" srcset=\"https://substackcdn.com/image/fetch/$s_!ZlWn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png 424w, https://substackcdn.com/image/fetch/$s_!ZlWn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png 848w, https://substackcdn.com/image/fetch/$s_!ZlWn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3",
"body_text": "Thanks to everyone who commented last week with prediction markets I missed. Two of them seemed to be especially interesting.\nPolymarket is another cryptocurrency-based prediction market. It's got about two dozen contracts open, and some of them are pretty big - $5 million plus! With that kind of money, we ought to be seeing some really good predicting! We're...not. Either there's a 6% chance that Donald Trump will be president again by March 31, or something's gone wrong.\nProbably it's the second one. I tried to bet against Trump, but getting money into the market was pretty hard. You need USDCoins, a stablecoin related to Ethereum. Polymarket tries to let you buy them directly, but their app wanted me to give them a security code which never showed up, so I gave up on this. Instead I bought some USDC at Coinbase and tried to send them over. But along with the usual Ethereum gas fees, they have something called a relayer, which is supposed to collect my money and put it in my account. And it's apparently heavily backed up, and after two days my money is nowhere to be seen (though I believe them when they say that they're trying their hardest and it will probably percolate through the Ethereum network someday). Maybe everyone's having these kinds of issues and this is why the Trump contract hasn't adjusted? I'm not sure. I will keep you updated if my money ever materializes.\nKalshi is \"the first regulated futures exchange dedicated to trading on event outcomes\". As far as I can tell they actually did it. They got the government to agree to let them run a prediction market, regulated as investing rather than gambling. There will be a $25,000 max on contracts, so it might not be enough for the real whales, but that's still thirty times higher than existing prediction markets and enough to probably be a sea change. I talked to a representative who said they'll be \"focused on creating markets in a few key categories such as climate, economics, geopolitics, energy, education, government, space, COVID, and technology\", but that they remain open to potentially expanding to all sorts of other areas (except onions, which apparently have a very specific carve-out as something which it is illegal to have futures markets about, somebody please write a cyberpunk novel revolving around this). So far they're still setting things up, but they describe themselves as \"ramping quickly towards launch\". I am super psyched about this and will keep you all updated.\nGetting back to Metaculus, let’s look at what they’ve got on AI:\nFirst, some history. In 2016, DeepMind’s AlphaGo beat first Fan Hui, a medium-level professional Go player, and then Lee Sedol, a top professional Go player. This was one of the more unexpected events in AI history; everyone thought it would be a few more years before Go AIs were ready for prime time. We can see this on Metaculus; their prediction that a Go program would beat a professional went from 30% before the Fan Hui match to 90% afterwards (there was some debate on whether the Fan Hui match was official enough to count, so it wasn’t 100, but everyone agreed that beating Fan Hui meant the program could probably beat other people in more official settings.\n\nAfter that people thought it was moderately likely AlphaGo could beat Lee Sedol too, and they were right.\nPrediction markets clearly aren’t magic; they didn’t expect AlphaGo’s victory over Hui any more than anyone else did (maybe a little more than some other people? they did give it 30%). But it’s interesting being able to quantify the exact degree to which people thought it was unlikely at the time, and when exactly that changed.\nImagine how great this sort of thing will one day be for historians. With enough skill, you can sort of wring prediction markets out of history - the price of Confederate bonds in early 1863 implied that investors thought the South had a 42% chance of winning the Civil War. But future historians will be spoiled; the numbers will be right t",
"comments": 104,
"cover_image": "https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/64c0705b-004a-4b01-861b-a00c1513fb5e_248x248.png",
"description": "Two more prediction markets, plus AI",
"free_preview_sent": false,
"full_text_available": true,
"id": "32257019",
"language": "en",
"next_post_slug": "book-review-why-were-polarized",
"observed_at_ms": 1789435777564,
"paywalled": false,
"podcast_duration_seconds": null,
"podcast_url": null,
"preview_text": null,
"previous_post_slug": "open-thread-159",
"publication": {
"host": "www.astralcodexten.com",
"url": "https://www.astralcodexten.com"
},
"publication_id": "89120",
"published_at": "2021-02-08T20:46:22.180Z",
"reactions": 63,
"restacks": 0,
"search_engine_description": null,
"search_engine_title": null,
"section": null,
"slug": "metaculus-monday-2821",
"source": "https://www.astralcodexten.com/api/v1/posts/metaculus-monday-2821",
"subtitle": "Two more prediction markets, plus AI",
"tags": [],
"text_coverage": 0.992,
"title": "Metaculus Monday 2/8/21",
"type": "newsletter",
"updated_at": "2023-02-08T08:49:29.855Z",
"url": "https://www.astralcodexten.com/p/metaculus-monday-2821",
"visible_wordcount": 1636,
"wordcount": 1650
}Post
One Substack post by URL, or by publication and slug: metadata plus body_html and body_text. Free posts (audience everyone) are complete; paid posts return the publicly served preview with paywalled true, full_text_available false and text_coverage showing how much of the author’s word count is visible.
curl --request POST \
--url https://api.aisa.one/apis/v1/substack-com/newsletters/post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://www.astralcodexten.com/p/metaculus-monday-2821"
}
'import requests
url = "https://api.aisa.one/apis/v1/substack-com/newsletters/post"
payload = { "url": "https://www.astralcodexten.com/p/metaculus-monday-2821" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://www.astralcodexten.com/p/metaculus-monday-2821'})
};
fetch('https://api.aisa.one/apis/v1/substack-com/newsletters/post', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/substack-com/newsletters/post",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://www.astralcodexten.com/p/metaculus-monday-2821'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/substack-com/newsletters/post"
payload := strings.NewReader("{\n \"url\": \"https://www.astralcodexten.com/p/metaculus-monday-2821\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/substack-com/newsletters/post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.astralcodexten.com/p/metaculus-monday-2821\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/substack-com/newsletters/post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://www.astralcodexten.com/p/metaculus-monday-2821\"\n}"
response = http.request(request)
puts response.read_body{
"access_note": "Free post: body_text is the complete public article.",
"audience": "everyone",
"authors": [
{
"bio": null,
"handle": "astralcodexten",
"id": "12009663",
"name": "Scott Alexander",
"photo_url": "https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7b500d22-1176-42ad-afaa-5d72bc36a809_44x44.png"
}
],
"body_html": "<p>Thanks to everyone who commented last week with prediction markets I missed. Two of them seemed to be especially interesting.</p><p><strong><a href=\"https://polymarket.com/\">Polymarket</a></strong> is another cryptocurrency-based prediction market. It's got about two dozen contracts open, and some of them are pretty big - $5 million plus! With that kind of money, we ought to be seeing some really good predicting! We're...not. Either there's a 6% chance that Donald Trump will be president again by March 31, or something's gone wrong. </p><p>Probably it's the second one. I tried to bet against Trump, but getting money into the market was pretty hard. You need USDCoins, a stablecoin related to Ethereum. Polymarket tries to let you buy them directly, but their app wanted me to give them a security code which never showed up, so I gave up on this. Instead I bought some USDC at Coinbase and tried to send them over. But along with the usual Ethereum gas fees, they have something called a relayer, which is supposed to collect my money and put it in my account. And it's apparently heavily backed up, and after two days my money is nowhere to be seen (though I believe them <a href=\"https://polymarket.medium.com/polymarket-relayer-community-announcement-31ac3b64c09d\">when they say</a> that they're trying their hardest and it will probably percolate through the Ethereum network someday). Maybe everyone's having these kinds of issues and this is why the Trump contract hasn't adjusted? I'm not sure. I will keep you updated if my money ever materializes.</p><p><strong><a href=\"https://kalshi.com/\">Kalshi </a></strong>is \"the first regulated futures exchange dedicated to trading on event outcomes\". As far as I can tell they actually did it. They got the government to agree to let them run a prediction market, regulated as investing rather than gambling. There will be a $25,000 max on contracts, so it might not be enough for the real whales, but that's still thirty times higher than existing prediction markets and enough to probably be a sea change. I talked to a representative who said they'll be \"focused on creating markets in a few key categories such as climate, economics, geopolitics, energy, education, government, space, COVID, and technology\", but that they remain open to potentially expanding to all sorts of other areas (<a href=\"https://en.wikipedia.org/wiki/Onion_Futures_Act\">except onions,</a> which apparently have a very specific carve-out as something which it is illegal to have futures markets about, somebody please write a cyberpunk novel revolving around this). So far they're still setting things up, but they describe themselves as \"ramping quickly towards launch\". I am super psyched about this and will keep you all updated.</p><p>Getting back to <strong><a href=\"https://www.metaculus.com/questions/\">Metaculus</a></strong>, let’s look at what they’ve got on AI:</p><div class=\"captioned-image-container\"><figure><a class=\"image-link image2\" target=\"_blank\" href=\"https://substackcdn.com/image/fetch/$s_!ZlWn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png\" data-component-name=\"Image2ToDOM\"><div class=\"image2-inset\"><picture><source type=\"image/webp\" srcset=\"https://substackcdn.com/image/fetch/$s_!ZlWn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png 424w, https://substackcdn.com/image/fetch/$s_!ZlWn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F29d3cefe-10fa-400d-accb-e8a417313844_1043x214.png 848w, https://substackcdn.com/image/fetch/$s_!ZlWn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3",
"body_text": "Thanks to everyone who commented last week with prediction markets I missed. Two of them seemed to be especially interesting.\nPolymarket is another cryptocurrency-based prediction market. It's got about two dozen contracts open, and some of them are pretty big - $5 million plus! With that kind of money, we ought to be seeing some really good predicting! We're...not. Either there's a 6% chance that Donald Trump will be president again by March 31, or something's gone wrong.\nProbably it's the second one. I tried to bet against Trump, but getting money into the market was pretty hard. You need USDCoins, a stablecoin related to Ethereum. Polymarket tries to let you buy them directly, but their app wanted me to give them a security code which never showed up, so I gave up on this. Instead I bought some USDC at Coinbase and tried to send them over. But along with the usual Ethereum gas fees, they have something called a relayer, which is supposed to collect my money and put it in my account. And it's apparently heavily backed up, and after two days my money is nowhere to be seen (though I believe them when they say that they're trying their hardest and it will probably percolate through the Ethereum network someday). Maybe everyone's having these kinds of issues and this is why the Trump contract hasn't adjusted? I'm not sure. I will keep you updated if my money ever materializes.\nKalshi is \"the first regulated futures exchange dedicated to trading on event outcomes\". As far as I can tell they actually did it. They got the government to agree to let them run a prediction market, regulated as investing rather than gambling. There will be a $25,000 max on contracts, so it might not be enough for the real whales, but that's still thirty times higher than existing prediction markets and enough to probably be a sea change. I talked to a representative who said they'll be \"focused on creating markets in a few key categories such as climate, economics, geopolitics, energy, education, government, space, COVID, and technology\", but that they remain open to potentially expanding to all sorts of other areas (except onions, which apparently have a very specific carve-out as something which it is illegal to have futures markets about, somebody please write a cyberpunk novel revolving around this). So far they're still setting things up, but they describe themselves as \"ramping quickly towards launch\". I am super psyched about this and will keep you all updated.\nGetting back to Metaculus, let’s look at what they’ve got on AI:\nFirst, some history. In 2016, DeepMind’s AlphaGo beat first Fan Hui, a medium-level professional Go player, and then Lee Sedol, a top professional Go player. This was one of the more unexpected events in AI history; everyone thought it would be a few more years before Go AIs were ready for prime time. We can see this on Metaculus; their prediction that a Go program would beat a professional went from 30% before the Fan Hui match to 90% afterwards (there was some debate on whether the Fan Hui match was official enough to count, so it wasn’t 100, but everyone agreed that beating Fan Hui meant the program could probably beat other people in more official settings.\n\nAfter that people thought it was moderately likely AlphaGo could beat Lee Sedol too, and they were right.\nPrediction markets clearly aren’t magic; they didn’t expect AlphaGo’s victory over Hui any more than anyone else did (maybe a little more than some other people? they did give it 30%). But it’s interesting being able to quantify the exact degree to which people thought it was unlikely at the time, and when exactly that changed.\nImagine how great this sort of thing will one day be for historians. With enough skill, you can sort of wring prediction markets out of history - the price of Confederate bonds in early 1863 implied that investors thought the South had a 42% chance of winning the Civil War. But future historians will be spoiled; the numbers will be right t",
"comments": 104,
"cover_image": "https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/64c0705b-004a-4b01-861b-a00c1513fb5e_248x248.png",
"description": "Two more prediction markets, plus AI",
"free_preview_sent": false,
"full_text_available": true,
"id": "32257019",
"language": "en",
"next_post_slug": "book-review-why-were-polarized",
"observed_at_ms": 1789435777564,
"paywalled": false,
"podcast_duration_seconds": null,
"podcast_url": null,
"preview_text": null,
"previous_post_slug": "open-thread-159",
"publication": {
"host": "www.astralcodexten.com",
"url": "https://www.astralcodexten.com"
},
"publication_id": "89120",
"published_at": "2021-02-08T20:46:22.180Z",
"reactions": 63,
"restacks": 0,
"search_engine_description": null,
"search_engine_title": null,
"section": null,
"slug": "metaculus-monday-2821",
"source": "https://www.astralcodexten.com/api/v1/posts/metaculus-monday-2821",
"subtitle": "Two more prediction markets, plus AI",
"tags": [],
"text_coverage": 0.992,
"title": "Metaculus Monday 2/8/21",
"type": "newsletter",
"updated_at": "2023-02-08T08:49:29.855Z",
"url": "https://www.astralcodexten.com/p/metaculus-monday-2821",
"visible_wordcount": 1636,
"wordcount": 1650
}Request contract
- Method and path: POST /apis/v1/substack-com/newsletters/post
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/substack-com/newsletters/post
{
"operationId": "substack-com.newsletters.post",
"method": "POST",
"path": "/apis/v1/substack-com/newsletters/post",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"url": "https://www.astralcodexten.com/p/metaculus-monday-2821"
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"publication": {}
},
"required": [
"publication"
]
},
{
"properties": {
"slug": {}
},
"required": [
"slug"
]
},
{
"properties": {
"url": {}
},
"required": [
"url"
]
}
]
}
],
"properties": {
"publication": {
"description": "Substack slug or a declared custom publication host (www.astralcodexten.com, www.lennysnewsletter.com, www.noahpinion.blog). Other custom domains are not supported by this program.",
"type": "string"
},
"slug": {
"description": "Pattern: ^[A-Za-z0-9._-]+$.",
"type": "string"
},
"url": {
"description": "https://<publication host>/p/<slug> or https://open.substack.com/pub/<slug>/p/<slug>. Provide url, or publication and slug. Pattern: ^https?://.",
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
- Option 1
- Option 2
- Option 3
Substack slug or a declared custom publication host (www.astralcodexten.com, www.lennysnewsletter.com, www.noahpinion.blog). Other custom domains are not supported by this program.
https:///p/ or https://open.substack.com/pub//p/. Provide url, or publication and slug. Pattern: ^https?://.
Response
One Substack post by URL, or by publication and slug: metadata plus body_html and body_text. Free posts (audience everyone) are complete; paid posts return the publicly served preview with paywalled true, full_text_available false and text_coverage showing how much of the author's word count is visible. Custom domains are limited to the declared publications; paid text remains the anonymous preview.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
access_note | string | |
audience | string | |
authors | object[] | |
body_html | string | |
body_text | string | |
comments | number | |
cover_image | string | |
description | string | |
free_preview_sent | boolean | |
full_text_available | boolean | |
id | string | |
language | string | |
next_post_slug | string | |
observed_at_ms | number | |
paywalled | boolean | |
podcast_duration_seconds | number | |
podcast_url | string | |
preview_text | string | |
previous_post_slug | string | |
publication | object | |
publication_id | string | |
published_at | string | |
reactions | number | |
restacks | number | |
search_engine_description | string | |
search_engine_title | string | |
section | object | |
slug | string | |
source | string | |
subtitle | string | |
tags | object[] | |
text_coverage | number | visible_wordcount / wordcount, rounded to 3 decimals. About 1 for free posts, below 1 for paid posts. |
title | string | |
type | string | |
updated_at | string | |
url | string | |
visible_wordcount | number | Words in body_text as served to an anonymous reader. |
wordcount | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.