Web Content Publisher API
webcontentpublisher.googleapis.com API, a service for web content publishers.
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
webcontentpublisher.googleapis.com API, a service for web content publishers.
Endpoints 9
organizations.publications
- GETLists publications.
/v1/:parent/publications?filter=string&pageSize=0&pageToken=stringLists publications. - POSTCreates a publication.
/v1/:parent/publications?publicationId=stringCreates a publication.
organizations.publications.ctas
- GETGets a CTA.
/v1/:nameGets a CTA. - PATCHUpdates a CTA.
/v1/:name?updateMask=stringUpdates a CTA. - GETLists CTAs.
/v1/:parent/ctas?pageSize=0&pageToken=stringLists CTAs. - POSTCreates a CTA.
/v1/:parent/ctas?ctaId=stringCreates a CTA.
publications
- GETChecks if a user is eligible for free article access.
/v1/:name:checkFreeAccess?httpReferrer=string&uri=stringChecks if a user is eligible for free article access. - GETChecks if a reader has active program access.
/v1/:name:checkProgramAccess?productId=string&swgUserToken=stringChecks if a reader has active program access.
users
- POSTReturns user tokens mapped to their canonical domains for all publications the authenticated user is entitled to.
/v1/:name:generatePlatformSiteTokensReturns user tokens mapped to their canonical domains for all publications the authenticated user is entitled to.
API details
- Base URL
https://webcontentpublisher.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter - Operations
- 9 operations on 6 pathsGET 5POST 3PATCH 1
- Main resources
- organizations.publications.ctas 4organizations.publications 2publications 2users 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v1 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Web Content Publisher API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Web Content Publisher API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Lists publications.” (GET /v1/:parent/publications?filter=string&pageSize=0&pageToken=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Web Content Publisher API?
webcontentpublisher.googleapis.com API, a service for web content publishers. It is listed under Developer tools and has 9 endpoints.
Who publishes the Web Content Publisher API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Web Content Publisher API?
Requests go to https://webcontentpublisher.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Web Content Publisher API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.
How many endpoints does the Web Content Publisher API have?
9 operations on 6 paths (5 GET, 3 POST, 1 PATCH). The largest groups are organizations.publications.ctas, organizations.publications, publications, users.
Is forking the Web Content Publisher API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.