Forager public API endpoints documentation
Forager public API (1.0.0)
Request
The Credit Balance Change Log endpoint provides a list of all credit balance change logs related to the current subscription. It returns a list of credit balance change logs, including the change type, change sum, and change data. This endpoint is useful for tracking and analyzing credit consumption patterns, monitoring usage, and ensuring proper subscription management.
https://api-v2.forager.ai/api/{account_id}/subscriptions/balance_change_logs/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-v2.forager.ai/api/{account_id}/subscriptions/balance_change_logs/?date_created_end=2019-08-24T14%3A15%3A22Z&date_created_start=2019-08-24T14%3A15%3A22Z&page=0' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "count": 15, "next": 2, "previous": null, "results": [ { … } ] }
Request
The Credit Consumption Totals endpoint calculates the total amount of credits spent during a specified timeframe. It returns the sum of all credit changes that have been made to the subscription balance during the given period. This endpoint is useful for tracking and analyzing credit consumption patterns, monitoring usage, and ensuring proper subscription management.
https://api-v2.forager.ai/api/{account_id}/subscriptions/balance_change_logs/totals/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-v2.forager.ai/api/{account_id}/subscriptions/balance_change_logs/totals/?date_created_end=2019-08-24T14%3A15%3A22Z&date_created_start=2019-08-24T14%3A15%3A22Z' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "total_credits_spent": 0 }
https://api-v2.forager.ai/api/api_keys/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-v2.forager.ai/api/api_keys/ \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
[ { "prefix": "string", "created": "2019-08-24T14:15:22Z", "name": "string" } ]
https://api-v2.forager.ai/api/api_keys/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api-v2.forager.ai/api/api_keys/ \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: YOUR_API_KEY_HERE' \
-d '{
"name": "string"
}'
{ "prefix": "string", "created": "2019-08-24T14:15:22Z", "name": "string" }
https://api-v2.forager.ai/api/api_keys/{prefix}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api-v2.forager.ai/api/api_keys/{prefix}/' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
{ "prefix": "string", "created": "2019-08-24T14:15:22Z", "name": "string" }
https://api-v2.forager.ai/api/api_keys/{prefix}/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api-v2.forager.ai/api/api_keys/{prefix}/' \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
https://api-v2.forager.ai/api/users/current/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api-v2.forager.ai/api/users/current/ \
-H 'X-API-KEY: YOUR_API_KEY_HERE'
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
Subscription serializer.
Subscription tier serializer.
Stripe subscription price serializer.
{ "id": 0, "username": "string", "email": "user@example.com", "first_name": "string", "last_name": "string", "accounts": [ { … } ] }