Stripe API
stripe · Finance
The Stripe REST API. Please see https://stripe.com/docs/api for more details.
Authentication
Sample Requests
Retrieves the details of an account.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/account?expand=example"
import requests
params = {
"expand": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/account",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/account');
url.searchParams.set('expand', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/account")
q := baseURL.Query()
q.Set("expand", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/account")
uri.query = URI.encode_www_form({
"expand" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/account?" . http_build_query([
"expand" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a list of accounts connected to your platform via Connect . If you’re not a platform, the list is empty.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/accounts?limit=10&expand=example&created=example&ending_before=example&starting_after=example"
import requests
params = {
"limit": "10",
"expand": "example",
"created": "example",
"ending_before": "example",
"starting_after": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/accounts",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/accounts');
url.searchParams.set('limit', '10');
url.searchParams.set('expand', 'example');
url.searchParams.set('created', 'example');
url.searchParams.set('ending_before', 'example');
url.searchParams.set('starting_after', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/accounts")
q := baseURL.Query()
q.Set("limit", "10")
q.Set("expand", "example")
q.Set("created", "example")
q.Set("ending_before", "example")
q.Set("starting_after", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/accounts")
uri.query = URI.encode_www_form({
"limit" => "10",
"expand" => "example",
"created" => "example",
"ending_before" => "example",
"starting_after" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/accounts?" . http_build_query([
"limit" => "10",
"expand" => "example",
"created" => "example",
"ending_before" => "example",
"starting_after" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/application_fees?limit=10&charge=example&expand=example&created=example&ending_before=example&starting_after=example"
import requests
params = {
"limit": "10",
"charge": "example",
"expand": "example",
"created": "example",
"ending_before": "example",
"starting_after": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/application_fees",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/application_fees');
url.searchParams.set('limit', '10');
url.searchParams.set('charge', 'example');
url.searchParams.set('expand', 'example');
url.searchParams.set('created', 'example');
url.searchParams.set('ending_before', 'example');
url.searchParams.set('starting_after', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/application_fees")
q := baseURL.Query()
q.Set("limit", "10")
q.Set("charge", "example")
q.Set("expand", "example")
q.Set("created", "example")
q.Set("ending_before", "example")
q.Set("starting_after", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/application_fees")
uri.query = URI.encode_www_form({
"limit" => "10",
"charge" => "example",
"expand" => "example",
"created" => "example",
"ending_before" => "example",
"starting_after" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/stripe.com/2022-11-15/v1/application_fees?" . http_build_query([
"limit" => "10",
"charge" => "example",
"expand" => "example",
"created" => "example",
"ending_before" => "example",
"starting_after" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Stripe API?
Stripe API is a Finance API. Developers commonly use finance APIs for:
- processing payments and handling transactions
- building subscription and billing systems
- automating invoicing and financial reporting
- fraud detection and risk scoring
- connecting to banking and accounting software
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Stripe API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide