Skip to main contentSkip to navigationSkip to search

API Documentation

Read and write RateAds data from your own code

Quick Start

From a RateAds account to your first API call

1. Create a Key

Sign in and open Settings → Integrations. Choose the scopes: read for GET requests, write to create, change and delete. The key is shown once; copy it then.

Create Account

2. Make Your First Call

Send the key with each request as Authorization: Api-Key <key>. The request acts as your account, limited to the key's scopes.

View Examples

3. Explore the Reference

Every endpoint is in the OpenAPI schema at /api/schema/. Browse it in Swagger UI, or in ReDoc at /api/redoc/.

Open Swagger UI

Authentication

API keys, and what a key can and can't do

API keys

Send Authorization: Api-Key <key>. On the endpoints listed below, a request made with a key is your account: it sees what you can see there and changes what you can change.

  • read allows GET, HEAD and OPTIONS. write allows POST, PUT, PATCH and DELETE. A method the key has no scope for is answered 403.
  • A wrong, revoked or expired key is answered 401. It is never treated as an anonymous request.
  • RateAds stores only a hash of each key, so a key is shown once, when you create or rotate it. Rotating replaces the key at once; revoking stops it for good.
  • An account can hold 10 keys. A key can expire on a date you choose.
  • Changing or resetting your password revokes your API keys, and so does signing out of all other sessions. Create new keys afterwards.

Where keys don't apply

  • API keys are for member accounts; staff accounts can't use them.
  • Keys can't manage keys. Create, rotate, revoke and delete them while signed in, in Settings → Integrations (the /api/v1/api-keys/ endpoints).
  • Keys work only on the endpoints listed below, plus /api/v1/users/me/, which a key can read but not change. Account endpoints (password, sessions, profile, settings, privacy, data export and deletion) accept only a signed-in account's token, never a key.
  • Public endpoints don't need a key. Some ignore credentials altogether, so a key there makes no difference.
  • Signed-in requests can instead send a JWT access token as Authorization: Bearer <access token>. Get one with POST /api/auth/login/ (it comes back in the access_token cookie) and renew it with POST /api/auth/refresh/.

API Features

What the RateAds API offers today

REST and JSON

Resources at https://www.rateads.us/api/v1/, answered in JSON.

API Keys

Create keys in Settings → Integrations and send one as Authorization: Api-Key <key>. Each key is read-only or read-write.

Rate Limiting

Limits per key, per account and per IP address. A throttled request gets 429 with a Retry-After header.

Versioned Paths

Every endpoint here is under /api/v1/, the only version.

OpenAPI Reference

A machine-readable schema at /api/schema/, browsable in Swagger UI and ReDoc

Core Endpoints

All of these accept an API key

MethodEndpointDescription
GET
/api/v1/advertisements/List advertisements with filtering and pagination
GET
/api/v1/advertisements/{id}/Get detailed information about a specific advertisement
GET
/api/v1/reviews/?advertisement={id}Approved reviews of an advertisement
POST
/api/v1/reviews/Submit a new review (needs a key with the write scope)
GET
/api/v1/search/?q={query}Search advertisements by text, category, tags and rating
GET
/api/v1/discovery/trending/Trending advertisements for a period (?period=weekly)

Code Examples

Sample code to get you started quickly

# Create a key in Settings -> Integrations, then:
curl "https://www.rateads.us/api/v1/advertisements/" \
  -H "Authorization: Api-Key YOUR_API_KEY" \
  -H "Accept: application/json"

Rate Limits

The same for every account; there are no paid API plans

Each API key

1,000 requests an hour

Counted per key, so one busy key doesn't use up another.

Each account

5,000 requests a day

Everything made as the account counts: all its keys and its signed-in requests.

Without a key or sign-in

1,000 requests an hour

Counted per IP address.

A request made with a key counts against both the key and its account. Some endpoints have their own, lower limits, and short bursts are limited too. Over a limit, the API answers 429 Too Many Requests with a Retry-After header giving the seconds to wait.

Developer Resources

Everything you need to succeed

API Reference

Complete documentation of all endpoints and parameters

View Reference

OpenAPI Schema

Download the machine-readable schema from /api/schema/, or read it in ReDoc at /api/redoc/.

Questions About the API?

Tell us what you're building or what you need from the API. RateAds doesn't send webhooks yet.

Contact Us

Ready to Build?

Create a RateAds account, then create an API key in Settings → Integrations.